You can do it either like that :

<bean:define id="myValue" >
    <bean:write property="userAccount" scope="session" />
</bean:define>
<html:hidden property=="users.userAccount" value="<%=myValue%>" />

or like that (using JSTL) :

<c:set var="myValue" >
    <bean:write property="userAccount" scope="session" />
</c:set>
<html-el:hidden property=="users.userAccount" value="${myValue}" />

I hope that it will help
Mehdi

----- Original Message ----- 
From: "struts" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:41 PM
Subject: html:hidden +session


how can i print a session value in a hidden field.

This doesn't work...

<html:hidden property="users.userAccount" value="<session:attribute
name="userAccount"/>"/>

any solutions ?

Thanks

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

Reply via email to