What do you mean by 'the form is skipped'? The configuration has one action mapping with two logical outcomes, each of which is mapped to different actions. The code for that action always returns the outcome 'success'. Thus, whenever your request /selectUser.do, Struts should forward to the /setupAssignUserSystem.do action, and what the browser displays will depend on what that action mapping says.

We'd need to know what you're actually requesting when you want to display your form (the URL you request) and to see all the relevant action mappings from your config to help further.

L.

PC Leung wrote:
I just want the control passing to a form with
a dropdown box so that user can click.

The form does not have a chance to display
and it is skipped to the subsequent form.

Why is it so?

The following is the action class associated
with the form being skipped.

Thanks


public final class SelectUserAction extends Action {

  public ActionForward execute (ActionMapping mapping,
        ActionForm form,
        HttpServletRequest request,
        HttpServletResponse response)
        throws Exception {                      
                
  UserProfileService service = new UserProfileService();
  Collection userList = service.getUserProfileList(null);
  HttpSession session = request.getSession();
  session.setAttribute( "userList", userList );

  return mapping.findForward("success");

  }     


        <action path="/selectUser"
                input="user.selectUser"
                name="userForm"
                scope="request"
                validate="false"
                type="com.user.struts.action.SelectUserAction">
                <forward name="success" path="/setupAssignUserSystem.do" />     
      
                <forward name="cancel" path="/userProfileMaint.do"/>            
      
        </action>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to