Hi all:
    now i am work with convert asp to jsp.
in asp Response.Expires=0 ,we can convert  it to
response.setDateHeader("Expires",0)
ok?
but in asp: Response.ExpiresAbsolute = Now() - 1
can i convert it to :
java.util.Calendar caleHeader = java.util.Calendar.getInstance();
caleHeader.set(caleHeader.DAY_OF_MONTH,caleHeader.get(caleHeader.DAY_OF_MONT
H)-1);
java.util.Date dataHeader = caleHeader.getTime();
response.addDateHeader("ExpiresAbsolute", dataHeader.getTime() );

ok?

i have a question,is there a header attribute "ExpiresAbsolute" in header?

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to