Hello
I have a html form <html:form action="/search.do"> in my searchForm.jsp page
in struts-config.xml this action is defined like:
<action path="/search"
name="searchForm"
attribute="searchForm"
validate="true"
scope="session"
type="struts.SearchAction"
input="searchForm.jsp">
<forward name="success" path="searchResult.jsp" />
<forward name="error" path="searchForm.jsp" />
</action>
When I click a Submit button everything work fine. I need to have scope=session
because from result page I have a link to another detail page on which I want to have
the first search form with inserted values in the search fields.
But when I call a page searchForm.jsp (through action, which only show the
searchForm.jsp page) once again the values in search fields (combo boxes) are the same
as they was when I lastly call the search.do action from the form.
But now I don't want to have this values in the search fileds of the form. I want to
reset form, but I don't know how.
Any suggestion?
Best regards,
Stefan