You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fz...@omnytex.com on 2004/10/14 16:38:55 UTC
Re: Navigation and forms submit
Can you smiply have all the forms named the same thing (say, "theForm"), and then on your links, do:
onClick="theForm.submit();"
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Thu, October 14, 2004 10:59 am, Karsten Krieg said:
> Hi!
>
> I've a navigation bar on the left side of my application which consists
> mostly of <html:link> tags with an action named /navigateMenu, which
> performs the task of passing the control to the target action, depending
> on the index.
>
> <html:link indexed="true" action="/navigateMenu.do">
> <bean:write name="menuItem" property="displayName"/>
> </html:link>
>
> Our application design now requires that the actual form is to be
> submitted
> when the user clicks on one of these links. Any idea how to do this?
>
> onclick=submit does not seem like a good idea, since each page has an
> individual form. The navigateMenuAction doesn't now anything about the
> actual form bean (class, attributes etc).
>
>
> Thanks alot
> Karsten Krieg
> intarsys consulting GmbH
> ----------------------------------------
> Fon +49 (0)721 3 84 79 - 28
> Fax +49 (0)721 3 84 79 - 60
> e-mail kkrieg@intarsys.de
> http://www.intarsys.de
> ----------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>