Title: Message
If there is a better way to handle this in general, I'm all ears too.
 
I'm getting pretty good at this XDoclet stuff, I can probalby write a template to generate the actions.xml file if need be.
 
however let me know if I have made the correct translation into actions.xml
 
view.properties:
document.action="">
document.error=/error.jsp
document.view.action="">document.view.success=/document/documentViewer.jsp
 
actions.xml:
<actions>
    <action name="xxx.action.DocumentAction" alias="document">
        <view name="error">/error.jsp</view>
        <command name="xxx.action.DocumentAction!view" alias="view">
            <view name="success">/document/documentViewer.jsp</view>
        </command>
    </action>
</actions>
 
thanks everyone,
Frank
----- Original Message -----
Sent: Thursday, April 03, 2003 5:52 PM
Subject: RE: [OS-webwork] CommandDriven SUCCESS

Ok, who knows the views.properties way of doing this?
 
It looks to me like the "." in the action name is giving problems.
-----Original Message-----
From: Frank Febbraro [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 5:42 PM
To: webwork
Subject: [OS-webwork] CommandDriven SUCCESS

Hey all,
 
I have a CommandDriven Action (DocumentAction) and I use XDoclet to generate the views.properties.
 
DocumentAction has doView(), doEdit(), doSave(), etc. and they each have their own SUCCESS defined using @webwork.command success="/something/test.jsp"
 
after xdoclet processing views.properties contains:
 
document.view.action="">
document.view.success="/something/test.jsp"
 
Now when doView() "return SUCCESS" the view is not found, but if I return "view." + SUCCESS it is found.
This does not seem right. Is this by design? 
 
I thought since it knew enough to call doView() (document.view.action) then that is where it would look for success (document.view). Am I mistaken? It seems to only be aware of the context as "document".
 
Thank you so much for any help,
Frank

Reply via email to