struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k3v1n <>
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 page="formInclude.jsp" flush="true">
	<jsp:param value="type" name="myObject2"/>	

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?


View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message