• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to use [jsp:include] in a JSP Tag File?

 
Matt Raible
author
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I use the following in a JSP Tag File, only the 2nd one is processed:



Using <jsp:include> doesn't seem to work in tag files. Is that as designed?

Thanks,

Matt
 
Matt Raible
author
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that neither <jsp:include> nor <c:import> (or Struts 2's <s:import>) work in tag files. I'm fine with using "include file", but how do I specify a dynamic value for the file attribute?

The following doesn't work:

 
Matt Raible
author
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the noise, it turns out it was caused by the fact that Tomcat (5.0.25) did not have a mapping for .jspf.

Matt
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Files included using the include action are complete JSP files and should be named .jsp. Fragments included with the include directive are named .jspf.
[ August 24, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic