struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Frost <justin.fr...@siemens.com>
Subject [S2] Action tag along with param tag
Date Fri, 28 Dec 2007 19:29:22 GMT

Am I writing this correctly?

<s:form action="LocationAddNode" validate="false" id="LocationAddNode"
name="LocationAddNode">
	<s:textfield name="locationNode.location.id"  label="Location Id" 
maxlength="20" />
	<s:action name="FillSelectBoxes" executeResult="true">
		<s:param name="myString" value="Hello" />
		<s:param name="location.id" value="1234" />
	</s:action>
</s:form>

My FillSelectBoxes action only does work in the preparable method.  And
there is a private String myString and private LocationDTO location in this
action.  I only implement preparable

But they are always null.

And suppose I wanted to take locationNode.location.id and use its value
instead of thw "1234", what is the ONGL syntax for that.  I do not really
understand the syntax language very well.  Would I replace "1234" with
"${locationNode.locatio.id}"?

Any ideas?

Thanks,
Justin
-- 
View this message in context: http://www.nabble.com/-S2--Action-tag-along-with-param-tag-tp14530331p14530331.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