Your action needs to implement CommandDriven.

----- Original Message -----
From: "Java Lamer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 11:36 AM
Subject: [OS-webwork] Webwork 1.2.1 Default Action help


>
> Scott,
>
>      I did just that but it still going right through and call my
doExecute() instead of the doDefault().  Am I missing anything in my setup?
My action extends ActionSupport and implements SessionAware.  The Survey
worked but the PersonalInfo never made it to the default.
>
> My View:
>
> # Intent To Return
>
> IntentToReturn.login=login.jsp
>
> IntentToReturn.input=intentToReturn.jsp
>
> IntentToReturn.success=Survey!default.action
>
> # Intent To Return Survey
>
> Survey.login=login.jsp
>
> Survey.input=survey.jsp
>
> Survey.error=survey.jsp
>
> Survey.success=PersonalInfo!default.action
>
> # Intent To Return Personal Info
>
> PersonalInfo.login=login.jsp
>
> PersonalInfo.input=personal.jsp
>
> PersonalInfo.error=personal.jsp
>
> PersonalInfo.success=intentToReturn.jsp
>
> .
>
> .
>
> DEBUG [ServletDispatcher] Action:Survey!default
> DEBUG [ServletDispatcher] Result:input
> DEBUG [ServletDispatcher] View:/survey.jsp
> DEBUG [ServletDispatcher] Action:Survey
> DEBUG [ServletDispatcher] Result:success
> DEBUG [ServletDispatcher] Action:PersonalInfo!default
> DEBUG [ServletDispatcher] Result:success
> .
>
> .
>
>
>
> Thanks
>
> Doug
>
> ===== SNIP ======
>
> Date: Fri, 22 Nov 2002 02:20:50 +0100
> From: Scott Farquhar <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] Webwork Beginner Question on Action
> Reply-To: [EMAIL PROTECTED]
>
> Action1.input=input1.jsp
> Action1.error=input1.jsp
> Action1.success=Action2!default.action
>
> Action2.input=input2.jsp
> Action2.error=input2.jsp
> Action2.success=Action3!default.action
>
> Basically your success should call the next action, which should return
> the input page.
>
> Because you are calling doDefault() and not doExecute() you will be
> returned to the input page instead of the success page.
>
> Cheers,
> Scott
>
> ===== SNIP ======
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to