I am unable to get Struts tags (html, bean etc.) to work in includes or
custom tags and can only use explicit html. In my custom tags, I want to
simply write to the page context out:

out.print("<html:img page=\"/images/cat.gif\" width=\"27\" height=\"30\"
border=\"0\"/>");

Instead, I have to do this: 
out.print("<img src=\"images/cat.gif\" width=\"27\" height=\"30\"
border=\"0\">");

I do not understand why the tags work in the JSP itself but not in includes
or tags. Why does the include/tag try to resolve its contents instead of
just outputting to the JSP and the JSP do the resolving? The taglib URIs are
listed in the JSP page. Solutions will be appreciated.


Asad Zia


Reply via email to