struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k3v1n <mitn...@email.it>
Subject Re: dinamic name for textfield
Date Tue, 21 Jun 2011 07:22:19 GMT
My example:

I have master JSP:

<jsp:include page="formInclude.jsp" flush="true">
	<jsp:param value="type" name="myObject1"/>	
</jsp:include>

<jsp:include page="formInclude.jsp" flush="true">
	<jsp:param value="type" name="myObject2"/>	
</jsp:include>

and included page:
<s:textfield key="myField" name="%{#parameters.type.myField}" /><br />

In my Action I have 2 object:
private MyObject myObject1 = new MyObject();
private MyObject myObject2 = new MyObject();

then both have myMethod attribute

How can I manage this?

Thanks


--
View this message in context: http://struts.1045723.n5.nabble.com/dinamic-name-for-textfield-tp4506481p4509618.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Mime
View raw message