aspose file tools*
The moose likes Servlets and the fly likes Problem regarding redirected error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem regarding redirected error message" Watch "Problem regarding redirected error message" New topic
Author

Problem regarding redirected error message

vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
Please help me to solve the last part of the problem..

Make a �registration� form that collects a first name, last name, and email address. Send the data to a servlet that displays it.If the user fails to supply a value for any of the fields in the form, you should redisplay the form but with an error message saying that the value is missing.

Don�t make the user re-enter values that they�ve entered already.


Regards <br />vaibhav srivastava<br />SCJP1.5 , SCWCD1.5
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

This sounds like a homework assignment.

We'd love to help but we're not going to code it for you.
How much have you got done so far?
What part are you stuck on?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
I have done till generation of Error page which have same Html form like structure saying that something you have missed to fill in the form..

But I stuck ...How to persist that values which the client have provided in the first HTML form i.e. how to make that the client don't have to re-write the values they already provided.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Can you tell us about or show us the code you've got so far?
vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
I have developed this much code:
1)form.html


2) NewCheck.java


3)ErrorPage.jsp


how to make that client dont have to re-enter the value they have given before
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

You can put correctly entered values in the response before forwarding.


Hope this helps


SCJP, SCWCD.
|Asking Good Questions|
vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
You can put correctly entered values in the response before forwarding.


Can you please tell how to put these things in response as setting or adding to response Header doesn't work.
Can you show me a demo code for this??
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem regarding redirected error message