Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Display error message in the same page


Message #1 by "Dhivyagowda" <dhivyagowda@r...> on Mon, 30 Apr 2001 14:40:08
Give action=" same page name" . In the code have an if to evaluate both 
the
conditions.  Like 

If it is called the first time
    Present the form
Else 
    Validate and present a different form

Regards,
Arvind.H.S

  Dhivyagowda <dhivyagowda@r...> wrote: 
Hai,
I have a page with couple of form fields in it.I do client side 
validations using java script and display the error message using Alert 
message. I also do some validations on the server side depending upon the 
filled in form values.

My problem is after the validation in the server side, i want to 
display it on the same page which contains the form.After validation, how 
can i display the error message in the same page.

For example: when we try to register a username which already exists, we 
get a message as "User name already exists" at the top of the form.I want 
it like that.

Regards,
Dhivya


  Return to Index