[ 
https://issues.apache.org/struts/browse/WW-2814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44764#action_44764
 ] 

S. Grünewald commented on WW-2814:
----------------------------------

Yes with ${parameters.id?html}  I can get the "id"-tag attribute but i want to 
get a bean-property called "id". 
I want to modify the form-tag to add the id of my entity in the URL to make my 
actions bookmarkable etc. But I don't want to use GET. Only the entity id 
should be shown in the URL e.g. .../shop/showItem.action?id=42. This could be 
done by changing the (rendered) form tag to <form ... 
action=".../shop/showItem.action?id=42> but i can't acces my hidden input field 
"id" (not the attribute) or the bean entry "id" but all other entries are 
accessable.

I must admit, that a wrote to the mailinglist only in the recent past.
I hope that my new description is more clearly.



> Can't access an "id" named property in template
> -----------------------------------------------
>
>                 Key: WW-2814
>                 URL: https://issues.apache.org/struts/browse/WW-2814
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.2, 2.1.2
>            Reporter: S. Grünewald
>
> You can't access a property "id" in a new/modified template (e.g. form.ftl)  
> via ${id} or ${Request.id} or ${Request['id']}. 
> You can access other properties e.g. ${name} and even id but only if you use 
> an other getter e.g. 
> int getMyId(){
>    return getId();
> } 
> then ${myId} works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to