my dog learned polymorphism*
The moose likes Struts and the fly likes Struts-Validations -PROBLEMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-Validations -PROBLEMS" Watch "Struts-Validations -PROBLEMS" New topic
Author

Struts-Validations -PROBLEMS

Amar Kumar Tumma Kumar
Greenhorn

Joined: Sep 10, 2004
Posts: 1
Hi All
I am using struts validation.xml in my project.Heres a problem that I am facing and the problem is in this scenario ...

The problem is that there are two jsps one is CreatePersonalDetails which has required field Name and when I click submit then it maps to the second jsp CreateAddressDetails which has the required filed phone .

And the problem is that when I click submit button in the first jsp then the validation (required) is being displayed in the first itself and hence i could not go to the second jsp .

now what to do how to resolve this issue ....
thanks in advance
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Web Application Frameworks forum...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Sheldon Fernandes
Ranch Hand

Joined: Aug 18, 2004
Posts: 157
Hi Amar,

Could you elaborate a little more on what the requirement exactly is. You are saying the field 'name' is mandatory on the first page, so the user has to enter it to proceed to page 2. Is it that even after entering a name you still get an error?

[Edit] Do you want to show the error on the second page?

Some more information please.
Sheldon
[ September 10, 2004: Message edited by: Sheldon Fernandes ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts-Validations -PROBLEMS