You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hunter Hillegas <li...@lastonepicked.com> on 2003/05/22 00:06:11 UTC

bean:write can't find my form

Ugghhh...

I am pre-populating a form via an action then sending it off to a JSP for
display.

I am trying to using bean:write to output some of the properties of the form
but each time Struts says it can't find the damn thing in any scope.

So... I've tried many combinations for the 'name' attribute for bean:write
but I can't figure out what Struts has named the form that I've
pre-populated...

The html:text parts come out fine, so I know the data is there somewhere.

Does this make any sense? It seems so simple but in my 2 Struts books and
the doco I couldn't find it.

Ughhhh...

Thanks,
Hunter


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: bean:write can't find my form

Posted by Hunter Hillegas <li...@lastonepicked.com>.
Thanks. I wasn't doing that explicitly in the first Action, though I can.

The reason I didn't think I needed to is that the formbean is obviously
*somewhere* if the html:text tags can find it. I just didn't want to add it
to another, additional scope if it was already available... Does that make
sense?

Hunter

> From: "Vinod Kumar R" <vi...@wisorindia.soft.net>
> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Date: Thu, 22 May 2003 10:24:05 +0530
> To: "Hunter Hillegas" <li...@lastonepicked.com>, "Struts List"
> <st...@jakarta.apache.org>
> Subject: RE: bean:write can't find my form
> 
> hi,
> after prepopulating the formbean are you setting the same formbean in any
> scope??
> ie., in request or session, if not, try this
> request.setAttribute("someName",urFormBean)
> and in the JSP <bean:write name="someName" property="propName"
> scope="request"/>
> 
> i hope this solvs ur problem.
> 
> cheers
> vinod
> 
> -----Original Message-----
> From: Hunter Hillegas [mailto:lists@lastonepicked.com]
> Sent: Thursday, May 22, 2003 3:36 AM
> To: Struts List
> Subject: bean:write can't find my form
> 
> 
> Ugghhh...
> 
> I am pre-populating a form via an action then sending it off to a JSP for
> display.
> 
> I am trying to using bean:write to output some of the properties of the form
> but each time Struts says it can't find the damn thing in any scope.
> 
> So... I've tried many combinations for the 'name' attribute for bean:write
> but I can't figure out what Struts has named the form that I've
> pre-populated...
> 
> The html:text parts come out fine, so I know the data is there somewhere.
> 
> Does this make any sense? It seems so simple but in my 2 Struts books and
> the doco I couldn't find it.
> 
> Ughhhh...
> 
> Thanks,
> Hunter
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: bean:write can't find my form

Posted by Vinod Kumar R <vi...@wisorindia.soft.net>.
hi,
after prepopulating the formbean are you setting the same formbean in any
scope??
ie., in request or session, if not, try this
request.setAttribute("someName",urFormBean)
and in the JSP <bean:write name="someName" property="propName"
scope="request"/>

i hope this solvs ur problem.

cheers
vinod

-----Original Message-----
From: Hunter Hillegas [mailto:lists@lastonepicked.com]
Sent: Thursday, May 22, 2003 3:36 AM
To: Struts List
Subject: bean:write can't find my form


Ugghhh...

I am pre-populating a form via an action then sending it off to a JSP for
display.

I am trying to using bean:write to output some of the properties of the form
but each time Struts says it can't find the damn thing in any scope.

So... I've tried many combinations for the 'name' attribute for bean:write
but I can't figure out what Struts has named the form that I've
pre-populated...

The html:text parts come out fine, so I know the data is there somewhere.

Does this make any sense? It seems so simple but in my 2 Struts books and
the doco I couldn't find it.

Ughhhh...

Thanks,
Hunter



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org