hello again.. i got this error..when i try to include struts-plugin.xml
Message ID: WebModule[/myeis]Exception starting filter struts2 The package name 'jasperreports-default' at location package - jar Complete Message file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 is already been used by another package at location package - file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/classes/struts-plugin.xml:8:43 - package - jar:file:/opt/SDK/domains/domain1/applications/j2ee-modules/myeis/WEB-INF/lib/struts2-jasperreports-plugin-2.0.5.jar!/struts-plugin.xml:8:43 here is my struts-plugin.xml <struts> <package name="jasperreports-default"> <result-types> <result-type name="jasper" class="org.apache.struts2.views.jasperreports.JasperReportsResult"/> </result-types> </package> </struts> and my action mapping <action name="eis_hr_002" class="apps.eis_hr_002"> <result name="success" type="jasper"> </result> </action> please help me..thank you so much RobinCamus <[EMAIL PROTECTED]> wrote: I saw your others post so if i understand correctly, you want to use jasperreports so here is what i ve done: in struts.xml: - - - - class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> - - -... -... -... -... - class="maintenanceHistoryQueryAction" method="search"> - - WEB-INF/pages/reports.jasper/maintenance_report.jasper - maintenanceHistoryQueryList - PDF - - -... -... - actually if you re using jasperreports, org.apache.struts2.views.jasperreports.JasperReportsResult is the good class for the result class. WEB-INF/pages/reports.jasper/maintenance_report.jasper is your precompiled rapport (i ve build them with ireports) maintenanceHistoryQueryList is the list with the data you need for your report you can find all those information on jasperreports forum... Robin honey0303 wrote: > > still i got the error even if i include that in my default package.. > > e.g. > > > > > > > > class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> > > ... > > > still have same error.. > > what you mean by this.. > > You ll have to find the result class you need to point at.. > > i am really new at Struts..please help me..thanks again. > > > > > RobinCamus wrote: >> >> I had to implement a jasper type for jasper report: >> I think you need to define a result type in struts.xml like >> >> >> >> >> class="org.apache.struts2.views.jasperreports.JasperReportsResult" /> >> >> .... >> >> >> You ll have to find the result class you need to point at. >> I hope it helps >> >> Robin >> >> >> honey0303 wrote: >>> >>> Hi i'm trying to integrate jasper with struts 2..but i got an error >>> because of my result type jasper >>> >>> i've followed this tutorial.. >>> >>> >>> class="com.mevipro.test.action.JasperAction"> >>> >>> >>> >>> my question is how can i defined a jasper result type? >>> i need answers ASAP..Thanks in advance >>> >> >> > > -- View this message in context: http://www.nabble.com/result-type-Jasper--Struts-2--tf3882770.html#a11006929 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.