You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Bussie, Andre D" <an...@lmco.com> on 2004/08/04 14:15:07 UTC
Form Bean in JSP
Is it possible for a Form Bean to be used in a JSP if so how is it done?
Any resources or examples demonstrating this. Thanks
Andre' D. Bussie
Sourcing Rotational Program
MAC-MAR
532 Fellowship Rd
Moorestown, NJ 08057
856.787.3273
856.952.7325 - Cell
andre.d.bussie@lmco.com <ma...@lmco.com>
Re: Form Bean in JSP
Posted by lnader2000 <ln...@yahoo.com>.
<jsp:useBean id="myForm" class="MyFormBean"/>
//setting a property
<jsp:setProperty name="myForm" property="id" value="<%=
request.getAttribute("id") %>" />
//getting a property
<jsp:getProperty name="myForm" property="id"/>
Of course you can use struts tags too like:
<html:text name="myForm" property="id" />
etc.
--- In struts@yahoogroups.com, "Bussie, Andre D" <an...@l...>
wrote:
> Is it possible for a Form Bean to be used in a JSP if so how is it done?
> Any resources or examples demonstrating this. Thanks
>
>
>
> Andre' D. Bussie
>
> Sourcing Rotational Program
>
> MAC-MAR
>
> 532 Fellowship Rd
>
> Moorestown, NJ 08057
>
> 856.787.3273
>
> 856.952.7325 - Cell
>
> andre.d.bussie@l... <ma...@l...>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org