The LookupDispatchAction allows you to specify several JSP pages or buttons on one page to use single action mapping to achieve CRUD operations. An example of such action mapping would look like the following:
<action path="/FooCRUDOperation" type="com.myco.editors.FooAction" name="FooForm" scope="request" input="/FooCRUDInput.do" parameter="dispatchAction"> <forward name="edit" path=".editor.foo.Update"/> <forward name="add" path=".editor.fooCreate"/> <forward name="view" path=".editor.fooView"/> <forward name="top" path=".editor.fooTop"/> </action> If you need to find/add/delete/update schools for a system, it is worth using the class. For your case, a simple way would go like this: 1) Process the 'Find School' button in the first action and populate the found schools into a form bean for the selectSchool.jsp. Then forward to the selectSchool.jsp. 2) The form bean for the selectSchool.jsp should also hold user selected school (name and address). In its action class, you copy the selected school (name and address) to the first form bean's attributes. Then you forward to the first JSP page (the first form bean should be session scoped). Would this work for you? Jing Netspread Carrier http://www.netspread.com ----- Original Message ----- From: "Nalini Pal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 11, 2003 9:15 AM Subject: LookupDispatchAction Not sure how best to set this up and indeed, if it is possible so any advice would be appreciated. I have a an ActionForm called RegisterForm where a new user to enter their details (name, email, school name and school address) or an existing registered user to edit these fields. Alongside the 'school address' field I have a submit button, 'Find School' that allows a user to enter part of the school name or address and hit this 'FindSchool' button which then goes off to another page (selectSchool.jsp) that displays a list of matching schools. The user then clicks on their chosen school on selectSchool.jsp and is then returned to the RegisterForm with the 'school name' and 'school address' fields populated. I have been advised to use a LookupDispatchAction, as a JSP alternative to Javascript. Has anyone used it and/ or have an example illustrating its use? Many Thanks Nalini --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]