Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Deploying using tag library
yuky
Hello.
I'm trying to deploy my JSP using birt tag library but, i got a problem.
for example, I have two files.
myApp.jsp
myApp.rptdesign
If I put them into {BIRT_HOME} directory. it work.
but I want them to be in separate directories.
When I copied myApp.jsp to {JBOSS_HOME}(../jboss-web.deployer/ROOT.war/) it doesn't work.
I copied birt.tld into ../ROOT.war/WEB-INF/tlds/birt.tld
and also 5 jar files such as coreapi.jar.. into ../ROOT.war/WEB-INF/lib
And Added xml tag below in ../ROOT.war/WEB-INF/web.xml
<jsp-config>
<taglib>
<taglib-uri>/birt.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/birt.tld</taglib-location>
</taglib>
</jsp-config>
In myApp.jsp
I added tag
<%@ taglib uri="/birt.tld" prefix="birt" %>
<birt:viewer id="birtViewer" reportDesign="report/myApp.rptdesign"
pattern="preview" height="450" width="700" format="html">
</birt:viewer>
now, it doesn't work.
I have changed the location of reportDesign attribute in <birt:viewr> tag as absolute path, relative path. but it still doen't work.
what do i have to do?
Find more posts tagged with
Comments
yuky
well. I found the answer.
what i missed is 'baseURL' attribute.
i added it to <birt:viewer> tag as a attribute like
<birt:viewer .......... baseURL="birt-viewer/">
where I copied birt viewer runtime into JBoss.