struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Jaynes <>
Subject Re: Re-using JSP pages
Date Fri, 20 Sep 2002 12:57:33 GMT

Charles McClain wrote:
>  <snip />
> According to one of Ted Husted's tips, no problem; you can give a
> different form-bean name to the same ActionForm and reference that
> form-bean name in validation.xml.  And it works.  However, some of the
> tags on the actual JSP (for example, "logic:equal", which I use to vary
> the screen messages by operation, plus "log:debug" and "bean:write")
> require you to specify the bean name, rather than defaulting to the bean
> passed in, as other tags seem to do.  I could not for the life of me
> figure out how to parameterize the bean name and re-use the same JSP,
> and its tags, for ALL operations on an object.

I think the nested taglib can help with this. They inherit the "name" 
attribute from the <nested:form> tag. So you don't need to specify it. 
There are nested versions of the tags you mention, except "log:debug".

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message