You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Voss, Greg" <gv...@silverstream.com> on 2001/09/15 20:27:24 UTC

Question about getting Struts bean property value into a jsp var

Hi,
	How can I get values out of a session bean and into a jsp variable?

	This is what I have that does not work.

		<struts_bean:write name="user" property="email"
filter="no"/>
		  <IFRAME name=float
src="http://localhost/db/app/pages/MyPage.html?email=<%=email%>" width=720
height=350>
		  </IFRAME>
TIA.
Greg Voss
Manager, Web Development
Silverstream Software Inc.


Re: Question about getting Struts bean property value into a jsp var

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
<bean:define> will do this for you.   Also, in the example you show below,
you could use the <bean:write> tag where you have <%=email%> anyway, so you
wouldn't need a scripting variable for your specific example.

    Erik


----- Original Message -----
From: "Voss, Greg" <gv...@silverstream.com>
To: <st...@jakarta.apache.org>
Sent: Saturday, September 15, 2001 11:27 AM
Subject: Question about getting Struts bean property value into a jsp var


> Hi,
> How can I get values out of a session bean and into a jsp variable?
>
> This is what I have that does not work.
>
> <struts_bean:write name="user" property="email"
> filter="no"/>
>   <IFRAME name=float
> src="http://localhost/db/app/pages/MyPage.html?email=<%=email%>" width=720
> height=350>
>   </IFRAME>
> TIA.
> Greg Voss
> Manager, Web Development
> Silverstream Software Inc.
>
>