The easiest way is probably to add an entry to the UrlRewriteFilter
(WEB-INF/urlrewrite.xml).
http://tuckey.org/urlrewrite/manual/2.6/
Matt
On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote:
Environment:
* Appfuse v2M4 with struts basic archetype
* Firefox 2.x
* JasperReports
I integrated JasperReports with Appfuse v.2M4 with Struts basic archetype.
The steps I did include:
* add jasper dependencies in pom.xml
* prepare PersonAction.java
* prepare personList.jasper as generated by iReport
* configure struts.xml as follows
<package name="jasper" extends="jasperreports-default">
<action name="reportPersonListXLS" class="personAction"
method="reportList">
<result name="success" type="jasper">
<param
name="location">WEB-INF/jasper/personList.jasper</param>
<param name="dataSource">personList</param>
<param name="format">XLS</param>
</result>
</action>
......
</package>
Now, I can visit http://localhost/reportPersonListXLS.html to download (or
view) my Excel report.
However, if I choose to save the Excel file to disk, it will be saved as
"reportPersonXLS.html" instead of "xxxxxx.pdf"
So, what is the easiest way to configure a URL (such as
"http://localhost/reportPersonList.xls") that is actually forwarded (or
redirected) to the above report action?
Thanks in advance.
--
View this message in context:
http://www.nabble.com/How-to-customize-Struts2-action-extention-%22.html%22-to-%22.pdf%22-or-%22.xls%22-for-reports--tf3477247s2369.html#a9706231
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]