Posted by Julia Weaver <dr...@yahoo.com>.
Henrique,
thank you! it works!
--- Henrique VIECILI <vi...@softplan.com.br> wrote:
> use the same name you assigned to the form in
> struts-config.xml form-bean
>
> in struts-config.xml
> <form-bean name="form.myForm"
> type="your.package.Form" />
>
> in the jsp file
> <bean:write name="form.myForm" property="field" />
>
> note the form.myForm must be assigned to the action
> in the <html:form
> action="/myAction.do">
>
> Henrique Viecili
>
> ----- Original Message -----
> From: "Julia Weaver" <dr...@yahoo.com>
> To: "Struts Users Mailing List"
> <us...@struts.apache.org>; <pa...@nyu.edu>
> Sent: Friday, April 23, 2004 1:20 PM
> Subject: how to do "<bean:write" without "name"
> attribute?
>
>
> > Hi,
> >
> > I get this error massage:
> > Cannot find bean form in any scope'
> >
> > in my jsp file:
> >
> > <html:form action="/LinkOperations" >
> >
> > <bean:write name="form" property="pType" />
> >
> > What attribute should for name?
> >
> > How I can do "<bean:write" without "name"
> attribute?
> >
> > Thanks!
> >
> >
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Photos: High-quality 4x6 digital prints for
> 25�
> > http://photos.yahoo.com/ph/print_splash
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25�
http://photos.yahoo.com/ph/print_splash
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: how to do "
Posted by Henrique VIECILI <vi...@softplan.com.br>.
use the same name you assigned to the form in struts-config.xml form-bean
in struts-config.xml
<form-bean name="form.myForm" type="your.package.Form" />
in the jsp file
<bean:write name="form.myForm" property="field" />
note the form.myForm must be assigned to the action in the <html:form
action="/myAction.do">
Henrique Viecili
----- Original Message -----
From: "Julia Weaver" <dr...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; <pa...@nyu.edu>
Sent: Friday, April 23, 2004 1:20 PM
Subject: how to do "<bean:write" without "name" attribute?
> Hi,
>
> I get this error massage:
> Cannot find bean form in any scope'
>
> in my jsp file:
>
> <html:form action="/LinkOperations" >
>
> <bean:write name="form" property="pType" />
>
> What attribute should for name?
>
> How I can do "<bean:write" without "name" attribute?
>
> Thanks!
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢
> http://photos.yahoo.com/ph/print_splash
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org