2007/3/28, Manoel Pimentel <[EMAIL PROTECTED]>:
Hi
Please, Can somebody explain to me how configure the file strust.xml for to
use the jasper result tag? and
if possible, send to me any little sample, ok?
you need to add the "jasper" result type in your struts.xml
<result-types>
<result-type name="jasper"
class="org.apache.struts2.views.jasperreports.JasperReportsResult"/>
</result-types>
and the following result in your action:
<action name="test" class="TestAction">
<result name="success" type="jasper">
<param name="location">jasper/test.jasper</param>
<param name="dataSource">testObject</param>
</result>
</action>
testObject is an object from your action in the valueStack
--
Guillaume Carré
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]