[using Struts 1.3.5] I have a fairly complex search form which (once its content is checked as valid and unambiguous) should *redirect* to a results action that outputs a results.jsp page.
The primary reason for *redirecting* is that I want the browser's URL bar to display an address which entirely determines the results page. (So that we can link to the results page, without going through the form). For example, the URL might look like: www.mysite.com/results.do?param1=a647d¶m2=3g442b So far, the two actions are as follows: <action path="/search" name="searchForm" scope="request" type="com.mysite.searchAction" validate="true" input=".search"> <forward name="results" path="/results.do" redirect="true" /> <forward name="noresult" path=".noresult" redirect="false" /> </action> <action path="/results" scope="request" type="com.mysite.resultsAction" validate="false"> <forward name="success" path=".results" redirect="false" /> </action> (The paths ".noresult" and ".results" are tiles.) Inside my searchAction, in order to append the desired parameters, I construct the forward more or less like this: String resultsForward = mapping.findForward("results").getPath(); resultsForward += "?" + "criterionId=" + criterionId + "&" + "start=" + startYear; return new ActionForward(resultsForward); The problem with this piece of code is that I am not using the local redirect as defined in struts-config.html, and Struts doesn't realize that my home-engineered new ActionForward is meant to be a *redirect* and not a forward. When the results page appears, the URL bar still shows: "http://www.mysite.com/search.do". I would like either to: 1) instruct Struts that my newly formed forward is in fact a redirect. 2) or better, I would like to use my predefined "results" forward but attach to it a map of parameters (in the same way that you can attach a map-bean of parameters to an <html:link> tag). Are options 1 or 2 feasible? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]