RE: Tiles directory structure recommendations?

2002-06-25 Thread Bartley, Chris P

Just two comments:

1) Make sure your target app-server supports JSPs under WEB-INF (Weblogic
6.1 doesn't).  It's not a big deal to change, however, because if you do
things right then the only files you'll need to edit are your tiles config
files.

2) I structured my current site similar to what you've suggested, but with
an extra layer under the "jspPages" folder.  Something like this:

   WEB-INF
 + jsp
 + html
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 

The extra "html" layer allows me to eventually be able to create other
directories to serve WML, XML, etc.  And Tiles makes that easy by allowing
you to easily write your own definitions factory (just implement
ComponentDefinitionsFactory and "register" it with Tiles'
ActionComponentServlet in web.xml).  My custom definitions factory already
handles definitions by role, so it's simple to extend it to also take the
user agent into account and serve HTML, WML, etc. as necessary.

chris

> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 25, 2002 9:47 AM
> To: '[EMAIL PROTECTED]'
> Subject: Tiles directory structure recommendations?
> 
> 
> I'm beginning a new project based on struts-tiles.  Does 
> anyone have a 'best
> practices' suggestion for how to organize the directory 
> structure under
> WEB-INF?  I've been using
> 
> WEB-INF
>   + jspPages
>   + 
>   + 
>  etc.
> 
> I intend to use the tiles controller to 'build' my JSP pages 
> dynamically
> based on the content in my tileDefinitions.xml file.  Any 
> comments would be
> greatly appreciated.
> 
> Thanks!
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at (800)388-4675.
> 
> 
> 
> --
> 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]>




Tiles directory structure recommendations?

2002-06-25 Thread Jerry Jalenak

I'm beginning a new project based on struts-tiles.  Does anyone have a 'best
practices' suggestion for how to organize the directory structure under
WEB-INF?  I've been using

WEB-INF
  + jspPages
  + 
  + 
 etc.

I intend to use the tiles controller to 'build' my JSP pages dynamically
based on the content in my tileDefinitions.xml file.  Any comments would be
greatly appreciated.

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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