• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

actionForm mechanism

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good afternoon in my timezone.

I am dealing with a doubt that i can not find an answer in the forums.
I have two different pages , and to go to each of them i am using two tab.
Each page consists in one form with a few input texts fields and present the results in a table.Each form is something like this.

<html:form action="page1">
<input fields...>

In the struts-config.xml file i put the following configurations

<action path="/page1"
<action path="/page2"

That means that both page go to be validated through a ActionForm.
Until now i think that everything go by the book.
My problem is related with the tab links, i implemented them by the following manner:

<li><html:link action="/page1" paramId="tabId" paramName="beanName" paramProperty="tab2Id">Tab1</html:link></li>

If you see i am using the same action that i use in the form "page1" , the only difference is that i am passing in the GET the attribute tabId=1.
But in the logs i am able to see that the actionForm is not executed server side, it goes directly to the action object, why this happen ?
Is because i am not using post method? or is because none of the form fields are being sent,because i am not using the form?
And even in the action object i am not able to get from the request scope the attribute "tabId" that i sent in the GET request when i click in the tab.
What i am trying to do is : When i click on any tab i do not want that any validation happens because i am not clicking in any form field,i just want to go to the request page?So i am sending the tabId to inform the actionForm that this request happens when i clicked in a tab , so it should not validate anything.
Can anyone help me ?

Thanks in advance.
    Bookmark Topic Watch Topic
  • New Topic