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
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
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
(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:
4 matches
Mail list logo