File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-Validations -PROBLEMS

 
Amar Kumar Tumma Kumar
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Web Application Frameworks forum...
 
Sheldon Fernandes
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic