posted 13 years ago
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...>
<html:form>
In the struts-config.xml file i put the following configurations
<action path="/page1"
type="..."
validate="true"
name="Page1Form">
<action path="/page2"
type="..."
validate="true"
name="Page2Form">
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.