Hi,

> >>>>> "Ken" == Ken Domen <Domen> writes:
> 
>     Ken> Do we have to create a separate content.jsp for 
> every content that's
>     Ken> different?
>     Ken> Doesn't that mean that you have to create 2 jsp's 
> for every page that's
>     Ken> different?
> 
>     Ken> Is there a way to make the content dynamic so that I 
> don't have to create an
>     Ken> extra JSP page per content change?
> 
>     Ken> <template:put name='content' content='/login.jsp'/>  
> 
>     Ken> Can the above be:
> 
>     Ken> <template:put name='content' content='<%=dynamic_value%>'/>
> 
> I have not used this, but you might consider looking at the 
> Struts "Tiles"
> taglib, instead of using the Struts "template" taglib.  I 
> don't believe you get
> any more "dynamic" flexibility, but if you have two (or more) 
> pages that only
> differ by the value of the "content" attribute, then instead 
> of creating a
> separate JSP page for each variation, you can just specify an 
> additional
> element in the Tiles configuration file.  This makes the 
> content variations a
> little easier to manage.
> 
> If you're interested, read the recent article in JavaWorld 
> about Tiles.

The complete URL for the article is:
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?

Comments and suggestions are most welcome,
-Prakash

-----
eBuilt, Inc. - Builders of Industrial-Strength e-Business
(http://www.eBuilt.com)
Learn Java! (http://www.cact.csupomona.edu/javacert.html)
Learn Design Patterns! (http://www.cact.csupomona.edu/UML_Specialist.htm)
Want answers to Java, OOAD, UML, Design Patterns, EJBs, JSPs, Servlets, XP,
etc? (http://clubs.yahoo.com/clubs/bartssandbox)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to