I would rather using Tiles to do the work then javaScript(j/k... JavaScript is evil). You can create a form layout that know how to config its action, and allow different definition using. In your action mapping you can have as many local forward mapping as you can for you action to returns or you Can also create a dynamic mapping when your action returns.
-----Original Message----- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 6:40 AM To: Struts Users Mailing List Subject: RE: changing "action" for a form dynamically This has nothing to do with the action attribute per se, but rather the sad fact that you cannot 'nest' jsp tags in that manner. You will need to use an ugly scriptlet in place of that nice clean bean:write tag to render the attribute value to the page. -----Original Message----- From: deepank [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 21:42 To: Struts Users Mailing List Subject: changing "action" for a form dynamically Hi, how can i cange the "action" attrbute of the html:form tag dynamically, so that the path that to which the form will be submitted changes everytime the JSP is brought up if i do something like this in my action class if (((ReviewTeamForm)form).getCommand()!=null) request.setAttribute("performAction", "/reviewTeam"); else request.setAttribute("performAction", "/editReviewTeam"); then in the jsp i do <html:form name="someform" type = "com.sasken.erp.sdlc.action.ReviewTeamForm" action ="<bean:write name='performAction' />" > this does not work any help help willbe appreciated Deepank -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

