struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Meisner Larsen" <>
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:
The Action is defined as:


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

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

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


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:
No result defined for action dk.bjo.view.UserAction and result input  *File*
*Line number*: 15  *Column number*: 54


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

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



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:

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

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

Stefan Meisner Larsen

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