You don't need a form with an action. I have an action called 'HomeAction' - it's job is to decide where to direct a user based on their allowable actions. It's configured like this in struts-config: <action path="/home" type="hnz.survey.HomeAction" validate="false"> <forward name="surveyList" path="/editSurveyList.do"/> <forward name="selectSurvey" path="/editSelectSurvey.do"/> </action> ie 'HomeAction' gets called using the url path '/home'. HomeAction decides which one of the two destinations to forward the user to. Note that the form passed to HomeAction will be null. Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |---------+----------------------------> | | "Matthew J. | | | Vincent" | | | <[EMAIL PROTECTED]| | | aine.edu> | | | | | | 11/08/2004 02:51 | | | PM | | | Please respond to| | | "Struts Users | | | Mailing List" | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: Struts Users Mailing List <[EMAIL PROTECTED]> | | cc: | | Subject: Should every Action have an associated form? | >--------------------------------------------------------------------------------------------------------------| Hey everyone! I hope to not get flamed, but it's getting late here and I'm tired of looking through the archives. Should every Action have an associated ActionForm? Is it a bad idea to read a parameter directly from the request in the Action? I have a page where I need to show details for a particular item in our database. People will be directed to this page via a url http://127.0.0.1/foo/bar.do?id=123. If I need an ActonForm, what's the best way to set this up in the struts-config.xml? Thoughts? Thanks in advance! Matt --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]