• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Form Bean Error

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the Solution.

Thank you very much For trying.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And again welcome
 
Saravanan Mrajan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic