struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepank" <deep...@sasken.com>
Subject changing "action" for a form dynamically
Date Fri, 27 Sep 2002 13:42:01 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message