[opencms-dev] openCMS and struts (problems with struts taglibs)

Mustapha Elbay mustaphaelbay at nebu.com
Fri Jan 7 11:20:55 CET 2005


<P>Hallo, </P>
<P>I'am trying to configure opencms to manage the view (jsp pages) of a Struts application but I have some problems with it.</P>
<P>I have configurated the action servlet, the struts-conf.xml into the web.xml of opencms , and I have added the struts taglibs. I have also added the struts.jar to the lib directory of openCMS.</P>
<P>When I try to use the struts taglibs in jsp pages which reside in the (vfs), the opensCMS servlet can't open the jsp pages and I get this exception</P>
<P>javax.servlet.ServletException: Resource loader error in file '/www/myjsp.jsp'</P>
<P>Root cause:<BR>org.apache.jasper.JasperException<BR> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)<BR> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295).........</P>
<P>.............</P>
<P>It seems that the servlet container recognise the taglibs because when I use the taglibs the wrong way, the servlet container compiles the jsp page. Myjsp page is like this:</P>
<P><!--begin myjsp.jsp page --></P>
<P><%@ page session="false" %><BR><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><BR><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %><BR>name=<bean:write key="system.user"/></P>
<P><!--End myjsp.jsp page --></P>
<P>the error that I get in this case is:</P>
<P>javax.servlet.ServletException: Resource loader error in file '/myvoice/myjsp.jsp'</P>
<P>Root cause:<BR>org.apache.jasper.JasperException: /WEB-INF/jsp/offline/myvoice/myjsp.jsp.jsp(3,5) According to the TLD attribute name is mandatory for tag write<BR> at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)<BR>etc...<BR>.........</P>
<P> </P>
<P>Does anybody have any experience with struts in the openCMS? Can somebody help me with this?</P>
<P>Thanks in advance,</P>
<P>Mustapha</P>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050107/e5e725a0/attachment.htm>


More information about the opencms-dev mailing list