File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Should I use Titles or Write a custom tag or two Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Should I use Titles or Write a custom tag or two" Watch "Should I use Titles or Write a custom tag or two" New topic
Author

Should I use Titles or Write a custom tag or two

Gavin Tranter
Ranch Hand

Joined: Jan 01, 2007
Posts: 333
Hi all,
I bet you get asked this all the time, having read the fAQ and had a quick squint at the Tiles acrtical, I am still unsure as to the best way forward

I have a Spring MVC web appliation, and it has a common layout for it pages, as you might expect.

However parts of these common areas are dependent upon the page you are in, for example when viewing a component details (in the component area), there will be menu options available in the content areas header and footer which arent there when you are viewing a list of components.

Also the component area might be spilt into several sub areas dependent on the type component, however each of these sub areas will be much the same, just a different title and content but the structure and style will be the same.

Also, the menu items are likely to be edit options, so it will have to take the object ID.

So, can I use titles to achive this, i.e pass a string in that is to be written to a given marker inside the tile.
Or should I write a custom tag/library?

Thanks guys.
Gavin
[ June 12, 2007: Message edited by: Gavin Tranter ]
 
 
subject: Should I use Titles or Write a custom tag or two