Hi Nathan,

Nathan Anderson wrote:
Hi Rob,
Shouldn't that Struts XML snippet look like this?

<action name="deliveryTonnage" class="au.com.myapp.webapp.action.DeliveryTonnageAction"
method="list">
    <result name="success">/WEB-INF/pages/shiftList.jsp</result>
<!--
    <result>/WEB-INF/pages/deliveryTonnageList.jsp</result>
-->
</action>

Also I think all of my actions have at least 2 <result> tags, the other one being 
"input".
This one is modeled on several others (that are working) that were originally taken from the example in the Struts2 tutorial:

http://www.appfuse.org/display/APF/Using+Struts+2#UsingStruts2-listview

(the struts.xml snippet is a page below the anchor that the above URL takes you to).

The page will be a "view only" page, so AFAICT, I will only need to define the default result. That said, I've previously tried specifically naming it "success" exactly as you have suggested and got exactly the same error. When I read back through the relevant part of the tutorial (around the URL above) I realised that I only needed to supply a default (unnamed) result as I have done in my other "view" actions that work.

Cheers,
Rob Hills
Waikiki, Western Australia

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to