Check out : http://www.javaworld.com/javaworld/jw-04-2001/jw-0427-forms_p.html

This is a very common issue. HTTP is stateless so it is the job of the programmer
to maintain state. This is what the HttpSession object is for. For each field that
you want to maintain state for, you can set it in the session. By itself, or even
better in a collection or object of some kind. The above link points to a nice
(very simple) article that outlines a framework for form processing.

enjoy.

Gopi Mandava wrote:

> 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

--
Erik I Morton
Software Developer
------------------
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

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