Justin Frost wrote:
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.
What does your interceptor stack look like? The default runs prepare
then params, so your parameters don't get applied until after the
prepare method is called. You probably want to switch to the
paramsPrepareParams stack [1].
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}"?
Close; you would want an OGNL expression rather than a JSTL EL one
(which wont work in the latest versions of Struts). Use %{} instead of ${}.
L.
[1] http://struts.apache.org/2.x/docs/interceptors.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]