struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: Problem using form tags across template pages
Date Thu, 01 Mar 2001 04:09:48 GMT
Martin Cooper wrote:

> OK, now I see what's happening. The <html:form> tag sets the form bean as a
> page attribute, so when your nested page (the one brought in using the
> template tags) is processed, the form bean is not available, since it is in
> a different page context. Hence the <html:text> tag, which needs access to
> the form bean, fails.
>
> One way to fix this would be to have the <html:form> tag store the bean as a
> request attribute instead of a page attribute. However, I'm not sure if that
> would break something else. I don't think so, but I'm not certain. That's a
> question for Craig, I think.
>

Hmm, that would also deal with a question someone else had earlier, where they
wanted to put the <html:form> tag into a "main" JSP page, and the fields in a
<jsp:include>.  I will look at it in more detail.

>
> --
> Martin Cooper
> Tumbleweed Communications
>

Craig



Mime
View raw message