Re: Accessing UIBean property value in action class

2008-09-27 Thread Gabriel Belingueres
If I understood it correctly, inside the custom tag you can evaluate an expression like "getRandomString(#attr.lengthAttr)" against the ValueStack that will call the getRandomString(int) method on your action, then you can render that returned string. 2008/9/27 ManiKanta G <[EMAIL PROTECTED]>: > I

Re: Accessing UIBean property value in action class

2008-09-27 Thread ManiKanta G
I've a custom tag's attribute. Based on that value, an action class need to generate a random string (this string length will be specified as the custom tag' attribute) which will be put in the cookie. So as I need to generate the random string based on the length specified for the attribute, is t

Re: Accessing UIBean property value in action class

2008-09-26 Thread Gabriel Belingueres
What do you mean by "access those attribute values in the requested action class."? By the time the custom tag is executing, the action class was already executed. 2008/9/26 ManiKanta G <[EMAIL PROTECTED]>: >> >> Put it as a hidden variable in the template??? Wont it work. >> > > Thanks for the t

Re: Accessing UIBean property value in action class

2008-09-26 Thread ManiKanta G
> > Put it as a hidden variable in the template??? Wont it work. > Thanks for the tip. But it doesn't suites my requirement. I need to specify that as the attribute. I've to access total of 6 attributes in the action class. Is there any other solution? ManiKanta

RE: Accessing UIBean property value in action class

2008-09-26 Thread Jishnu Viswanath
:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 12:23 PM To: Struts-User Subject: Accessing UIBean property value in action class Hi, I've written a class that extends UIBean (for my custom tag) and defined few custom properties (which represents the attribute values of the custom tag). I

Accessing UIBean property value in action class

2008-09-25 Thread ManiKanta G
Hi, I've written a class that extends UIBean (for my custom tag) and defined few custom properties (which represents the attribute values of the custom tag). I want to access those attribute values in the requested action class. Can some one help me with this? Regards, ManiKanta