RE: Accessing form bean from inside a custom tag, take 2

2002-04-23 Thread James Mitchell
P. Glennon [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 10:19 AM > To: Struts Users Mailing List > Subject: RE: Accessing form bean from inside a custom tag, take 2 > > > Christian - > Those were the first two things I tried. In each case, I get a null > r

RE: Accessing form bean from inside a custom tag, take 2

2002-04-22 Thread Bryan P. Glennon
nt: 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)page

Re: Accessing form bean from inside a custom tag, take 2

2002-04-22 Thread Christian Bouessay
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 = (MyFormBe

Accessing form bean from inside a custom tag, take 2

2002-04-22 Thread Bryan P. Glennon
(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: