I believe the question is 

How do I use an action with the html:form tag when the mapping does not
specify a form bean. 

The answer is, you can't; the next best thing being to declare an empty,
utility ActionForm to use in this cicumstance. 

Where it comes up is when people want to use html:buttons and what not
to activate hyperlinks or JavaScripts. A html:link would work as well
here, but some people like the look of a button.

Even when URL encoding is not an issue, the Struts buttons can be easier
to localize, et cetera.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

Mark Woon wrote:
> 
> Ditto.  I have several <action> tags without a name.  Docs doesn't specify that
> it's required (at least, as of v1.0.1).
> 
> "Amir N. Nashat" wrote:
> 
> > louis,
> >
> > yep...i have something similar and it works fine.
> >
> >
> > >>> [EMAIL PROTECTED] 1:26:41 PM 02/08/02 >>>
> > Strange ...... I have the follow in my struts-config.xml, and is working very
> > well
> >
> >     <action    path="/changeLocale"
> >                type="i18nPrototype.ChangeLocaleAction">
> >       <forward name="continue"
> > path="/instructor/createInstructor.do"/>
> >     </action>
> >
> > Will Jaynes wrote:
> >
> > > Seems like I should know this, but I don't.
> > >
> > > I have an action that has no need of a form. How do I specify the action
> > > tag in the struts-config.xml file. If I leave out the name attribute I
> > > get errors.
> > >
> > > Thanks, Will
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> --
> ~~Mark Woon~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> If you're not part of the solution, you're part of the precipitate.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to