The moose likes Struts and the fly likes tiles and javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "tiles and javascript" Watch "tiles and javascript" New topic
Author

tiles and javascript

Sriram Chandrasekaran
Greenhorn

Joined: Oct 08, 2003
Posts: 17
Hi
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 page...how 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
-ram
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4695

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.
 
 
subject: tiles and javascript
 
Threads others viewed
Struts1 - tiles -cascading tiles:insert
Struts: Incorrect form submission through javascript
Controller Tiles
Controller Tiles
Controller Tiles
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com