Basics, not clear!!! JSP file gets translated to java file. During translation, tags & include related code gets converted to java code. Now, comes java compiler in picture which does not know anything about jsp. So, how can you expect or design such wrong thing.
Solution to your problem - Better define the code in "mySomething.jsp" as java function and call that function in include file as well custom tag, and use one at a time. Regards KP -----Original Message----- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 1:45 AM To: Tomcat List Subject: can a taglib include a .jsp file ? Hi, I have a taglib that needs to include a .jsp file .. .how can i do so ? if i try doing a out.println(" <%@ include file=\"" + mySomething.jsp + "\" %>") in my taglibrary called myTag it just spits out the exact same line in the output. The same happens when i use a out.println("<jsp:include ...."). I can have if else blocks instead my taglibrary and avoid including the mySomething.jsp. Is there a better solution than this ? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
