Re: including a servlet in a customed tag
Posted By:
AlessandroA_Garbagnati
Posted On:
Saturday, March 31, 2001 11:37 PM
David,
You cannot use the include method of the RequestDispatcher ojbect inside a custom tag because the included servlet will be inserted directly into the response object, and this is not allowed during the execution of a custom tag.
A possible solution is to use a java.net.HttpURLConnection for executing a connection to the servlet, and retrieving the response.