Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem regarding redirected error message

 
vaibhav srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
vaibhav srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell us about or show us the code you've got so far?
 
vaibhav srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put correctly entered values in the response before forwarding.


Hope this helps
 
vaibhav srivastava
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic