Hi,

suprisingly I can access name with ${name} and it returns the bean property name and not the tag attribute (which could be called with ${parameters.name?html}) or nothing. So why can I not access id???

Berst regards,

Sven

Jishnu Viswanath schrieb:
Hi,
        I think all the things that is there in parameters like id and name can 
not be accessed from ftl, Work around? No idea, I had a custom widget had the 
problem, so had to change the name.

        If I am correct, you can not access getName() etc...

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-----Original Message-----
From: Sven Grünewald [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 1:24 PM
To: user@struts.apache.org
Subject: Accessing "id" bean-property (not tag attribute) in freemarker template

Hi, can anybody help my?
I can't acces a bean property id  in a modified freemarker template.
I can access all other properties with simple OGNL expression but not if they are called "id" or "ids"
If I add a getter: getMyId(){
    return getId();
} I can get it via ${myId} but not via ${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. Therefor I want to change the (rendered) form tag to <form ... action=".../shop/showItem.action?id=42> but I can't acces my hidden input field "id" or the bean entry "id" but all other entries are accessable.
I am using struts 2.0.11 and have the same issue with 2.1

Thanks in advance,

Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any comments or statements made in this email are not necessarily those of 
Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies may be subject to our monitoring procedures.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to