Hi,
I am trying to run sample source code written for myEclipse with eclipse
IDE. I could not add myEclipse plugins to eclipse thus I added
struts 1.1 lib from myEclipse to eclipse manually through
Java Build Path . But I get the following error:
The absolute uri:
http://jakarta.apache.org/struts/tags-logic cannot be resolved in either web.xml or the jar files deployed with this application.
I would appreciate it if anyone could help me on this issue
jar files:
----------
commons-beanutils
commons-digester
commons-lang
commons-validator
struts
commons-collections
commons-fileupload
commons-logging
jakarta-oro
struts-legacy
index.jsp:
------------
<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<logic:forward name="welcome"/>
web.xml:
------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<
servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>deny access</web-resource-name>
<url-pattern>/jsp/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Denied</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>Denied</role-name>
</security-role>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>
struts-config.xml:
---------------------
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="bookListForm" type="de.laliluna.tutorial.library.struts.form.BookListForm" />
<form-bean name="bookEditForm" type="de.laliluna.tutorial.library.struts.form.BookEditForm" />
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="welcome" path="/default.do" redirect="true" />
</global-forwards>
<action-mappings>
<action forward="/jsp/index.jsp" path="/default" unknown="true" />
<action
attribute="bookListForm"
input="/jsp/bookList.jsp"
name="bookListForm"
parameter="step"
path="/bookList"
scope="request"
type="de.laliluna.tutorial.library.struts.action.BookListAction"
validate="false">
<forward name="showList" path="/jsp/bookList.jsp" />
</action>
<action
attribute="bookEditForm"
name="bookEditForm"
parameter="do"
path="/bookEdit"
scope="request"
type="de.laliluna.tutorial.library.struts.action.BookEditAction">
<forward name="showEdit" path="/jsp/bookEdit.jsp" />
<forward
name="showList"
path="/bookList.do"
redirect="true" />
<forward name="showAdd" path="/jsp/bookAdd.jsp" />
</action>
</action-mappings>
<controller bufferSize="4096" debug="0" />
<message-resources parameter="de.laliluna.tutorial.library.struts.ApplicationResources" />
</struts-config>