Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form Bean Error

 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Input.jsp which is validated using form bean's ActionErrors validate() method and the error messages are displayed fine.

The problem that i am facing is, after getting the error messages on the same page, the values i entered before got disappeared and the empty form is shown with the error messages.

How to keep the values on the form with the error messages?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your JSP with mapping and Action Form, you're using.
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the Solution.

Thank you very much For trying.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Happy to know that and I didn't try anything.
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:Happy to know that and I didn't try anything.


It's Ok. i just want to restrict entering characters in the form by writing code inside the formbean's validation method. but it's not working exactly. i am searching for it in the net. please let me know if you know.

Thanks!
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saravanan MahaRaj wrote:I just want to restrict entering characters in the form by writing code inside the formbean's validation method.

You mean the form field will accept only characters like, a to z, then I thinks its simple. A simple Regex or for loop for any characters other than alphabet can solve your problem.
Saravanan MahaRaj wrote: but it's not working exactly.

Please tell the details, what you have done and what you get and what you have expected ??
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:
Saravanan MahaRaj wrote:I just want to restrict entering characters in the form by writing code inside the formbean's validation method.

You mean the form field will accept only characters like, a to z, then I thinks its simple. A simple Regex or for loop for any characters other than alphabet can solve your problem.
Saravanan MahaRaj wrote: but it's not working exactly.

Please tell the details, what you have done and what you get and what you have expected ??


Thanks. Again I got it fixed.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:And again welcome


Hi

i want to calculate the time taken beteen a request (sent to the webserver) and response (from the webserver) in my struts application. what is the way i can go with?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the third question you're asking in same thread, please create the separate thread for each doubt/question and keep the original thread topic intact.

And about the your requirement:
There is no standard API / method which gives you the time difference between the request sent and received to the client, but you can always rely on Firebug addon for FireFox to get the time for each resource it request from server, also the same functionality has been there in Google Chrome browser.


HTH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic