arrrgh! I'd actually forgotten the container! Yes, I can now use a DynaActionForm dummy ActionForm! many thanks for the suggestions, especially the html:rewrite - can use that somewhere else. Alistair On 3 Mar 2005, at 14:55, Alistair Young wrote: > I tried that but kept getting form not found error. Would you know, > must have been a typo coz it works now! > thanks, > Alistair > > On 3 Mar 2005, at 14:49, Scott Purcell wrote: > >> Maybe .. how about using a bean of type DynaActionForm?. Therefore >> you can kind of pretend you have a bean, but not really use the bean, >> and not really have a class that you have to manage? >> >> eg: >> > name="foobar" >> type="org.apache.struts.action.DynaActionForm"> >> >> >> So in your action, you can call >> > path="/foopath" >> name="foobar" >> input="/index.jsp" >> type=com.skp.... >> scope="request" >> validate="false" >> >> >> >> I don't know if I am accurate, but from what I read abiout the >> DynaActionForm it looks like this may fly. >> >> Scott >> >> >> -----Original Message----- >> From: Alistair Young [mailto:alistair@smo.uhi.ac.uk] >> Sent: Thursday, March 03, 2005 8:40 AM >> To: Struts Users Mailing List >> Subject: Re: Action without ActionForm >> >> >> thanks Scott, that works but it sort of breaks the insulation of the >> jsp from the site structure: >>
>> if Start.do ever moves then all the jsp will have to change. >> This would be nice: >> " /> >> but you can't do that :( >> cheers, >> Alistair >> >> On 3 Mar 2005, at 14:32, Scott Purcell wrote: >> >>> Did you get that in your JSP file? I found that if I use the >>> html:form >>> tag in the jsp page in which I use that technique that it errors. >>> >>> If that is the case, in the JSP page, just use the normal >> ....blah> and see if the error goes away. >>> >>> Scott >>> >>> >>> >>> -----Original Message----- >>> From: Alistair Young [mailto:alistair@smo.uhi.ac.uk] >>> Sent: Thursday, March 03, 2005 7:49 AM >>> To: Struts Users Mailing List >>> Subject: Re: Action without ActionForm >>> >>> >>> I tried that but I get: >>> Cannot retrieve definition for form bean null on action /Start >>> >>> Alistair >>> >>> On 3 Mar 2005, at 12:54, Niall Pemberton wrote: >>> >>>> Just don't specify a form (i.e. no name="..." attribute) in your >>>> action >>>> mapping.... >>>> >>>> >>>> >>> /> >>>> >>>> >>>> Niall >>>> ----- Original Message ----- >>>> From: "Alistair Young" >>>> To: >>>> Sent: Thursday, March 03, 2005 12:45 PM >>>> Subject: Action without ActionForm >>>> >>>> >>>>> Is there any way in struts-config.xml to specify an Action that >>>>> doesn't >>>>> require an ActionForm? >>>>> I have: >>>>> >>>>> index.jsp -> link to controller Action -> decides which jsp to >>>>> display >>>>> -> start.jsp or stop.jsp >>>>> >>>>> start.jsp and stop.jsp just have a form with a button that >>>>> starts/stops >>>>> a service. So I don't need an ActionForm >>>>> >>>>> I tried: >>>>> >>>> type="org.apache.struts.action.DynaActionForm"/> >>>>> >>>>> >>>>> >>>> /> >>>>> >>>>> >>>>> but after the "generic" form bean is used by a previous Action I >>>>> get: >>>>> Cannot retrieve definition for form bean generic on action /Start >>>>> >>>>> do I need a DynaActionForm for every Action that doesn't need an >>>>> ActionForm? >>>> >>>> >>>> >>>> -------------------------------------------------------------------- >>>> - >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>> For additional commands, e-mail: user-help@struts.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org