Hi, sending them to an action first hides the JSP-detail and lets you prepopulate the form (if ever need arises). Also there has been a thread on problems when the user wanders off and returns to your form, if you pass by the action you can reset the form when entering...
Especially the possibility to prepopulate makes me advocate to use action always. I think we never know if the business does not want from one moment to another "now we want some values prefilled...". Also Ted's catalog states "...never link to a jsp directly...". You can use the same action as the one which validates and processes the form by using the parameter-attribute in struts-config.xml. I do it all the time... hope this helps Alexander -----Original Message----- From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 4:29 PM To: Struts Users Mailing List Subject: First visit to a form When using the validator framework is it best to visit the action on the first visit or to send the user to a jsp which submits to an action which then goes back the the jsp if there are errors? The other option would be to sent them directly to the jsp on the first attempt. Thanks, dave -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>