[studs-user] New to Studs
Status: Beta
Brought to you by:
mojavelinux
|
From: <cl...@ya...> - 2007-11-15 03:03:21
|
Hey all,
I understand this place is kinda quiet. :)
I'm a Java Struts programmer, and I have some experience with PHP...So
recently I decided to give Studs a go.
So far, I really like it. It's got some quirks, but for the most part
it seems like a pretty solid package. One of these days when I get some
of that "spare time" stuff I keep hearing about, I hope to be able to
contribute to development.
However...I'm running into an issue, and I'm not entirely sure where
it's coming from.
In the validate() method--er, function--of my ActionForm, whenever it
returns errors Studs is trying to send it to the default forward
specified in the <global-forwards> section of my struts-config.xml
file, rather than the <forward> specified in the "input" attribute.
Here's the relevant pieces pf my struts-config.xml:
<global-forwards>
<!-- Default forward to "welcome" action -->
<forward name="welcome" path="/Main.do"/>
</global-forwards>
....
<action
path="/ChangePassword"
type="action.ChangePasswordAction"
name="changePasswordActionForm"
scope="request"
validate="true"
input="input">
<forward name="input" path="/pages/changePassword.psp" />
<forward name="success" path="/pages/changePasswordSuccess.psp" />
<forward name="invalidSession" path="/pages/invalidSession.psp" />
</action>
When validate() returns one or more ActionMessages, it's going to
Main.do rather than the /pages/changePassword.psp script.
I can't figure out why, and it's driving me slightly mad.
Any pointers?
Thanks,
Adam
|