Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2005, 12:09 AM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help in ActionForm validation

Hi,

I have a simple form that accepts 4 fields.
I want to do some validation in the ActionForm.validate() method.
My ActionForm.validation() is working fine, but after the validation when i get the form(jsp) with the error message all the form fields are set to blank. User has to again enter all the information.
Why is it so? What is the solution?
Please help me

Thanks
gopal

 
Old February 25th, 2005, 08:06 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to w3creater Send a message via Yahoo to w3creater
Default

hi

you can focus on that field is invalid.Or also create session for valid data.you are arising a problem due to refreshing the forms.

Best option for this is to set session for valid data.

Thanx
indrajeet






Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Validation using Validation Framework kalyangvd Struts 1 January 2nd, 2008 06:53 AM
ActionForm sparun1607 Struts 1 March 11th, 2007 10:20 PM
How to set up classpath for strust ActionForm Befekadu Apache Tomcat 0 July 28th, 2005 09:50 AM
Validation NiNe ASP.NET 1.x and 2.0 Application Design 1 July 5th, 2005 10:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.