| Author |
Is it possible to use [jsp:include] in a JSP Tag File?
|
Matt Raible
author
Ranch Hand
Joined: Jan 11, 2001
Posts: 114
|
|
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<br /> <br />Author: <a href="http://springlive.com" target="_blank" rel="nofollow">Spring Live</a> and <a href="http://www.apress.com/book/bookDisplay.html?bID=256" target="_blank" rel="nofollow">Pro JSP</a><br />Weblogs: <a href="http://raibledesigns.com" target="_blank" rel="nofollow">Raible Designs</a> <a href="http://jroller.com/page/raible" target="_blank" rel="nofollow">Spring Live Blog</a>
|
 |
Matt Raible
author
Ranch Hand
Joined: Jan 11, 2001
Posts: 114
|
|
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
Joined: Jan 11, 2001
Posts: 114
|
|
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
Joined: Jan 10, 2002
Posts: 56179
|
|
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 ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Is it possible to use [jsp:include] in a JSP Tag File?
|
|
|