This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler 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 Customer Requirements for Developers this week in the Jobs Discussion 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.
 
 
subject: Dynamic include in custom tag body
 
It's not a secret anymore!