Hello Puneet!

Puneet Lakhina wrote:
> On 8/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello!
>>
>> I'm trying to define a default value in the jsp for a cookie, but I don't
>> know
>> how to do it :-(.
>>
>> I've go the following piece of code:
>>
>> ...
>> <bean:write name="Integrationmenuform" property="pname"/>
>> <bean:cookie id="cpname" name="CookieCname" value=""/>
>> ...
>>
>> I would like to have the output from the bean:write - tag as input for the
>> value
>> in the bean::cookie - tag:
>> <bean:cookie id="cpname" name="CookieCname" value='<bean:write
>> name="Integrationmenuform" property="pname"/>'/>
> 
> Try
> <bean:cookie id="cpname" name="CookieCname"
> value='<%=((YourType)request.getAttribute("Integrationmenuform")).getPname()%>'
> />
> This is assuming your bean is in request scope, make appropriate changes
> incase the bean is in session scope.

Yes, it's in the request scope. Should work. I'll test it tomorrow. It's
really a pity that the struts taglibs don't work in any case. Will there
be a solution in the future :-)?

> 
> Dont think this solution is pleasing to the eye....:-)

If it works ... .


Thanks for yout hint,
kind regards,
Andreas Hartmann

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

Reply via email to