Re: set different attribute according to the change of parameter

2005-10-08 Thread 梁炳場
My action class like this public ActionForward userProfileMaint (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession();

Re: set different attribute according to the change of parameter

2005-10-08 Thread 梁炳場
Should the parameter be passed into Action class by http://xxx/foo?a=b ? Can the Action class get the parameter value and the link is http://xxx/foo only? I do not want the parameter appear in the URL. Thanks 2005/10/8, Laurie Harper <[EMAIL PROTECTED]>: > 梁炳場 wrote: > > Can I do the following?

Re: set different attribute according to the change of parameter

2005-10-07 Thread Laurie Harper
梁炳場 wrote: Can I do the following? Same action class sets different attribute according to the change of parameter? Thanks Sure, you can do that, except that the 'parameter' attribute in the action mapping isn't exposed as a request parameter (those come from the HTTP request). You need t