Just create a anchor to your form. <a href="searchForm.jsp">Search</a>
And then have the form submit to your doSearch action. That is all. Chris > there isn't any logic! only show the form... > so how can i do? > > 2010/5/21 <ch...@chrismiles.org> > >> You do not need to go through an action before your form unless there is >> some logic you wish to perform first. >> >> Chris >> >> > Hi all, >> > i am wondering what is the best way for link a page to other. >> > Imagine this scenario: >> > >> > Index Page with a menu: >> > - Search >> > - Insert >> > >> > if i click on search, must show a form. >> > so I use >> > <a href="<s:url action='searchForm' />">Search</a> >> > >> > in my struts.xml i have an action >> > <action name="searchForm"> >> > <result>formSearch.jsp</result> >> > </action> >> > >> > now i fill the form and on submit, i call the action doSearch >> > >> > <action name="doSearch" class="it.tesina.action.Search"> >> > <result>listSearch.jsp</result> >> > </action> >> > >> > So i have 2 actions. one for show the form and one for the true >> search. >> > and the same for the Insert. >> > >> > is it correct? is there any other method more efficient? >> > >> > Thanks all >> > Fabio >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org