File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes tiles and javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles and javascript" Watch "tiles and javascript" New topic

tiles and javascript

Sriram Chandrasekaran

Joined: Oct 08, 2003
Posts: 17
I am going to use the tiles framework. I am not sure how
i can insert custom javascript into each jsp page...even though they may use the same layout...
i.e...though the use the same layout can i change
the included javascript...does tiles insert tag be used
to insert a javascript file? or what exactly is recommended?

thanks in advance
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Use an include scriptlet in your header tile. That way it is only in one place in your code.

A good workman is known by his tools.
jQuery in Action, 3rd edition
subject: tiles and javascript
It's not a secret anymore!