I've found your article helpful since I was using Struts template facilities..
but it looks like Tiles are one step better. The  tileDefinitions.xml is a good
solution to all the .jsps it replaces.

The only hitch I've run into is that the Tiles site suggests that Struts
contains
Tiles.  I grabbed the latest release and wound up with the infamous:
"ServletException:
Cannot find message resources under key org.apache.struts.action.MESSAGE"...
although
in my case this appears to be related to missing Tiles code
(ActionComponentServlet) in the
release... a closer look at the Tiles site reveals that the appropriate release
was on Dec. 26 and
is still merely a nightly build.  I guess I'll use the Tiles jars explicitly.

Cheers,
Jon

"Malani, Prakash" wrote:

> Hi,
>
> How are you doing?  My article on view component organization with Struts
> and Tiles is published in JavaWorld:
> http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?
>
> Here is the summary:
> Every Web application developer must organize view components, such as
> header, body, and footer. Many techniques for organizing these components
> exist, each with its own advantages and disadvantages. This article covers
> seven available solutions and exposes you to the flexibility of the Tiles
> and Struts frameworks. Start with a simple example that illustrates the
> problem of organizing view components, then use JavaServer Pages' (JSPs)
> built-in mechanisms, like include, to cleanly solve the problem. Move on to
> explore other alternatives, using the Tiles framework, and then learn to
> leverage the synergy of the Tiles and Struts frameworks.
>
> Comments and feedback is 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]>

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

Reply via email to