struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Lee" <>
Subject Re: NEWBIE: [CLOSED] difficulties getting simple no bean page working...
Date Thu, 12 Feb 2004 20:42:38 GMT
That compiles because you just overloaded the execute method. Upon 
execution, the base Action's execute would run and nothing would call your 


>From: Timothy Stone <>
>To: Struts Users Mailing List <>
>Subject: Re: NEWBIE: [CLOSED] difficulties getting simple no bean page 
>Too close and too embarrassed to say what it was. Okay, I'll say...
>Timothy Stone wrote:
>>I'm a Struts newbie with a lot of general hours in Tomcat. I want to 
>>advance my development with Struts 1.1 and Model 2.
>>Step 3. Create the Action subclass
>>package webAppDev;
>>import javax.servlet.http.*;
>>import org.apache.struts.action.*;
>>public class SearchAction1 extends Action {
>>     public ActionForward execute( ActionMapping mapping, Action form,
>>                                   HttpServletRequest request,
>>                                   HttpServletResponse response )
>>     throws Exception {
>>         return( mapping.findForward( "success" ) );
>>     }
>Can you see it? I incorrectly pass an Action object where Action#execute 
>expects an ActionForm! Typo Grande. Where I say "Action form", I meant to 
>type "ActionForm form".
>Now explain how that compiles? Action is not a subclass of ActionForm.
>Many thanks,
>To unsubscribe, e-mail:
>For additional commands, e-mail:

Click here for a FREE online computer virus scan from McAfee.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message