- Make sure views.properties and webwork.properties are in WEB-INF/classes and restart your app server maybe, or touch web.xml to have the webapp reload.
Some other things you can play with.
- hack webwork.properties to have : webwork.action.packages= xpetstore.web.webwork.actions That will allow you to get rid of all package path from views.properties, you can just put the action.
So instead of this: myaction.action="">
you can do this: myaction.action="">
- Extend ActionSupport instead of implementing Action, override doExecute instead of execute.
Regards, -Andre Mermegas
-----Original Message-----
Hi all, I'm having a bit of trouble getting webwork up and running still.
I have a basic action that I've hacked from the xdoclet webwork example,
/** * @webwork.action
/** my xdoclet code generates the following views.properties file:
# Action views
myaction.add.action="">
myaction.add.success=success.jsp
forward)
<jsp:forward page="xpetstore.web.webwork.actions.Hello.jsp" />
I get the following error
No view for result [success] exists for action [xpetstore.web.webwork.actions.Hello])
Now I know that success.jsp works because I can go to it directly. Any ideas? cheers, Brian
|
- [OS-webwork] Can't see my success view :-( Brian McSweeney
- Re: [OS-webwork] Can't see my success view :-( Andre Mermegas
- Re: [OS-webwork] Can't see my success view :-( Brian McSweeney