File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-Validations -PROBLEMS" Watch "Struts-Validations -PROBLEMS" New topic

Struts-Validations -PROBLEMS

Amar Kumar Tumma Kumar

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

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.
[ September 10, 2004: Message edited by: Sheldon Fernandes ]
I agree. Here's the link:
subject: Struts-Validations -PROBLEMS
It's not a secret anymore!