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.

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

Reply via email to