• 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

struts validation framework

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Sirs,

Have a question, I have the struts.xml below:



I have a form that only does update. the form can be accessed via loadForm.action url. In this form,
i have put some field validations. As how i understand it (please correct me if i am wrong),
when loadForm.action does not passed the validation, it will stay on updateForm.jsp right?
BUT THE URL IN THE ADDRESS BAR WILL BE CHANGED TO persistAction.action
(well, obviously since the form action="persistAction.action"). Question is,
how does I handle things so that when the user forcibly went to the address bar and hit ENTER,
the page will not display a BLANK UPDATE FORM (since he can not update a non existent record,
and he CAN NOT use that form to create a new record, we have another form for that.)

I am planning to use Preparable so that the model wont be empty, but I think it is not correct
and it does not solve my problem

Please some ideas guys.

Thanks
-marckun
 
Marc Heruela
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
guys any inputs??

please..

Thanks
-marckun
 
reply
    Bookmark Topic Watch Topic
  • New Topic