<%-- * Copyright by Intland Software * * All rights reserved. * * This software is the confidential and proprietary information * of Intland Software. ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Intland. * * $Revision$ $Date$ --%> <%@ taglib uri="jstl-c" prefix="c" %> <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%> <%@ taglib uri="taglib" prefix="tag" %> <%@ taglib uri="acltaglib" prefix="acl" %> <%@ taglib uri="log" prefix="log" %> <%@ taglib uri="uitaglib" prefix="ui" %> <%@ page import="java.text.ParseException" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Date" %> <%@ page import="com.intland.codebeamer.persistence.dto.TrackerLayoutLabelDto" %> <%! String checkAndParseDate(String dt_str, String dt_format) { if (dt_str == null) { return ""; // Should never happen. } final SimpleDateFormat parseDatetimeFormat = new SimpleDateFormat(dt_format + " H:m:s"); final SimpleDateFormat parseDateFormat = new SimpleDateFormat(dt_format); final SimpleDateFormat formatDatetimeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); final SimpleDateFormat formatDateFormat = new SimpleDateFormat("yyyy-MM-dd"); try { Date dt = parseDatetimeFormat.parse(dt_str); return formatDatetimeFormat.format(dt); } catch (ParseException ex) { // Try the date format! try { Date dt = parseDateFormat.parse(dt_str); return formatDateFormat.format(dt); } catch (ParseException iex) { } } return ""; } %> <% pageContext.setAttribute("ID_LABEL_ID", new Integer(TrackerLayoutLabelDto.ID_LABEL_ID)); pageContext.setAttribute("DESCRIPTION_LABEL_ID", new Integer(TrackerLayoutLabelDto.DESCRIPTION_LABEL_ID)); %> <% String dateFormat = (String)pageContext.findAttribute("dateFormat"); %>
: Preview of Imported Data
        
 Account Mapping:  map all unknown accounts to this one.
 Status Mapping:  map all unknown status values to this one.
 Clear Tracker:  Delete all existing items of this tracker before import is executed. Not reversible!
 
<%-- Header --%> <%-- Show the Imported Data --%> <% int counter = 0; %> "> <% String closed_at_str = (String)pageContext.findAttribute("closed_at_str"); closed_at_str = checkAndParseDate(closed_at_str, dateFormat); pageContext.setAttribute("date_field", closed_at_str); %>