Assuming that your Tag extends TagSupport try:
   pageContext.include("mySomething.jsp");


"Mufaddal Khumri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I know what the problem is and I know what I am trying to do wont get
> translated... thats why i have asked for a better solution ! I asked if
> there was a way ... the answer to that is a yes or no (since I might
> have missed something) .
>
> On Friday, August 15, 2003, at 03:03  AM, RANDAD,KAILASH
> (HP-PaloAlto,ex1) wrote:
>
> > 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]
> >




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to