David,
I don't think you will be able to do that. The tag expects to be inside a JSP. It might be possible to do it from within a servlet filter too. I think it will be difficult to do it from within the action class.


-Richard



At 01:42 AM 10/23/2003 -0400, you wrote:
In order to get the output of a JSP, I want to try to call the struts
Bean.IncludeTag from my struts action.  I've never tried calling a taglib
from java before, only used the TLDs in JSP's.  So, here is my attempt:

package org.nothing;

import org.apache.struts.taglib.bean.IncludeTag;

public class David {
        String pageURL = "/index.jsp";
        IncludeTag includePage = new IncludeTag();
        includePage.setPage(pageURL);
}

It compiles okay BUT in the Eclipse IDE, the methods under for includePage
don't auto-complete and also give me syntax warnings.  I know my tag is
readable since I can click down through the
org.apache.struts.taglib.bean.IncludeTag class in Eclipse.  Does anyone have
any pointers on how to correct this since I'm clueless having never tried to
call a taglib inside an action before.  Any hints, suggestions, tutorials,
etc.?

Regards,
David


--------------------------------------------------------------------- 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