• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tiles and javascript

 
Sriram Chandrasekaran
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use an include scriptlet in your header tile. That way it is only in one place in your code.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic