struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Meisner Larsen" <ste...@meisner-larsen.dk>
Subject Problems calling an Action using link
Date Mon, 12 Nov 2007 10:19:12 GMT
Hi all

I would really appreciate a little help here... ;-)

I am trying to call an Action using a link:
http://localhost:8080/bjo/user/list.action
The Action is defined as:

<struts>

    <package name="user" namespace="/user" extends="struts-default">

        <action name="create" class="dk.bjo.view.UserAction"
method="create">
            <result>/user/create.jsp</result>
            <result name="input">/user/create_init.jsp</result>
        </action>

        <action name="list" class="dk.bjo.view.UserAction">
            <result name="success">/user/list.jsp</result>
        </action>

    </package>
</struts>

When calling the action (using the url above) the execute() method is never
called and I get the following result:
Struts Problem Report

Struts has detected an unhandled exception:
  *Messages*:
No result defined for action dk.bjo.view.UserAction and result input  *File*
:
file:/D:/workspaces/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/bjo/WEB-INF/classes/user.xml
*Line number*: 15  *Column number*: 54
 ------------------------------

		</action>

		<action name="list" class="dk.bjo.view.UserAction">

			<result name="success">/user/list.jsp</result>

		</action>

 ------------------------------

But I don't want any input...I just want the action called and then the
/user/list.jsp page shown! What should I do?

I am using Struts 2.0.11 and my struts.xml looks like this:
<struts>

    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="true" />

    <include file="bjo.xml"/>
    <include file="user.xml"/>
</struts>


Regards,
Stefan Meisner Larsen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message