Hi all, I have a query, and it's about Cookie I have an Dynamic HTML page that a servlet send it to client side (in this DHTML page I have setCookie and I set data in cookie file and in another DHTML page I use from that data. But this data that I set in last page , in new page I don't get them. I don't know how can I solve my problem. Any suggestion please , I will be appreciated. Thanks in advance Mina
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2314.1000" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#d8d0c8> <DIV><FONT color=#000080>Hi all,</FONT></DIV> <DIV> </DIV> <DIV><FONT color=#000080>I have a query...not really sure whether I can put this in this forum..but if you know the answer, please send it to me...</FONT></DIV> <DIV> </DIV> <DIV><FONT color=#000080>I use the ResultSet class to store the result from the database query. One of the column in the database is a Date. I use the getDate() method of the ResultSet class and retrieve the Date object and store it in java.sql.Date object. If I use the Date.getYear(), it returns only the last 2 digits of the date and not the four digits...How to solve this problem. The new Calender class does not provide any method to retrieve the year alone...can anyone help?</FONT></DIV> <DIV> </DIV> <DIV><FONT color=#000080>regards</FONT></DIV> <DIV><FONT color=#000080>Aditya.</FONT></DIV></BODY></HTML>