This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Dynamic include in custom tag body Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamic include in custom tag body" Watch "Dynamic include in custom tag body" New topic
Author

Dynamic include in custom tag body

Ryan Kelly
Greenhorn

Joined: Dec 10, 2001
Posts: 1
I am trying to perform the dynamic include of another JSP from within the body of a custom tag using JSP1.1. It cannot be done using <jsp:include> since flush=true is required and thus an exception is thrown when called from inside the body of a custom tag - it can be done in JSP1.2 since flush does not have to be set to true but upgrading is not possible at this time.
Does anyone know of any custom tag or the code needed to perform this function with JSP1.1?
Using a RequestDispatcher and calling include() does not have the desired effect since the output is witten directly to the response and does not go into the correct position in the calling JSP.
 
jQuery in Action, 2nd edition
 
subject: Dynamic include in custom tag body
 
Similar Threads
HELP! Problems with Buffer/Response Committed
How to include page from custom tags
My Study Notes !!!
specifying the exact location to display a jsp
How to include servlets from tags?