Christian - Those were the first two things I tried. In each case, I get a null returned from getAttribute. I even tried pageContext.findAttribute("beanName") and it also returned null. I am pretty sure I have things configured correctly: In struts-config.xml I define a form bean named fileXferBean. In the action mapping that will lead to the page with the custom tag, I specify fileXferBean for the name attribute. I see the bean get instantiated, but it is just not there when I try to get it from the doStartTag function (using ...getAttribute("fileXferBean")).
I know I should be able to do this - what am I missing? Thanks again, Bryan -- Bryan Glennon (mailto:[EMAIL PROTECTED]) BPG Consulting, Inc. (http://www.bpgc.com) Tech Question? (mailto:[EMAIL PROTECTED]) -----Original Message----- From: Christian Bouessay [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 8:53 AM To: Struts Users Mailing List Subject: Re: Accessing form bean from inside a custom tag, take 2 Form-bean is stored in request/session. And in a custom tag, you can access the property pageContext. Why not using a code like : MyFormBean form = (MyFormBean)pageContext.getAttribute("myFormBeanName", PageContext.SESSION_SCOPE); or MyFormBean form = (MyFormBean)pageContext.getAttribute("myFormBeanName", PageContext.REQUEST_SCOPE); Don't know if it answer your question :-) -- C. Bouessay Bryan P. Glennon wrote: > (I tried to post this to the list yesterday, but I don't think it made > it - it is not in the list archive. Sorry if this shows up twice.) > > Is there any way to access the form bean from within the > doStartTag/doAfterBody functions of a custom tag? > > Thanks, > Bryan > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>