Hi all,
I am really stuck on this;
jsp page headers
<%@ page language="java" import="java.io.*, java.util.*, java.sql.*, java.text.*" %>
<%@ page errorPage="errorPg.jsp" %>
<%@ page buffer="32kb" %>
<jsp:include page="header.jsp" flush="false" />
My code;
String somedate;
somedate = request.getParameter("somedate");
SimpleDateFormat formatter = new
SimpleDateFormat("dd.MM.yyyy");
SimpleDateFormat formatter2 = new
SimpleDateFormat("MM.dd.yyyy");
ParsePosition pos = new ParsePosition(0);
java.util.Date somedate2 =
formatter.parse(somedate, pos);
somedate = formatter2.format(somedate2);
And error is;
usr/local/tomcat5/work/Catalina/localhost/kaplan/org/apache/jsp/cekgiris_jsp.java:389:
pos is already defined in
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
java.text.ParsePosition pos = new ParsePosition(0);
^
I tried directly refer to java.text and java.util and i've changed pos to something
but no chance...
I know this is not a place to ask but in here time is around 2:30 AM on the morning
and i am really getting crazy with this holly error.
Or do you know any good date conversion trick for databases or particularly for
Postgresql?
Thank you to all
Gokhan
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.707 / Virus Database: 463 - Release Date: 16.06.2004