This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 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.
 
Don't get me started about those stupid light bulbs.
 
subject: tiles and javascript
 
Similar Threads
Struts: Incorrect form submission through javascript
Controller Tiles
Controller Tiles
Controller Tiles
Struts1 - tiles -cascading tiles:insert