Dimitrios Christodoulakis wrote:
<s:hidden name="person.id" value="#attr.id" label="Primary Key" />

I told you #attr.id on javaranch; I meant #parameters. This information is readily available via the S2 docs. [1, 2]

IIRC the "value" attribute expects a literal; I'd wrap it in the OGNL escape, %{#parameters.id}, to make sure it's evaluated. Correct rendering is, of course, trivially verifiable by viewing the rendered source.

The fact remains that if person.id isn't being filled correctly by your Java code something is still wrong with it.

I have also tried unsuccessfully to retrieve the parameter value
from the action code, but always get null.

If I'm understanding what you're saying there then something is doubly wrong with either your config or your assumptions: there are several ways to retrieve URL parameters, and AFAIK they all work.

Note that the result named "SUCCESS" will never be used if you're using the ActionSupport convenience result constants.

Dave

[1] OGNL
http://struts.apache.org/2.x/docs/ognl.html

[2] OGNL Basics
http://struts.apache.org/2.x/docs/ognl-basics.html

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

Reply via email to