Re: result type Jasper [Struts 2]

2007-06-07 Thread mi

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




 
  
 




and my action mapping




 

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.

Re:[S2] File not found exception

2007-07-24 Thread mi
Hello David, I already done that and still there is an exception thrown and 
caught in our Sun Java System application logs. how can i make that this 
exception is caught by struts and this is not log in our server logs..

thanks again.


David Binder <[EMAIL PROTECTED]> wrote: You can configure the "error page" 
section of your web deployment descriptor
to do such things see your servlet specification for exact declaration.

It should be something like :


404
/jsp/exception.jsp


David


   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

tags within tags in struts..

2007-04-11 Thread mi
hi i want to make the value of my url tag to come from the value of my property 
tag..
like this..


>

 
but i am getting an error,. what is the correct way to do it?

thanks in advance.


   
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.