  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | how to specify ActionMapper | how to specify ActionMapper 2007-02-07 - By Dave Newton
Back --- cilquirm <aadi.deshpande@(protected)> wrote: > By specifying the "queryReportBeanName" inside the > <result/> tag, you're actually setting the value on > the redirect-action object [...] > if you want to set a static param on your own action > then take it out from under the <result/> tag and put > it in inside the <action/> tag.
Just a clarification, that is direct contradiction to the docs at http://cwiki.apache.org/WW/redirect-action-result.html:
<package name="passingRequestParameters" extends="struts-default" namespace="/passingRequestParameters"> <-- Pass parameters (reportType, width and height) --> <!-- The redirect-action url generated will be : /genReport/generateReport.action?reportType=pie&width=100&height=100 --> <action name="gatherReportInfo" class="..."> <result name="showReportResult" type="redirect-action"> <param name="actionName">generateReport</param> <param name="namespace">/genReport</param> <param name="reportType">pie</param> <param name="width">100</param> <param name="height">100</param> </result> </action> </package>
because you're passing parameters to the *result* action, NOT the action that is *generating* the result.
This issue is in JIRA at https://issues.apache.org/struts/browse/WW-1714
So either the docs are wrong, or there's a bug.
d.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ______ __ __ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |