Struts.jar not being picked up in Tomcat
843842Nov 3 2009 — edited Nov 4 2009Hi Guys,
Im trying to set up a test app under tomcat which uses Struts 1. However for some reason my usages of struts do not seem to be getting interpreted.
I have placed struts.jar in my WEB-INF/lib directory. I have the following entry in my web.xml...
<web-app>
<!-- Set up mapping for ActionServlet -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>/html</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
As a simple test, I have added the following line to a test jsp
<@ taglib uri="/html" prefix="html" %>
However when I view the jsp the above line is outputted to the screen instead of being interpreted.
Is this just a classpath issue?! I was under the impression that struts.jar would automatically get picked up by Tomcat if it was in my lib directory
Any assistance would be MUCH appreciated.