struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <pc.le...@gmail.com>
Subject set different attribute according to the change of parameter
Date Fri, 07 Oct 2005 15:03:30 GMT
Can I do the following?

Same action class sets different attribute
according to the change of parameter?

Thanks

<action path="/userProfileMaint"
	type="com.erp.struts.SetRoleHref"
	parameter="userProfileMaint"

<action path="/quotationMaint"
	type="com.erp.struts.SetRoleHref"
	parameter="quotationMaint"

public class SetRoleHref extends Action {
	    String myValue = request.getParameter("parameter");
	    session.setAttribute("rolehref", myValue);

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message