This will not work, I have an include page tag in the form jsp desplaying
that there are errors in the form. history.back()
doesn't reload the page - so the oncluded page will not be displayed.


-----Ursprungligt meddelande-----
Fran: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]For Gopi Mandava
Skickat: den 23 maj 2001 19:09
Till: [EMAIL PROTECTED]
Amne: Re: Form validation with jsp


Try the JavaScript function history.back(). This will only work if you
didn't set the cache-control to no-cache or no-store

>I have a form which I eant to exaluate.
>When pressin gthe submit button another jsp starts the validation.
>If an error is found I want to return to the form.
>This is no prblem, the problem is that when returning I want the values
>which the user typed in should be shown in the form.
>I tried jsp:forward, but gett a nullpointer.
>With response.sendRedirect("dddd"); the textareas don't show the values
>typed in.
>
>Anyone got a better aproach?
>
>/Nico
>
>===========================================================================
>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


-----------
Gopi Mandava                            (703) 267-1735 x307
CoManage Inc.

"The world is more apt to be destroyed by bad politicians than bad physics"
- A.Einstein

===========================================================================
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

===========================================================================
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