Skip to Content
0
Nov 21, 2005 at 06:06 PM

Struts Dummy question

24 Views

Hi folks,

I am diving into the wondefull world of struts - I found a very simple tutorial at http://wiki.apache.org/struts/StrutsMinimalInstall but I am getting a runtime error which I don't grasp when executing it on SAP WebAS 6.40 ...

If the web.xml would contain

<servlet-mapping>

<servlet-name>ActionServlet</servlet-name>

<url-pattern>/*.do</url-pattern>

</servlet-mapping>

and my welcome.htlm file has a form with action="name.do"

then I would assume that this request goes through the ActionServlet which basically does

return uActionMapping.findForward("success")

using in the struts configuration file

<action

path="/name"

type="com.sedacrivity.struts.test.actions.NameAction"

input="/Welcome.jsp"

name="nameBean"

scope="request">

<forward name="success" path="/hello.jsp"/>

<forward name="failure" path="/error.jsp"/>

</action>

then why am I getting the following ?

http://localhost:50000/GMData/name.do?name=steven

"Requested resource does not exist ...." doh !

Am I missing something basic here ?

My archives compile allright and get deployed without any issue ...

Thanks,

Steven