Please ask this question on the struts-user mailing list; the struts-dev list 
is for the development of Struts itself.

Before you do, make sure you're using the Java 1.4 version of Struts 2, and 
that you're deploying your class file into its appropriate (package) location 
under WEB-INF/classes.

Dave

--- On Mon, 12/22/08, roro <[email protected]> wrote:

From: roro <[email protected]>
Subject: Will Struts 2.0.14 work with JDK 1.4.2?
To: [email protected]
Date: Monday, December 22, 2008, 7:15 PM

Is there any trick that I am missing in order to use Struts 2 with JDK 1.4.2?

I'm using Eclipse 3.4.1 and I have installed JDK 1.4.2_19. I'm using tomcat 
5.0.28 since 5.5 only work with JDK 1.5.

I have appended the following to web.xml (in servers context). This web.xml is 
using web-app version 2.4. 
<filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

Additionally, I have added struts.xml in WEB-INF\classes folder, and have put 
HelloWorld.class in WEB-INF\classes folder. 
My struts.xml looks like this: 

<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd";>
<struts>
    <package name="tutorial" extends="struts-default">
        <action name="HelloWorld" class="tutorial.HelloWorld">
            <result>/HelloWorld.jsp</result>
        </action>
        <!-- Add your actions here -->
    </package>
</struts>

Is there anything that I'm missing? When I tried to access 
http://localhost:8080/tutorial/HelloWorld.action, there was nothing printed out 
in the console, as though this request was never sent to the server.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=520155&messageID=611346#611346


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to