posted 14 years ago
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