You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "@rju" <na...@gmail.com> on 2011/02/17 04:34:38 UTC

Re: Integrate JasperReports into a Struts2 web application

hey can you tell me how to send the jasper report directly to the printer in
struts2-jasper report environment
-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946577.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948492.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
sir please help me
i ve already told my requirement as follows
am using struts2-jasper plugin am calling my action through jquery.
nw i need to print the report directly from printer when i ve pressed ok
button.
ok button will call the action.
please help me ragarding this.Its very urgent for me and it is the main
requirement for this project...

please tell your answer in detailed manner sir
what is stricer for app????


Jerson John wrote:
> 
> Verymuch possible...But u need to create stricter for ur app layer like
> MVC---U can make use of MODEL for ur swing
> 
> Good Luck
> 
> Many Thanks and Regards,
> 
> Jerson
> CPR Vision Management Pte Ltd
> CRM Software & Marketing
> 
> E: jerson@cprvision.com
> T: + (65) 6535 0996
> F: + (65) 6327 8085
> www.cprvision.com
> 
> CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of
> the
> Year" Award - Organized by Marketing Magazine
> 
> -----Original Message-----
> From: Frans Thamura [mailto:frans@meruvian.org] 
> Sent: Thursday, February 17, 2011 11:38 AM
> To: Struts Users Mailing List
> Cc: @rju
> Subject: Re: Integrate JasperReports into a Struts2 web application
> 
> struts2 is web based, jasper is standalone
> 
> if u create as swing that is possible
> 
> F
> 
> 
> On Thu, Feb 17, 2011 at 10:34 AM, @rju <na...@gmail.com> wrote:
>>
>> hey can you tell me how to send the jasper report directly to the printer
> in
>> struts2-jasper report environment
>> --
>> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
> -tp23479814p30946577.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971350.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by Jerson John <je...@cprvision.com>.
Verymuch possible...But u need to create stricter for ur app layer like
MVC---U can make use of MODEL for ur swing

Good Luck

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine

-----Original Message-----
From: Frans Thamura [mailto:frans@meruvian.org] 
Sent: Thursday, February 17, 2011 11:38 AM
To: Struts Users Mailing List
Cc: @rju
Subject: Re: Integrate JasperReports into a Struts2 web application

struts2 is web based, jasper is standalone

if u create as swing that is possible

F


On Thu, Feb 17, 2011 at 10:34 AM, @rju <na...@gmail.com> wrote:
>
> hey can you tell me how to send the jasper report directly to the printer
in
> struts2-jasper report environment
> --
> View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946577.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Ken McWilliams <ke...@aerose.com>.
This requirement would only make sense to me if this is in an intranet
where you have direct access to the printers. Then you could somehow get
your app to talk a print server.  It would be quite possible to make an
intelligent guess as to which printer in the company to send the
printout to based on the IP of the client.

On Sun, 2011-02-20 at 08:06 -0800, @rju wrote:
> sir please help me
> i ve already told my requirement as follows
> am using struts2-jasper plugin am calling my action through jquery.
> nw i need to print the report directly from printer when i ve pressed ok
> button.
> ok button will call the action.
> please help me ragarding this.Its very urgent for me and it is the main
> requirement for this project...
> 
> 
> 
> Dave Newton-6 wrote:
> > 
> > He's saying "Hit Ctrl-P from inside a PDF reader.
> > 
> > On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
> >>
> >> if dont mind can you tell in detailed manner
> >> --
> >> View this message in context:
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: sending the report directly to the printer

Posted by Martin Gainty <mg...@hotmail.com>.
server side:
write a file to a temp folder you can access ..preferably a folder that struts already has mapped e.g.
<constant name="struts.convention.result.path" value="/pages"/>
setup a cron job which scans the struts mapped folder (on some pre-scribed interval) and prints the contents (then deletes the file)

as mentioned executing print functionality is OS specific 

Unix prints with lpr
http://www.kb.iu.edu/data/adzr.html

Windows prints with the print command
http://support.microsoft.com/kb/58143

client-side:
map your button to the Print-Screen button is the easiest way to print wikipedia says U+2399
http://en.wikipedia.org/wiki/Print_screen
Be Aware that this is specific to the keyboard layout so someone may change keyboard from EN-US to CN-chinese and the mappings may change
so you have your work cut out for you (depending on your current IME configuration)

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 20 Feb 2011 11:18:08 -0500
> Subject: Re: sending the report directly to the printer
> From: davelnewton@gmail.com
> To: user@struts.apache.org
> CC: nagarjunabattula@gmail.com
> 
> I have no idea. Personally, I'd be a little surprised if it was
> possible to print from a website with *no* user interaction without
> using something like ActiveX, an applet, or *something*.
> 
> Dave
> 
> On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com> wrote:
> >
> > sir please help me
> > i ve already told my requirement as follows
> > am using struts2-jasper plugin am calling my action through jquery.
> > nw i need to print the report directly from printer when i ve pressed ok
> > button.
> > ok button will call the action.
> > please help me ragarding this.Its very urgent for me and it is the main
> > requirement for this project...
> >
> >
> >
> > Dave Newton-6 wrote:
> >>
> >> He's saying "Hit Ctrl-P from inside a PDF reader.
> >>
> >> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
> >>>
> >>> if dont mind can you tell in detailed manner
> >>> --
> >>> View this message in context:
> >>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >>> Sent from the Struts - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >>
> >
> > --
> > View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

Re: how to prevent stretching of detail tab in IReport

Posted by "@rju" <na...@gmail.com>.
no problem sir i got it. if we placed parameters in the summary tab then it
wont stretch the detail tab like that.
-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31130655.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: how to prevent stretching of detail tab in IReport

Posted by Dave Newton <da...@gmail.com>.
I'd recommend approaching the Jasper Reports and/or iReport
lists/forums for questions regarding Jasper Reports/iReport.

Dave

On Fri, Mar 11, 2011 at 12:42 AM, @rju <na...@gmail.com> wrote:
>
> hi Dave
> how ru.
> am facing a problem sir. here am attaching a pdf of jasper report and jrxml
> file. In that detail tab is stretching like anything. Space between detail
> tab and coloumn footer is very high. i want detail tab correctly fit to the
> data. am attaching that jrcml file and pdf
>
> http://old.nabble.com/file/p31122390/Sales.jrxml Sales.jrxml
> http://old.nabble.com/file/p31122390/salesBillReport2.pdf
> salesBillReport2.pdf
>
> please help me sir its very urgent for me
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31122390.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


how to prevent stretching of detail tab in IReport

Posted by "@rju" <na...@gmail.com>.
hi Dave 
how ru.
am facing a problem sir. here am attaching a pdf of jasper report and jrxml 
file. In that detail tab is stretching like anything. Space between detail
tab and coloumn footer is very high. i want detail tab correctly fit to the
data. am attaching that jrcml file and pdf

http://old.nabble.com/file/p31122390/Sales.jrxml Sales.jrxml 
http://old.nabble.com/file/p31122390/salesBillReport2.pdf
salesBillReport2.pdf 

please help me sir its very urgent for me
-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31122390.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: sending the report directly to the printer

Posted by Jerson John <je...@cprvision.com>.
Hi Brother,
   Just for your info,
      I was trying for the samething last time and my requirement was to print from server side..Means that I have a fixed printer with ip address and I use Java print...This means When client click the print button ,it will come to server and server will directly print the page...So there is no user interaction once they click the print button..

But your requirement seems like u want to print from the webpage and there limited options like window.print() command in javascript..When u use this it will definetly prompt for u to choose the printer in ur client/browser PC....That's the safest way and It u try some active and hardcode the printer then u need to makesure that all ur browser pc has same printer name....If u find any other majic pls pls share with me also

Hope This would help some way

Many Thanks and Regards,

Jerson

-----Original Message-----
From: Brian Thompson [mailto:elephantium@gmail.com] 
Sent: Monday, February 21, 2011 2:47 PM
To: Struts Users Mailing List
Cc: @rju
Subject: Re: sending the report directly to the printer

Try putting the window.print() in the code for the page at urlx.

-Brian


On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com> wrote:

>
> exactly i did
> but the problem here is.. see my code
>
> var urlx="myaction.action";
> var x= window.open(urlx);
> x.window.print();
>
> here it is invoking printer
> but empty page is printing because the action is taking time to load.
> thats y am getting empty page so any alternative?????
>
>
> Brian Thompson-5 wrote:
> >
> > Then no, there's no way to do this.
> >
> > What you *can* do is:
> >
> > User clicks HTML button --> Struts action/Jasper report displays --> some
> > javascript on the report calls window.print(); --> user clicks "OK" on
> the
> > Print dialog.
> >
> > -Brian
> >
> >
> >
> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> yes user is clicking html/jsp button only
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
> >> > browser's print dialog box?
> >> >
> >> > At the very least, the user will see the print dialog...there's no way
> >> > around that for a web page (which, ultimately, is what Struts is
> >> sending
> >> > to
> >> > the user).
> >> >
> >> > -Brian
> >> >
> >> >
> >> >
> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> no sir.
> >> >> no. user interaction means he will press ok button.
> >> >> there "no user interaction" means after clicking "ok", some guys
> >> >> suggested
> >> >> me that use onLoad () then write one listener for print. so here no
> >> user
> >> >> interaction means after pressing ok button.
> >> >>
> >> >> user will interact only by pressing ok button. after that ok button
> >> will
> >> >> call the struts action.
> >> >> so here now without any user interaction i need the print out after
> >> >> calling
> >> >> action unlike a report pdf.
> >> >> hope u got my point
> >> >>
> >> >>
> >> >> Dave Newton-6 wrote:
> >> >> >
> >> >> > I have no idea. Personally, I'd be a little surprised if it was
> >> >> > possible to print from a website with *no* user interaction without
> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >
> >> >> > Dave
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >>
> >> >> >> sir please help me
> >> >> >> i ve already told my requirement as follows
> >> >> >> am using struts2-jasper plugin am calling my action through
> jquery.
> >> >> >> nw i need to print the report directly from printer when i ve
> >> pressed
> >> >> ok
> >> >> >> button.
> >> >> >> ok button will call the action.
> >> >> >> please help me ragarding this.Its very urgent for me and it is the
> >> >> main
> >> >> >> requirement for this project...
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Dave Newton-6 wrote:
> >> >> >>>
> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >>>
> >> >> >>> On Wednesday, February 16, 2011, @rju <
> nagarjunabattula@gmail.com>
> >> >> >>> wrote:
> >> >> >>>>
> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >>>> --
> >> >> >>>> View this message in context:
> >> >> >>>>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>>>
> >> >> >>>>
> >> >> >>>>
> >> >> ---------------------------------------------------------------------
> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>>
> >> ---------------------------------------------------------------------
> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
u ve suggested this but. My problem is my ok button calling action right.
here after pressing the ok button result will be in a pop up.
now after loading the popup action it should call the window.print();
help me out.......
generally this functionality working in one website "www.irctc.co.in" 
this site is for reservation of train tickets.
after the transaction done one button will be there. that button results one
action as a popup [window.open()]and after loading the page automatically
print functionality is working..



Brian Thompson-5 wrote:
> 
> In 'UserWiseSaledPayinSlipReport.jsp' ...
> 
> Replace <head> with:
> 
>   <head>
>     <base href="<%=basePath%>">
> 
>     <title>My JSP 'UserWiseSalesPayinSlipReport.jsp' starting page</title>
> 
>     <meta http-equiv="pragma" content="no-cache">
>     <meta http-equiv="cache-control" content="no-cache">
>     <meta http-equiv="expires" content="0">
>     <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
>     <meta http-equiv="description" content="This is my page">
>     <!--
>     <link rel="stylesheet" type="text/css" href="styles.css">
>     -->
>     <script type="text/javascript">
>         window.onload = function() {
>             //I'm using the simple window.onload here, but you might want
> to
> use a jQuery ready() call or an addLoadEvent approach instead
>             window.print();
>         }
>     </script>
> 
>   </head>
> 
> 
> 
> On Tue, Feb 22, 2011 at 9:55 PM, @rju <na...@gmail.com> wrote:
> 
>>
>>
>> i am sending files UserWiseSalesPayInSlipReportRequest.java,
>> UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
>> UserWiseSalesPayinSlipReport.jsp, code in struts.xml files
>>
>>
>> payInSlip in  UserWiseSalesReport.jsp button will result
>> UserWiseSalesPayinSlipReport.jsp.
>> in that netAmount and the total textfield will be there. after matching
>> of
>> these two values will enable the ok button in
>> UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
>> "UserWiseSalesPayInSlipReport". now i need print out unlike a report
>> coming
>> in the output
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
>> UserWiseSalesReportPOJO.java
>>
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
>> UserWiseSalesPayInSlipReportRequest.java
>>
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
>> UserWiseSalesPayInSlipReportAction.java
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
>> UserWiseSalesPayinSlipReport.jsp
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
>> UserWiseSalesReport.jsp
>>
>>
>> http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
>> UserWiseSalesReport.js
>>
>>
>> In these files for your convenience i have placed the sentence "check
>> here
>> Mr.Brian Thompson-5" to make your search easy..
>>
>>
>> please help me sir.....
>>
>>
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Could you post your code for your report?
>> >
>> > -Brian
>> >
>> >
>> >
>> > On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> sir
>> >>  u said "Can't you just put it in your jsp for the report action?"
>> >> please elaborate this sir. i am not getting your point.
>> >> please sir
>> >>
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Can't you just put it in your jsp for the report action?
>> >> >
>> >> > -Brian
>> >> >
>> >> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> here urlx is nothing but an action
>> >> >> in that action i have a code as follows
>> >> >>  <action
>> >> >>                name="myaction"
>> >> >>                method="getItemsNotInPackageReport"
>> >> >>
>> >> >>
>> >>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>> >> >>
>> >> >>                <result name="myaction" type="jasper">
>> >> >>            /jasper/sales/ItemsNotInPackageReport.jasper
>> >> >>            itemNameList
>> >> >>            PDF
>> >> >>        </result>
>> >> >>        </action>
>> >> >>
>> >> >> so now what to do? how should i include that window.print()..
>> >> >> please tell me sir
>> >> >>
>> >> >>
>> >> >> Brian Thompson-5 wrote:
>> >> >> >
>> >> >> > Try putting the window.print() in the code for the page at urlx.
>> >> >> >
>> >> >> > -Brian
>> >> >> >
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju
>> <nagarjunabattula@gmail.com
>> >
>> >> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> exactly i did
>> >> >> >> but the problem here is.. see my code
>> >> >> >>
>> >> >> >> var urlx="myaction.action";
>> >> >> >> var x= window.open(urlx);
>> >> >> >> x.window.print();
>> >> >> >>
>> >> >> >> here it is invoking printer
>> >> >> >> but empty page is printing because the action is taking time to
>> >> load.
>> >> >> >> thats y am getting empty page so any alternative?????
>> >> >> >>
>> >> >> >>
>> >> >> >> Brian Thompson-5 wrote:
>> >> >> >> >
>> >> >> >> > Then no, there's no way to do this.
>> >> >> >> >
>> >> >> >> > What you *can* do is:
>> >> >> >> >
>> >> >> >> > User clicks HTML button --> Struts action/Jasper report
>> displays
>> >> -->
>> >> >> >> some
>> >> >> >> > javascript on the report calls window.print(); --> user clicks
>> >> "OK"
>> >> >> on
>> >> >> >> the
>> >> >> >> > Print dialog.
>> >> >> >> >
>> >> >> >> > -Brian
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
>> >> <nagarjunabattula@gmail.com
>> >> >
>> >> >> >> wrote:
>> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> yes user is clicking html/jsp button only
>> >> >> >> >>
>> >> >> >> >> Brian Thompson-5 wrote:
>> >> >> >> >> >
>> >> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML
>> button?
>> >>  Or
>> >> >> >> the
>> >> >> >> >> > browser's print dialog box?
>> >> >> >> >> >
>> >> >> >> >> > At the very least, the user will see the print
>> >> dialog...there's
>> >> >> no
>> >> >> >> way
>> >> >> >> >> > around that for a web page (which, ultimately, is what
>> Struts
>> >> is
>> >> >> >> >> sending
>> >> >> >> >> > to
>> >> >> >> >> > the user).
>> >> >> >> >> >
>> >> >> >> >> > -Brian
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
>> >> >> <na...@gmail.com>
>> >> >> >> >> wrote:
>> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >> no sir.
>> >> >> >> >> >> no. user interaction means he will press ok button.
>> >> >> >> >> >> there "no user interaction" means after clicking "ok",
>> some
>> >> guys
>> >> >> >> >> >> suggested
>> >> >> >> >> >> me that use onLoad () then write one listener for print.
>> so
>> >> here
>> >> >> no
>> >> >> >> >> user
>> >> >> >> >> >> interaction means after pressing ok button.
>> >> >> >> >> >>
>> >> >> >> >> >> user will interact only by pressing ok button. after that
>> ok
>> >> >> button
>> >> >> >> >> will
>> >> >> >> >> >> call the struts action.
>> >> >> >> >> >> so here now without any user interaction i need the print
>> out
>> >> >> after
>> >> >> >> >> >> calling
>> >> >> >> >> >> action unlike a report pdf.
>> >> >> >> >> >> hope u got my point
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >> >> >
>> >> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if
>> it
>> >> >> was
>> >> >> >> >> >> > possible to print from a website with *no* user
>> interaction
>> >> >> >> without
>> >> >> >> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Dave
>> >> >> >> >> >> >
>> >> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> >> >> >> <nagarjunabattula@gmail.com
>> >> >> >> >
>> >> >> >> >> >> wrote:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> sir please help me
>> >> >> >> >> >> >> i ve already told my requirement as follows
>> >> >> >> >> >> >> am using struts2-jasper plugin am calling my action
>> >> through
>> >> >> >> jquery.
>> >> >> >> >> >> >> nw i need to print the report directly from printer
>> when
>> i
>> >> ve
>> >> >> >> >> pressed
>> >> >> >> >> >> ok
>> >> >> >> >> >> >> button.
>> >> >> >> >> >> >> ok button will call the action.
>> >> >> >> >> >> >> please help me ragarding this.Its very urgent for me
>> and
>> >> it
>> >> >> is
>> >> >> >> the
>> >> >> >> >> >> main
>> >> >> >> >> >> >> requirement for this project...
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> >> >> >> nagarjunabattula@gmail.com>
>> >> >> >> >> >> >>> wrote:
>> >> >> >> >> >> >>>>
>> >> >> >> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >> >> >> >>>> --
>> >> >> >> >> >> >>>> View this message in context:
>> >> >> >> >> >> >>>>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
>> >> >> >> Nabble.com.
>> >> >> >> >> >> >>>>
>> >> >> >> >> >> >>>>
>> >> >> >> >> >> >>>>
>> >> >> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >> >> >>>> To unsubscribe, e-mail:
>> >> user-unsubscribe@struts.apache.org
>> >> >> >> >> >> >>>> For additional commands, e-mail:
>> >> >> user-help@struts.apache.org
>> >> >> >> >> >> >>>>
>> >> >> >> >> >> >>>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> >> >>> To unsubscribe, e-mail:
>> >> user-unsubscribe@struts.apache.org
>> >> >> >> >> >> >>> For additional commands, e-mail:
>> >> user-help@struts.apache.org
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> --
>> >> >> >> >> >> >> View this message in context:
>> >> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> >> >> >> Sent from the Struts - User mailing list archive at
>> >> >> Nabble.com.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> >> >> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> >> >> >> >> >> >> For additional commands, e-mail:
>> >> user-help@struts.apache.org
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> >> > To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> >> >> >> >> >> > For additional commands, e-mail:
>> >> user-help@struts.apache.org
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >> View this message in context:
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> >> >> >> Sent from the Struts - User mailing list archive at
>> >> Nabble.com.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> >> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> >> >> >> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31130686.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: unable to prevent form stretching

Posted by Jerson John <je...@cprvision.com>.
Hi all,
    Thanks for all of your comments.Really appreciate....now I got some idea
to start this.... 

Many Thanks and Regards,

Jerson


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Friday, February 25, 2011 11:24 AM
To: user@struts.apache.org
Subject: RE: unable to prevent form stretching


forum means oldnabble na...
hope you are asking about that.
http://old.nabble.com/
register in this site and u l get an user interface.


or u r asking our company software??
we are using Strtuts2,JPA,EJB3. All the things configured by our project
manager.
and for coding we are using MyEclipse and for reports iReport


Jerson John wrote:
> 
> Hi riju,
>     How did u manage to do your forum...Is it custom build or you are
> using
> some api or opensource application or thirdpart thing...Beacuse now I am
> heading towards building the forum for my application....Please help me
> 
> Many Thanks and Regards,
> 
> Jerson
> 
> -----Original Message-----
> From: @rju [mailto:nagarjunabattula@gmail.com] 
> Sent: Thursday, February 24, 2011 5:11 PM
> To: user@struts.apache.org
> Subject: unable to prevent form stretching
> 
> 
> hello
> 
> in my report the detail tab is stretching as shown in the pdf file. after
> the gap is regardless of the data existence the tab is stretching. and the
> coloumn footer is coming very far from the detail tab. any solution for
> this????
> http://old.nabble.com/file/p31001618/salesBillReport2.pdf
> salesBillReport2.pdf 
> 
> in this pdf am gettin grand total very footer of the report.
> 
> 
> -- 
> View this message in context:
>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
> -tp23479814p31001618.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p31010001.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: unable to prevent form stretching

Posted by "@rju" <na...@gmail.com>.
forum means oldnabble na...
hope you are asking about that.
http://old.nabble.com/
register in this site and u l get an user interface.


or u r asking our company software??
we are using Strtuts2,JPA,EJB3. All the things configured by our project
manager.
and for coding we are using MyEclipse and for reports iReport


Jerson John wrote:
> 
> Hi riju,
>     How did u manage to do your forum...Is it custom build or you are
> using
> some api or opensource application or thirdpart thing...Beacuse now I am
> heading towards building the forum for my application....Please help me
> 
> Many Thanks and Regards,
> 
> Jerson
> 
> -----Original Message-----
> From: @rju [mailto:nagarjunabattula@gmail.com] 
> Sent: Thursday, February 24, 2011 5:11 PM
> To: user@struts.apache.org
> Subject: unable to prevent form stretching
> 
> 
> hello
> 
> in my report the detail tab is stretching as shown in the pdf file. after
> the gap is regardless of the data existence the tab is stretching. and the
> coloumn footer is coming very far from the detail tab. any solution for
> this????
> http://old.nabble.com/file/p31001618/salesBillReport2.pdf
> salesBillReport2.pdf 
> 
> in this pdf am gettin grand total very footer of the report.
> 
> 
> -- 
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
> -tp23479814p31001618.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31010001.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: unable to prevent form stretching

Posted by Jerson John <je...@cprvision.com>.
Hi riju,
    How did u manage to do your forum...Is it custom build or you are using
some api or opensource application or thirdpart thing...Beacuse now I am
heading towards building the forum for my application....Please help me

Many Thanks and Regards,

Jerson

-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 24, 2011 5:11 PM
To: user@struts.apache.org
Subject: unable to prevent form stretching


hello

in my report the detail tab is stretching as shown in the pdf file. after
the gap is regardless of the data existence the tab is stretching. and the
coloumn footer is coming very far from the detail tab. any solution for
this????
http://old.nabble.com/file/p31001618/salesBillReport2.pdf
salesBillReport2.pdf 

in this pdf am gettin grand total very footer of the report.


-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p31001618.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: unable to prevent form stretching

Posted by Maurizio Cucchiara <ma...@gmail.com>.
This question is not related to struts, is more a detail of jasper report.
Please ask your question to the jasper mailing list.

On 24 February 2011 10:10, @rju <na...@gmail.com> wrote:
>
> hello
>
> in my report the detail tab is stretching as shown in the pdf file. after
> the gap is regardless of the data existence the tab is stretching. and the
> coloumn footer is coming very far from the detail tab. any solution for
> this????
> http://old.nabble.com/file/p31001618/salesBillReport2.pdf
> salesBillReport2.pdf
>
> in this pdf am gettin grand total very footer of the report.
>
>
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31001618.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
Maurizio Cucchiara

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


unable to prevent form stretching

Posted by "@rju" <na...@gmail.com>.
hello

in my report the detail tab is stretching as shown in the pdf file. after
the gap is regardless of the data existence the tab is stretching. and the
coloumn footer is coming very far from the detail tab. any solution for
this????
http://old.nabble.com/file/p31001618/salesBillReport2.pdf
salesBillReport2.pdf 

in this pdf am gettin grand total very footer of the report.


-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p31001618.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: double select tag

Posted by Kushan Jayathilake <ku...@gmail.com>.
You can do something like this, this the manual way.

1. Refresh  the page after an item get selected from the first drop down,

submit the selected value to backend and get the required list of values to
populate as the second drop down, then generate a java script array with
that. iterate through the javascript array and build up the second drop
down.

2. If you dont want to refresh the page, then you can do AJAX submit and
generate the javascipt as mentioned above, and generate the drop down.


This is the code to generate the drop down,

*        for(var counter = 0; counter < familyArray.length; counter++) {

            if(familyArray[counter][0] == engineType) {
                engineFamily.options[0] = new Option('Select..','0');
                engineFamily.options[c] = new Option(familyArray[counter][1]
,familyArray[counter][1]);
                c++;
            }

        }*

*familyArray* is the one your generated javascript array.

On Fri, Feb 25, 2011 at 7:42 PM, Kerry, Michael P. <
michael_kerry@harvard.edu> wrote:

> Hi,
>
> If you're using struts2, have you tried out the JQuery plugin:
>
>  http://code.google.com/p/struts2-jquery/
>  showcase: http://www.weinfreund.de/struts2-jquery-showcase/index.action)?
>
> It has support for double select, among many others. So far so good for me
> - although perhaps there are issues that others have experienced. I would
> love to hear others weigh in on it.
>
> Michael
>
> -----Original Message-----
> From: Jerson John [mailto:jerson@cprvision.com]
> Sent: Wednesday, February 23, 2011 12:09 AM
> To: 'Struts Users Mailing List'
> Subject: double select tag
>
> Hi,
>  Can some one help me on double select tag with Hibernate...I am having two
> classes AssetCat,AssetSubCat and My first list should be assetcat list and
> according to the Assetcat selection I need to populate the second list which
> is assetsubcat list....Please advice me on this...I try to google it but
> Only could find hardcoded string array stuff...Please advice me on this..
>
> Thanks in advance
>
> Many Thanks and Regards,
>
> Jerson
>
> Many Thanks and Regards,
>
> Jerson
>
>
> -----Original Message-----
> From: Brian Thompson [mailto:elephantium@gmail.com]
> Sent: Wednesday, February 23, 2011 12:49 PM
> To: Struts Users Mailing List
> Cc: @rju
> Subject: Re: sending the report directly to the printer
>
> In 'UserWiseSaledPayinSlipReport.jsp' ...
>
> Replace <head> with:
>
>  <head>
>    <base href="<%=basePath%>">
>
>    <title>My JSP 'UserWiseSalesPayinSlipReport.jsp' starting page</title>
>
>    <meta http-equiv="pragma" content="no-cache">
>    <meta http-equiv="cache-control" content="no-cache">
>    <meta http-equiv="expires" content="0">
>    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
>    <meta http-equiv="description" content="This is my page">
>    <!--
>    <link rel="stylesheet" type="text/css" href="styles.css">
>    -->
>    <script type="text/javascript">
>        window.onload = function() {
>            //I'm using the simple window.onload here, but you might want to
> use a jQuery ready() call or an addLoadEvent approach instead
>            window.print();
>        }
>    </script>
>
>  </head>
>
>
>
> On Tue, Feb 22, 2011 at 9:55 PM, @rju <na...@gmail.com> wrote:
>
> >
> >
> > i am sending files UserWiseSalesPayInSlipReportRequest.java,
> > UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
> > UserWiseSalesPayinSlipReport.jsp, code in struts.xml files
> >
> >
> > payInSlip in  UserWiseSalesReport.jsp button will result
> > UserWiseSalesPayinSlipReport.jsp.
> > in that netAmount and the total textfield will be there. after matching
> of
> > these two values will enable the ok button in
> > UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
> > "UserWiseSalesPayInSlipReport". now i need print out unlike a report
> coming
> > in the output
> >
> >
> > http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
> > UserWiseSalesReportPOJO.java
> >
> >
> >
> >
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
> > UserWiseSalesPayInSlipReportRequest.java
> >
> >
> >
> >
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
> > UserWiseSalesPayInSlipReportAction.java
> >
> >
> > http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
> > UserWiseSalesPayinSlipReport.jsp
> >
> >
> > http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
> > UserWiseSalesReport.jsp
> >
> >
> > http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
> > UserWiseSalesReport.js
> >
> >
> > In these files for your convenience i have placed the sentence "check
> here
> > Mr.Brian Thompson-5" to make your search easy..
> >
> >
> > please help me sir.....
> >
> >
> >
> >
> > Brian Thompson-5 wrote:
> > >
> > > Could you post your code for your report?
> > >
> > > -Brian
> > >
> > >
> > >
> > > On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com>
> > wrote:
> > >
> > >>
> > >> sir
> > >>  u said "Can't you just put it in your jsp for the report action?"
> > >> please elaborate this sir. i am not getting your point.
> > >> please sir
> > >>
> > >>
> > >> Brian Thompson-5 wrote:
> > >> >
> > >> > Can't you just put it in your jsp for the report action?
> > >> >
> > >> > -Brian
> > >> >
> > >> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
> > >> wrote:
> > >> >
> > >> >>
> > >> >> here urlx is nothing but an action
> > >> >> in that action i have a code as follows
> > >> >>  <action
> > >> >>                name="myaction"
> > >> >>                method="getItemsNotInPackageReport"
> > >> >>
> > >> >>
> > >>
> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
> > >> >>
> > >> >>                <result name="myaction" type="jasper">
> > >> >>            /jasper/sales/ItemsNotInPackageReport.jasper
> > >> >>            itemNameList
> > >> >>            PDF
> > >> >>        </result>
> > >> >>        </action>
> > >> >>
> > >> >> so now what to do? how should i include that window.print()..
> > >> >> please tell me sir
> > >> >>
> > >> >>
> > >> >> Brian Thompson-5 wrote:
> > >> >> >
> > >> >> > Try putting the window.print() in the code for the page at urlx.
> > >> >> >
> > >> >> > -Brian
> > >> >> >
> > >> >> >
> > >> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <
> nagarjunabattula@gmail.com
> > >
> > >> >> wrote:
> > >> >> >
> > >> >> >>
> > >> >> >> exactly i did
> > >> >> >> but the problem here is.. see my code
> > >> >> >>
> > >> >> >> var urlx="myaction.action";
> > >> >> >> var x= window.open(urlx);
> > >> >> >> x.window.print();
> > >> >> >>
> > >> >> >> here it is invoking printer
> > >> >> >> but empty page is printing because the action is taking time to
> > >> load.
> > >> >> >> thats y am getting empty page so any alternative?????
> > >> >> >>
> > >> >> >>
> > >> >> >> Brian Thompson-5 wrote:
> > >> >> >> >
> > >> >> >> > Then no, there's no way to do this.
> > >> >> >> >
> > >> >> >> > What you *can* do is:
> > >> >> >> >
> > >> >> >> > User clicks HTML button --> Struts action/Jasper report
> displays
> > >> -->
> > >> >> >> some
> > >> >> >> > javascript on the report calls window.print(); --> user clicks
> > >> "OK"
> > >> >> on
> > >> >> >> the
> > >> >> >> > Print dialog.
> > >> >> >> >
> > >> >> >> > -Brian
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
> > >> <nagarjunabattula@gmail.com
> > >> >
> > >> >> >> wrote:
> > >> >> >> >
> > >> >> >> >>
> > >> >> >> >> yes user is clicking html/jsp button only
> > >> >> >> >>
> > >> >> >> >> Brian Thompson-5 wrote:
> > >> >> >> >> >
> > >> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML
> button?
> > >>  Or
> > >> >> >> the
> > >> >> >> >> > browser's print dialog box?
> > >> >> >> >> >
> > >> >> >> >> > At the very least, the user will see the print
> > >> dialog...there's
> > >> >> no
> > >> >> >> way
> > >> >> >> >> > around that for a web page (which, ultimately, is what
> Struts
> > >> is
> > >> >> >> >> sending
> > >> >> >> >> > to
> > >> >> >> >> > the user).
> > >> >> >> >> >
> > >> >> >> >> > -Brian
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
> > >> >> <na...@gmail.com>
> > >> >> >> >> wrote:
> > >> >> >> >> >
> > >> >> >> >> >>
> > >> >> >> >> >> no sir.
> > >> >> >> >> >> no. user interaction means he will press ok button.
> > >> >> >> >> >> there "no user interaction" means after clicking "ok",
> some
> > >> guys
> > >> >> >> >> >> suggested
> > >> >> >> >> >> me that use onLoad () then write one listener for print.
> so
> > >> here
> > >> >> no
> > >> >> >> >> user
> > >> >> >> >> >> interaction means after pressing ok button.
> > >> >> >> >> >>
> > >> >> >> >> >> user will interact only by pressing ok button. after that
> ok
> > >> >> button
> > >> >> >> >> will
> > >> >> >> >> >> call the struts action.
> > >> >> >> >> >> so here now without any user interaction i need the print
> > out
> > >> >> after
> > >> >> >> >> >> calling
> > >> >> >> >> >> action unlike a report pdf.
> > >> >> >> >> >> hope u got my point
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >> Dave Newton-6 wrote:
> > >> >> >> >> >> >
> > >> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if
> > it
> > >> >> was
> > >> >> >> >> >> > possible to print from a website with *no* user
> > interaction
> > >> >> >> without
> > >> >> >> >> >> > using something like ActiveX, an applet, or *something*.
> > >> >> >> >> >> >
> > >> >> >> >> >> > Dave
> > >> >> >> >> >> >
> > >> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> > >> >> >> <nagarjunabattula@gmail.com
> > >> >> >> >
> > >> >> >> >> >> wrote:
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> sir please help me
> > >> >> >> >> >> >> i ve already told my requirement as follows
> > >> >> >> >> >> >> am using struts2-jasper plugin am calling my action
> > >> through
> > >> >> >> jquery.
> > >> >> >> >> >> >> nw i need to print the report directly from printer
> when
> > i
> > >> ve
> > >> >> >> >> pressed
> > >> >> >> >> >> ok
> > >> >> >> >> >> >> button.
> > >> >> >> >> >> >> ok button will call the action.
> > >> >> >> >> >> >> please help me ragarding this.Its very urgent for me
> and
> > >> it
> > >> >> is
> > >> >> >> the
> > >> >> >> >> >> main
> > >> >> >> >> >> >> requirement for this project...
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> Dave Newton-6 wrote:
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> > >> >> >> nagarjunabattula@gmail.com>
> > >> >> >> >> >> >>> wrote:
> > >> >> >> >> >> >>>>
> > >> >> >> >> >> >>>> if dont mind can you tell in detailed manner
> > >> >> >> >> >> >>>> --
> > >> >> >> >> >> >>>> View this message in context:
> > >> >> >> >> >> >>>>
> > >> >> >> >> >>
> > >> >> >> >>
> > >> >> >>
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> > >> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> > >> >> >> Nabble.com.
> > >> >> >> >> >> >>>>
> > >> >> >> >> >> >>>>
> > >> >> >> >> >> >>>>
> > >> >> >> >> >>
> > >> >> >>
> > >> ---------------------------------------------------------------------
> > >> >> >> >> >> >>>> To unsubscribe, e-mail:
> > >> user-unsubscribe@struts.apache.org
> > >> >> >> >> >> >>>> For additional commands, e-mail:
> > >> >> user-help@struts.apache.org
> > >> >> >> >> >> >>>>
> > >> >> >> >> >> >>>>
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>>
> > >> >> >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> >> >> >> >>> To unsubscribe, e-mail:
> > >> user-unsubscribe@struts.apache.org
> > >> >> >> >> >> >>> For additional commands, e-mail:
> > >> user-help@struts.apache.org
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >> --
> > >> >> >> >> >> >> View this message in context:
> > >> >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >>
> > >> >> >>
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> > >> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> > >> >> Nabble.com.
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> >> >> >> >> To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > >> >> >> >> >> >> For additional commands, e-mail:
> > >> user-help@struts.apache.org
> > >> >> >> >> >> >>
> > >> >> >> >> >> >>
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> >> >> >> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > >> >> >> >> >> > For additional commands, e-mail:
> > >> user-help@struts.apache.org
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >> >> >
> > >> >> >> >> >>
> > >> >> >> >> >> --
> > >> >> >> >> >> View this message in context:
> > >> >> >> >> >>
> > >> >> >> >>
> > >> >> >>
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> > >> >> >> >> >> Sent from the Struts - User mailing list archive at
> > >> Nabble.com.
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >>
> > >> ---------------------------------------------------------------------
> > >> >> >> >> >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > >> >> >> >> >> For additional commands, e-mail:
> > user-help@struts.apache.org
> > >> >> >> >> >>
> > >> >> >> >> >>
> > >> >> >> >> >
> > >> >> >> >> >
> > >> >> >> >>
> > >> >> >> >> --
> > >> >> >> >> View this message in context:
> > >> >> >> >>
> > >> >> >>
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> > >> >> >> >> Sent from the Struts - User mailing list archive at
> Nabble.com.
> > >> >> >> >>
> > >> >> >> >>
> > >> >> >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> > >> >> >> >>
> > >> >> >> >>
> > >> >> >> >
> > >> >> >> >
> > >> >> >>
> > >> >> >> --
> > >> >> >> View this message in context:
> > >> >> >>
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> > >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> > >> >> >>
> > >> >> >>
> > >> >> >>
> > >> ---------------------------------------------------------------------
> > >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> > >> >> >>
> > >> >> >>
> > >> >> >
> > >> >> >
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> > >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> > >> >>
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> >> For additional commands, e-mail: user-help@struts.apache.org
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >> --
> > >> View this message in context:
> > >>
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
> > >> Sent from the Struts - User mailing list archive at Nabble.com.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> For additional commands, e-mail: user-help@struts.apache.org
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
>
>


-- 
Regards
Kushan Jayathilake

[ANN]VTD-XML 2.10

Posted by Jimmy Zhang <cr...@comcast.net>.
VTD-XML 2.10 is now released. It can be downloaded at
https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/.
This release includes a number of new features and enhancement.

* The core API of VTD-XML has been expanded. Users can now perform
cut/paste/insert on an empty element.
* This release also adds the support of deeper location cache support for
parsing and indexing. This feature is useful for application performance
tuning for
processing various XML documents.
* The java version also added support for processing zip and gzip files.
Direct processing of httpURL based XML is enhanced.
* Extended Java version now support Iso-8859-10~16 encoding.
* A full featured C++ port is released.
* C version of VTD-XML now make use of thread local storage to achieve
thread safety for multi-threaded application.
* There are also a number of bugs fixed. Special thanks to Jozef Aerts, John
Sillers, Chris Tornau and a number of other users for input and suggestions


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: double select tag

Posted by "Kerry, Michael P." <mi...@harvard.edu>.
Hi,

If you're using struts2, have you tried out the JQuery plugin:

 http://code.google.com/p/struts2-jquery/
 showcase: http://www.weinfreund.de/struts2-jquery-showcase/index.action )? 

It has support for double select, among many others. So far so good for me - although perhaps there are issues that others have experienced. I would love to hear others weigh in on it.

Michael

-----Original Message-----
From: Jerson John [mailto:jerson@cprvision.com] 
Sent: Wednesday, February 23, 2011 12:09 AM
To: 'Struts Users Mailing List'
Subject: double select tag 

Hi,
  Can some one help me on double select tag with Hibernate...I am having two classes AssetCat,AssetSubCat and My first list should be assetcat list and according to the Assetcat selection I need to populate the second list which is assetsubcat list....Please advice me on this...I try to google it but Only could find hardcoded string array stuff...Please advice me on this..

Thanks in advance

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson


-----Original Message-----
From: Brian Thompson [mailto:elephantium@gmail.com] 
Sent: Wednesday, February 23, 2011 12:49 PM
To: Struts Users Mailing List
Cc: @rju
Subject: Re: sending the report directly to the printer

In 'UserWiseSaledPayinSlipReport.jsp' ...

Replace <head> with:

  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'UserWiseSalesPayinSlipReport.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript">
        window.onload = function() {
            //I'm using the simple window.onload here, but you might want to
use a jQuery ready() call or an addLoadEvent approach instead
            window.print();
        }
    </script>

  </head>



On Tue, Feb 22, 2011 at 9:55 PM, @rju <na...@gmail.com> wrote:

>
>
> i am sending files UserWiseSalesPayInSlipReportRequest.java,
> UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
> UserWiseSalesPayinSlipReport.jsp, code in struts.xml files
>
>
> payInSlip in  UserWiseSalesReport.jsp button will result
> UserWiseSalesPayinSlipReport.jsp.
> in that netAmount and the total textfield will be there. after matching of
> these two values will enable the ok button in
> UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
> "UserWiseSalesPayInSlipReport". now i need print out unlike a report coming
> in the output
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
> UserWiseSalesReportPOJO.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
> UserWiseSalesPayInSlipReportRequest.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
> UserWiseSalesPayInSlipReportAction.java
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
> UserWiseSalesPayinSlipReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
> UserWiseSalesReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
> UserWiseSalesReport.js
>
>
> In these files for your convenience i have placed the sentence "check here
> Mr.Brian Thompson-5" to make your search easy..
>
>
> please help me sir.....
>
>
>
>
> Brian Thompson-5 wrote:
> >
> > Could you post your code for your report?
> >
> > -Brian
> >
> >
> >
> > On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> sir
> >>  u said "Can't you just put it in your jsp for the report action?"
> >> please elaborate this sir. i am not getting your point.
> >> please sir
> >>
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Can't you just put it in your jsp for the report action?
> >> >
> >> > -Brian
> >> >
> >> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> here urlx is nothing but an action
> >> >> in that action i have a code as follows
> >> >>  <action
> >> >>                name="myaction"
> >> >>                method="getItemsNotInPackageReport"
> >> >>
> >> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
> >> >>
> >> >>                <result name="myaction" type="jasper">
> >> >>            /jasper/sales/ItemsNotInPackageReport.jasper
> >> >>            itemNameList
> >> >>            PDF
> >> >>        </result>
> >> >>        </action>
> >> >>
> >> >> so now what to do? how should i include that window.print()..
> >> >> please tell me sir
> >> >>
> >> >>
> >> >> Brian Thompson-5 wrote:
> >> >> >
> >> >> > Try putting the window.print() in the code for the page at urlx.
> >> >> >
> >> >> > -Brian
> >> >> >
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >> exactly i did
> >> >> >> but the problem here is.. see my code
> >> >> >>
> >> >> >> var urlx="myaction.action";
> >> >> >> var x= window.open(urlx);
> >> >> >> x.window.print();
> >> >> >>
> >> >> >> here it is invoking printer
> >> >> >> but empty page is printing because the action is taking time to
> >> load.
> >> >> >> thats y am getting empty page so any alternative?????
> >> >> >>
> >> >> >>
> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >
> >> >> >> > Then no, there's no way to do this.
> >> >> >> >
> >> >> >> > What you *can* do is:
> >> >> >> >
> >> >> >> > User clicks HTML button --> Struts action/Jasper report displays
> >> -->
> >> >> >> some
> >> >> >> > javascript on the report calls window.print(); --> user clicks
> >> "OK"
> >> >> on
> >> >> >> the
> >> >> >> > Print dialog.
> >> >> >> >
> >> >> >> > -Brian
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
> >> <nagarjunabattula@gmail.com
> >> >
> >> >> >> wrote:
> >> >> >> >
> >> >> >> >>
> >> >> >> >> yes user is clicking html/jsp button only
> >> >> >> >>
> >> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >> >
> >> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?
> >>  Or
> >> >> >> the
> >> >> >> >> > browser's print dialog box?
> >> >> >> >> >
> >> >> >> >> > At the very least, the user will see the print
> >> dialog...there's
> >> >> no
> >> >> >> way
> >> >> >> >> > around that for a web page (which, ultimately, is what Struts
> >> is
> >> >> >> >> sending
> >> >> >> >> > to
> >> >> >> >> > the user).
> >> >> >> >> >
> >> >> >> >> > -Brian
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
> >> >> <na...@gmail.com>
> >> >> >> >> wrote:
> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> no sir.
> >> >> >> >> >> no. user interaction means he will press ok button.
> >> >> >> >> >> there "no user interaction" means after clicking "ok", some
> >> guys
> >> >> >> >> >> suggested
> >> >> >> >> >> me that use onLoad () then write one listener for print. so
> >> here
> >> >> no
> >> >> >> >> user
> >> >> >> >> >> interaction means after pressing ok button.
> >> >> >> >> >>
> >> >> >> >> >> user will interact only by pressing ok button. after that ok
> >> >> button
> >> >> >> >> will
> >> >> >> >> >> call the struts action.
> >> >> >> >> >> so here now without any user interaction i need the print
> out
> >> >> after
> >> >> >> >> >> calling
> >> >> >> >> >> action unlike a report pdf.
> >> >> >> >> >> hope u got my point
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >
> >> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if
> it
> >> >> was
> >> >> >> >> >> > possible to print from a website with *no* user
> interaction
> >> >> >> without
> >> >> >> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >> >> >> >
> >> >> >> >> >> > Dave
> >> >> >> >> >> >
> >> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> >> >> >> <nagarjunabattula@gmail.com
> >> >> >> >
> >> >> >> >> >> wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> sir please help me
> >> >> >> >> >> >> i ve already told my requirement as follows
> >> >> >> >> >> >> am using struts2-jasper plugin am calling my action
> >> through
> >> >> >> jquery.
> >> >> >> >> >> >> nw i need to print the report directly from printer when
> i
> >> ve
> >> >> >> >> pressed
> >> >> >> >> >> ok
> >> >> >> >> >> >> button.
> >> >> >> >> >> >> ok button will call the action.
> >> >> >> >> >> >> please help me ragarding this.Its very urgent for me and
> >> it
> >> >> is
> >> >> >> the
> >> >> >> >> >> main
> >> >> >> >> >> >> requirement for this project...
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> >> >> >> nagarjunabattula@gmail.com>
> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >> >> >> >>>> --
> >> >> >> >> >> >>>> View this message in context:
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> >> >> >> Nabble.com.
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>>> For additional commands, e-mail:
> >> >> user-help@struts.apache.org
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>
> >> >> >> >> >> >> --
> >> >> >> >> >> >> View this message in context:
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> >> Nabble.com.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> > For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> >> For additional commands, e-mail:
> user-help@struts.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>




Re: Session for User Class

Posted by Dave Newton <da...@gmail.com>.
Put it in the session.

Dave

On Wednesday, February 23, 2011, Jerson John <je...@cprvision.com> wrote:
> U mean u use the sessionaware interface right....I am also following the same way but my scope it seems limited to Actioncontext which means only available in one actionclass and if I want to have my session user object available to all the action class for that particular session how can I achieve that....
>
> Many Thanks and regards
>
> Many Thanks and Regards,
>
> Jerson
>
>
> -----Original Message-----
> From: Brian Thompson [mailto:elephantium@gmail.com]
> Sent: Wednesday, February 23, 2011 3:33 PM
> To: Struts Users Mailing List
> Cc: Jerson John
> Subject: Re: Session for User Class
>
> Normally I use Spring Security for handling authentication.  However, that's
> a fair bit of trouble to configure if your needs differ from the default
> config.
>
> For a "roll your own" approach, I'd put the user object into the session
> context.
>
> -Brian
>
>
> On Tue, Feb 22, 2011 at 11:43 PM, Jerson John <je...@cprvision.com> wrote:
>
>> Hi,
>>   Can anyone suggest me a best practice for me to save the user object once
>> user logined into my portal application...It seems that I am saving it in
>> the actioncontext but not accessable to the other action classes...Pls help
>> me
>>
>> Many Thanks and Regards,
>>
>> Jerson
>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Session for User Class

Posted by Jerson John <je...@cprvision.com>.
U mean u use the sessionaware interface right....I am also following the same way but my scope it seems limited to Actioncontext which means only available in one actionclass and if I want to have my session user object available to all the action class for that particular session how can I achieve that....

Many Thanks and regards

Many Thanks and Regards,

Jerson


-----Original Message-----
From: Brian Thompson [mailto:elephantium@gmail.com] 
Sent: Wednesday, February 23, 2011 3:33 PM
To: Struts Users Mailing List
Cc: Jerson John
Subject: Re: Session for User Class

Normally I use Spring Security for handling authentication.  However, that's
a fair bit of trouble to configure if your needs differ from the default
config.

For a "roll your own" approach, I'd put the user object into the session
context.

-Brian


On Tue, Feb 22, 2011 at 11:43 PM, Jerson John <je...@cprvision.com> wrote:

> Hi,
>   Can anyone suggest me a best practice for me to save the user object once
> user logined into my portal application...It seems that I am saving it in
> the actioncontext but not accessable to the other action classes...Pls help
> me
>
> Many Thanks and Regards,
>
> Jerson
>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Session for User Class

Posted by Brian Thompson <el...@gmail.com>.
Normally I use Spring Security for handling authentication.  However, that's
a fair bit of trouble to configure if your needs differ from the default
config.

For a "roll your own" approach, I'd put the user object into the session
context.

-Brian


On Tue, Feb 22, 2011 at 11:43 PM, Jerson John <je...@cprvision.com> wrote:

> Hi,
>   Can anyone suggest me a best practice for me to save the user object once
> user logined into my portal application...It seems that I am saving it in
> the actioncontext but not accessable to the other action classes...Pls help
> me
>
> Many Thanks and Regards,
>
> Jerson
>
>
>
>

Session for User Class

Posted by Jerson John <je...@cprvision.com>.
Hi,
   Can anyone suggest me a best practice for me to save the user object once user logined into my portal application...It seems that I am saving it in the actioncontext but not accessable to the other action classes...Pls help me

Many Thanks and Regards,

Jerson




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


double select tag

Posted by Jerson John <je...@cprvision.com>.
Hi,
  Can some one help me on double select tag with Hibernate...I am having two classes AssetCat,AssetSubCat and My first list should be assetcat list and according to the Assetcat selection I need to populate the second list which is assetsubcat list....Please advice me on this...I try to google it but Only could find hardcoded string array stuff...Please advice me on this..

Thanks in advance

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson


-----Original Message-----
From: Brian Thompson [mailto:elephantium@gmail.com] 
Sent: Wednesday, February 23, 2011 12:49 PM
To: Struts Users Mailing List
Cc: @rju
Subject: Re: sending the report directly to the printer

In 'UserWiseSaledPayinSlipReport.jsp' ...

Replace <head> with:

  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'UserWiseSalesPayinSlipReport.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript">
        window.onload = function() {
            //I'm using the simple window.onload here, but you might want to
use a jQuery ready() call or an addLoadEvent approach instead
            window.print();
        }
    </script>

  </head>



On Tue, Feb 22, 2011 at 9:55 PM, @rju <na...@gmail.com> wrote:

>
>
> i am sending files UserWiseSalesPayInSlipReportRequest.java,
> UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
> UserWiseSalesPayinSlipReport.jsp, code in struts.xml files
>
>
> payInSlip in  UserWiseSalesReport.jsp button will result
> UserWiseSalesPayinSlipReport.jsp.
> in that netAmount and the total textfield will be there. after matching of
> these two values will enable the ok button in
> UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
> "UserWiseSalesPayInSlipReport". now i need print out unlike a report coming
> in the output
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
> UserWiseSalesReportPOJO.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
> UserWiseSalesPayInSlipReportRequest.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
> UserWiseSalesPayInSlipReportAction.java
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
> UserWiseSalesPayinSlipReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
> UserWiseSalesReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
> UserWiseSalesReport.js
>
>
> In these files for your convenience i have placed the sentence "check here
> Mr.Brian Thompson-5" to make your search easy..
>
>
> please help me sir.....
>
>
>
>
> Brian Thompson-5 wrote:
> >
> > Could you post your code for your report?
> >
> > -Brian
> >
> >
> >
> > On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> sir
> >>  u said "Can't you just put it in your jsp for the report action?"
> >> please elaborate this sir. i am not getting your point.
> >> please sir
> >>
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Can't you just put it in your jsp for the report action?
> >> >
> >> > -Brian
> >> >
> >> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> here urlx is nothing but an action
> >> >> in that action i have a code as follows
> >> >>  <action
> >> >>                name="myaction"
> >> >>                method="getItemsNotInPackageReport"
> >> >>
> >> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
> >> >>
> >> >>                <result name="myaction" type="jasper">
> >> >>            /jasper/sales/ItemsNotInPackageReport.jasper
> >> >>            itemNameList
> >> >>            PDF
> >> >>        </result>
> >> >>        </action>
> >> >>
> >> >> so now what to do? how should i include that window.print()..
> >> >> please tell me sir
> >> >>
> >> >>
> >> >> Brian Thompson-5 wrote:
> >> >> >
> >> >> > Try putting the window.print() in the code for the page at urlx.
> >> >> >
> >> >> > -Brian
> >> >> >
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >> exactly i did
> >> >> >> but the problem here is.. see my code
> >> >> >>
> >> >> >> var urlx="myaction.action";
> >> >> >> var x= window.open(urlx);
> >> >> >> x.window.print();
> >> >> >>
> >> >> >> here it is invoking printer
> >> >> >> but empty page is printing because the action is taking time to
> >> load.
> >> >> >> thats y am getting empty page so any alternative?????
> >> >> >>
> >> >> >>
> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >
> >> >> >> > Then no, there's no way to do this.
> >> >> >> >
> >> >> >> > What you *can* do is:
> >> >> >> >
> >> >> >> > User clicks HTML button --> Struts action/Jasper report displays
> >> -->
> >> >> >> some
> >> >> >> > javascript on the report calls window.print(); --> user clicks
> >> "OK"
> >> >> on
> >> >> >> the
> >> >> >> > Print dialog.
> >> >> >> >
> >> >> >> > -Brian
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
> >> <nagarjunabattula@gmail.com
> >> >
> >> >> >> wrote:
> >> >> >> >
> >> >> >> >>
> >> >> >> >> yes user is clicking html/jsp button only
> >> >> >> >>
> >> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >> >
> >> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?
> >>  Or
> >> >> >> the
> >> >> >> >> > browser's print dialog box?
> >> >> >> >> >
> >> >> >> >> > At the very least, the user will see the print
> >> dialog...there's
> >> >> no
> >> >> >> way
> >> >> >> >> > around that for a web page (which, ultimately, is what Struts
> >> is
> >> >> >> >> sending
> >> >> >> >> > to
> >> >> >> >> > the user).
> >> >> >> >> >
> >> >> >> >> > -Brian
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
> >> >> <na...@gmail.com>
> >> >> >> >> wrote:
> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> no sir.
> >> >> >> >> >> no. user interaction means he will press ok button.
> >> >> >> >> >> there "no user interaction" means after clicking "ok", some
> >> guys
> >> >> >> >> >> suggested
> >> >> >> >> >> me that use onLoad () then write one listener for print. so
> >> here
> >> >> no
> >> >> >> >> user
> >> >> >> >> >> interaction means after pressing ok button.
> >> >> >> >> >>
> >> >> >> >> >> user will interact only by pressing ok button. after that ok
> >> >> button
> >> >> >> >> will
> >> >> >> >> >> call the struts action.
> >> >> >> >> >> so here now without any user interaction i need the print
> out
> >> >> after
> >> >> >> >> >> calling
> >> >> >> >> >> action unlike a report pdf.
> >> >> >> >> >> hope u got my point
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >
> >> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if
> it
> >> >> was
> >> >> >> >> >> > possible to print from a website with *no* user
> interaction
> >> >> >> without
> >> >> >> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >> >> >> >
> >> >> >> >> >> > Dave
> >> >> >> >> >> >
> >> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> >> >> >> <nagarjunabattula@gmail.com
> >> >> >> >
> >> >> >> >> >> wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> sir please help me
> >> >> >> >> >> >> i ve already told my requirement as follows
> >> >> >> >> >> >> am using struts2-jasper plugin am calling my action
> >> through
> >> >> >> jquery.
> >> >> >> >> >> >> nw i need to print the report directly from printer when
> i
> >> ve
> >> >> >> >> pressed
> >> >> >> >> >> ok
> >> >> >> >> >> >> button.
> >> >> >> >> >> >> ok button will call the action.
> >> >> >> >> >> >> please help me ragarding this.Its very urgent for me and
> >> it
> >> >> is
> >> >> >> the
> >> >> >> >> >> main
> >> >> >> >> >> >> requirement for this project...
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> >> >> >> nagarjunabattula@gmail.com>
> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >> >> >> >>>> --
> >> >> >> >> >> >>>> View this message in context:
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> >> >> >> Nabble.com.
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>>> For additional commands, e-mail:
> >> >> user-help@struts.apache.org
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>
> >> >> >> >> >> >> --
> >> >> >> >> >> >> View this message in context:
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> >> Nabble.com.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> > For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> >> For additional commands, e-mail:
> user-help@struts.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
In 'UserWiseSaledPayinSlipReport.jsp' ...

Replace <head> with:

  <head>
    <base href="<%=basePath%>">

    <title>My JSP 'UserWiseSalesPayinSlipReport.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <script type="text/javascript">
        window.onload = function() {
            //I'm using the simple window.onload here, but you might want to
use a jQuery ready() call or an addLoadEvent approach instead
            window.print();
        }
    </script>

  </head>



On Tue, Feb 22, 2011 at 9:55 PM, @rju <na...@gmail.com> wrote:

>
>
> i am sending files UserWiseSalesPayInSlipReportRequest.java,
> UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
> UserWiseSalesPayinSlipReport.jsp, code in struts.xml files
>
>
> payInSlip in  UserWiseSalesReport.jsp button will result
> UserWiseSalesPayinSlipReport.jsp.
> in that netAmount and the total textfield will be there. after matching of
> these two values will enable the ok button in
> UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
> "UserWiseSalesPayInSlipReport". now i need print out unlike a report coming
> in the output
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
> UserWiseSalesReportPOJO.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
> UserWiseSalesPayInSlipReportRequest.java
>
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
> UserWiseSalesPayInSlipReportAction.java
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
> UserWiseSalesPayinSlipReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
> UserWiseSalesReport.jsp
>
>
> http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
> UserWiseSalesReport.js
>
>
> In these files for your convenience i have placed the sentence "check here
> Mr.Brian Thompson-5" to make your search easy..
>
>
> please help me sir.....
>
>
>
>
> Brian Thompson-5 wrote:
> >
> > Could you post your code for your report?
> >
> > -Brian
> >
> >
> >
> > On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> sir
> >>  u said "Can't you just put it in your jsp for the report action?"
> >> please elaborate this sir. i am not getting your point.
> >> please sir
> >>
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Can't you just put it in your jsp for the report action?
> >> >
> >> > -Brian
> >> >
> >> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> here urlx is nothing but an action
> >> >> in that action i have a code as follows
> >> >>  <action
> >> >>                name="myaction"
> >> >>                method="getItemsNotInPackageReport"
> >> >>
> >> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
> >> >>
> >> >>                <result name="myaction" type="jasper">
> >> >>            /jasper/sales/ItemsNotInPackageReport.jasper
> >> >>            itemNameList
> >> >>            PDF
> >> >>        </result>
> >> >>        </action>
> >> >>
> >> >> so now what to do? how should i include that window.print()..
> >> >> please tell me sir
> >> >>
> >> >>
> >> >> Brian Thompson-5 wrote:
> >> >> >
> >> >> > Try putting the window.print() in the code for the page at urlx.
> >> >> >
> >> >> > -Brian
> >> >> >
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >> exactly i did
> >> >> >> but the problem here is.. see my code
> >> >> >>
> >> >> >> var urlx="myaction.action";
> >> >> >> var x= window.open(urlx);
> >> >> >> x.window.print();
> >> >> >>
> >> >> >> here it is invoking printer
> >> >> >> but empty page is printing because the action is taking time to
> >> load.
> >> >> >> thats y am getting empty page so any alternative?????
> >> >> >>
> >> >> >>
> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >
> >> >> >> > Then no, there's no way to do this.
> >> >> >> >
> >> >> >> > What you *can* do is:
> >> >> >> >
> >> >> >> > User clicks HTML button --> Struts action/Jasper report displays
> >> -->
> >> >> >> some
> >> >> >> > javascript on the report calls window.print(); --> user clicks
> >> "OK"
> >> >> on
> >> >> >> the
> >> >> >> > Print dialog.
> >> >> >> >
> >> >> >> > -Brian
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
> >> <nagarjunabattula@gmail.com
> >> >
> >> >> >> wrote:
> >> >> >> >
> >> >> >> >>
> >> >> >> >> yes user is clicking html/jsp button only
> >> >> >> >>
> >> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >> >
> >> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?
> >>  Or
> >> >> >> the
> >> >> >> >> > browser's print dialog box?
> >> >> >> >> >
> >> >> >> >> > At the very least, the user will see the print
> >> dialog...there's
> >> >> no
> >> >> >> way
> >> >> >> >> > around that for a web page (which, ultimately, is what Struts
> >> is
> >> >> >> >> sending
> >> >> >> >> > to
> >> >> >> >> > the user).
> >> >> >> >> >
> >> >> >> >> > -Brian
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
> >> >> <na...@gmail.com>
> >> >> >> >> wrote:
> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> no sir.
> >> >> >> >> >> no. user interaction means he will press ok button.
> >> >> >> >> >> there "no user interaction" means after clicking "ok", some
> >> guys
> >> >> >> >> >> suggested
> >> >> >> >> >> me that use onLoad () then write one listener for print. so
> >> here
> >> >> no
> >> >> >> >> user
> >> >> >> >> >> interaction means after pressing ok button.
> >> >> >> >> >>
> >> >> >> >> >> user will interact only by pressing ok button. after that ok
> >> >> button
> >> >> >> >> will
> >> >> >> >> >> call the struts action.
> >> >> >> >> >> so here now without any user interaction i need the print
> out
> >> >> after
> >> >> >> >> >> calling
> >> >> >> >> >> action unlike a report pdf.
> >> >> >> >> >> hope u got my point
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >
> >> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if
> it
> >> >> was
> >> >> >> >> >> > possible to print from a website with *no* user
> interaction
> >> >> >> without
> >> >> >> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >> >> >> >
> >> >> >> >> >> > Dave
> >> >> >> >> >> >
> >> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> >> >> >> <nagarjunabattula@gmail.com
> >> >> >> >
> >> >> >> >> >> wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> sir please help me
> >> >> >> >> >> >> i ve already told my requirement as follows
> >> >> >> >> >> >> am using struts2-jasper plugin am calling my action
> >> through
> >> >> >> jquery.
> >> >> >> >> >> >> nw i need to print the report directly from printer when
> i
> >> ve
> >> >> >> >> pressed
> >> >> >> >> >> ok
> >> >> >> >> >> >> button.
> >> >> >> >> >> >> ok button will call the action.
> >> >> >> >> >> >> please help me ragarding this.Its very urgent for me and
> >> it
> >> >> is
> >> >> >> the
> >> >> >> >> >> main
> >> >> >> >> >> >> requirement for this project...
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> >> >> >> nagarjunabattula@gmail.com>
> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >> >> >> >>>> --
> >> >> >> >> >> >>>> View this message in context:
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> >> >> >> Nabble.com.
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>>> For additional commands, e-mail:
> >> >> user-help@struts.apache.org
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >>> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >>> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>
> >> >> >> >> >> >> --
> >> >> >> >> >> >> View this message in context:
> >> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> >> Nabble.com.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> >> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >> > For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> >> For additional commands, e-mail:
> user-help@struts.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.

i am sending files UserWiseSalesPayInSlipReportRequest.java,
UserWiseSalesPayInSlipReportAction.java, UserWiseSalesReport.jsp ,
UserWiseSalesPayinSlipReport.jsp, code in struts.xml files


payInSlip in  UserWiseSalesReport.jsp button will result
UserWiseSalesPayinSlipReport.jsp.
in that netAmount and the total textfield will be there. after matching of
these two values will enable the ok button in
UserWiseSalesPayinSlipReport.jsp. This ok button will call the action
"UserWiseSalesPayInSlipReport". now i need print out unlike a report coming
in the output


http://old.nabble.com/file/p30991984/UserWiseSalesReportPOJO.java
UserWiseSalesReportPOJO.java 


http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportRequest.java
UserWiseSalesPayInSlipReportRequest.java 


http://old.nabble.com/file/p30991984/UserWiseSalesPayInSlipReportAction.java
UserWiseSalesPayInSlipReportAction.java 


http://old.nabble.com/file/p30991984/UserWiseSalesPayinSlipReport.jsp
UserWiseSalesPayinSlipReport.jsp 


http://old.nabble.com/file/p30991984/UserWiseSalesReport.jsp
UserWiseSalesReport.jsp 


http://old.nabble.com/file/p30991984/UserWiseSalesReport.js
UserWiseSalesReport.js 


In these files for your convenience i have placed the sentence "check here
Mr.Brian Thompson-5" to make your search easy..   


please help me sir.....




Brian Thompson-5 wrote:
> 
> Could you post your code for your report?
> 
> -Brian
> 
> 
> 
> On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com> wrote:
> 
>>
>> sir
>>  u said "Can't you just put it in your jsp for the report action?"
>> please elaborate this sir. i am not getting your point.
>> please sir
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Can't you just put it in your jsp for the report action?
>> >
>> > -Brian
>> >
>> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> here urlx is nothing but an action
>> >> in that action i have a code as follows
>> >>  <action
>> >>                name="myaction"
>> >>                method="getItemsNotInPackageReport"
>> >>
>> >>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>> >>
>> >>                <result name="myaction" type="jasper">
>> >>            /jasper/sales/ItemsNotInPackageReport.jasper
>> >>            itemNameList
>> >>            PDF
>> >>        </result>
>> >>        </action>
>> >>
>> >> so now what to do? how should i include that window.print()..
>> >> please tell me sir
>> >>
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Try putting the window.print() in the code for the page at urlx.
>> >> >
>> >> > -Brian
>> >> >
>> >> >
>> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> exactly i did
>> >> >> but the problem here is.. see my code
>> >> >>
>> >> >> var urlx="myaction.action";
>> >> >> var x= window.open(urlx);
>> >> >> x.window.print();
>> >> >>
>> >> >> here it is invoking printer
>> >> >> but empty page is printing because the action is taking time to
>> load.
>> >> >> thats y am getting empty page so any alternative?????
>> >> >>
>> >> >>
>> >> >> Brian Thompson-5 wrote:
>> >> >> >
>> >> >> > Then no, there's no way to do this.
>> >> >> >
>> >> >> > What you *can* do is:
>> >> >> >
>> >> >> > User clicks HTML button --> Struts action/Jasper report displays
>> -->
>> >> >> some
>> >> >> > javascript on the report calls window.print(); --> user clicks
>> "OK"
>> >> on
>> >> >> the
>> >> >> > Print dialog.
>> >> >> >
>> >> >> > -Brian
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju
>> <nagarjunabattula@gmail.com
>> >
>> >> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> yes user is clicking html/jsp button only
>> >> >> >>
>> >> >> >> Brian Thompson-5 wrote:
>> >> >> >> >
>> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?
>>  Or
>> >> >> the
>> >> >> >> > browser's print dialog box?
>> >> >> >> >
>> >> >> >> > At the very least, the user will see the print
>> dialog...there's
>> >> no
>> >> >> way
>> >> >> >> > around that for a web page (which, ultimately, is what Struts
>> is
>> >> >> >> sending
>> >> >> >> > to
>> >> >> >> > the user).
>> >> >> >> >
>> >> >> >> > -Brian
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
>> >> <na...@gmail.com>
>> >> >> >> wrote:
>> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> no sir.
>> >> >> >> >> no. user interaction means he will press ok button.
>> >> >> >> >> there "no user interaction" means after clicking "ok", some
>> guys
>> >> >> >> >> suggested
>> >> >> >> >> me that use onLoad () then write one listener for print. so
>> here
>> >> no
>> >> >> >> user
>> >> >> >> >> interaction means after pressing ok button.
>> >> >> >> >>
>> >> >> >> >> user will interact only by pressing ok button. after that ok
>> >> button
>> >> >> >> will
>> >> >> >> >> call the struts action.
>> >> >> >> >> so here now without any user interaction i need the print out
>> >> after
>> >> >> >> >> calling
>> >> >> >> >> action unlike a report pdf.
>> >> >> >> >> hope u got my point
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >> >
>> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if it
>> >> was
>> >> >> >> >> > possible to print from a website with *no* user interaction
>> >> >> without
>> >> >> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >> >> >
>> >> >> >> >> > Dave
>> >> >> >> >> >
>> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> >> >> <nagarjunabattula@gmail.com
>> >> >> >
>> >> >> >> >> wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> sir please help me
>> >> >> >> >> >> i ve already told my requirement as follows
>> >> >> >> >> >> am using struts2-jasper plugin am calling my action
>> through
>> >> >> jquery.
>> >> >> >> >> >> nw i need to print the report directly from printer when i
>> ve
>> >> >> >> pressed
>> >> >> >> >> ok
>> >> >> >> >> >> button.
>> >> >> >> >> >> ok button will call the action.
>> >> >> >> >> >> please help me ragarding this.Its very urgent for me and
>> it
>> >> is
>> >> >> the
>> >> >> >> >> main
>> >> >> >> >> >> requirement for this project...
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >> >>>
>> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >> >> >>>
>> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> >> >> nagarjunabattula@gmail.com>
>> >> >> >> >> >>> wrote:
>> >> >> >> >> >>>>
>> >> >> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >> >> >>>> --
>> >> >> >> >> >>>> View this message in context:
>> >> >> >> >> >>>>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
>> >> >> Nabble.com.
>> >> >> >> >> >>>>
>> >> >> >> >> >>>>
>> >> >> >> >> >>>>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> >>>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> >> >> >> >> >>>> For additional commands, e-mail:
>> >> user-help@struts.apache.org
>> >> >> >> >> >>>>
>> >> >> >> >> >>>>
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >> >>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> >> >> >> >> >>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >> View this message in context:
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> >> >> Sent from the Struts - User mailing list archive at
>> >> Nabble.com.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> >> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> > For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> >> >> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30991984.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
On Tue, Feb 22, 2011 at 10:31 AM, Dave Newton <da...@gmail.com> wrote:

> On Tue, Feb 22, 2011 at 11:29 AM, Brian Thompson wrote:
> > Could you post your code for your report?
>
> Why? This isn't an issue with the report itself, is it?
>
> Dave
>


I hope not -- I have no experience with Jasper reports.  OTOH, he's confused
when I say "put it in the jsp", so seeing his code might help me explain it
better (or, if his action doesn't use jsps at all, it'll let me know that
"it just doesn't work that way").

-Brian

Re: sending the report directly to the printer

Posted by Dave Newton <da...@gmail.com>.
On Tue, Feb 22, 2011 at 11:29 AM, Brian Thompson wrote:
> Could you post your code for your report?

Why? This isn't an issue with the report itself, is it?

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
Could you post your code for your report?

-Brian



On Tue, Feb 22, 2011 at 5:15 AM, @rju <na...@gmail.com> wrote:

>
> sir
>  u said "Can't you just put it in your jsp for the report action?"
> please elaborate this sir. i am not getting your point.
> please sir
>
>
> Brian Thompson-5 wrote:
> >
> > Can't you just put it in your jsp for the report action?
> >
> > -Brian
> >
> > On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> here urlx is nothing but an action
> >> in that action i have a code as follows
> >>  <action
> >>                name="myaction"
> >>                method="getItemsNotInPackageReport"
> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
> >>
> >>                <result name="myaction" type="jasper">
> >>            /jasper/sales/ItemsNotInPackageReport.jasper
> >>            itemNameList
> >>            PDF
> >>        </result>
> >>        </action>
> >>
> >> so now what to do? how should i include that window.print()..
> >> please tell me sir
> >>
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Try putting the window.print() in the code for the page at urlx.
> >> >
> >> > -Brian
> >> >
> >> >
> >> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> exactly i did
> >> >> but the problem here is.. see my code
> >> >>
> >> >> var urlx="myaction.action";
> >> >> var x= window.open(urlx);
> >> >> x.window.print();
> >> >>
> >> >> here it is invoking printer
> >> >> but empty page is printing because the action is taking time to load.
> >> >> thats y am getting empty page so any alternative?????
> >> >>
> >> >>
> >> >> Brian Thompson-5 wrote:
> >> >> >
> >> >> > Then no, there's no way to do this.
> >> >> >
> >> >> > What you *can* do is:
> >> >> >
> >> >> > User clicks HTML button --> Struts action/Jasper report displays
> -->
> >> >> some
> >> >> > javascript on the report calls window.print(); --> user clicks "OK"
> >> on
> >> >> the
> >> >> > Print dialog.
> >> >> >
> >> >> > -Brian
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >> yes user is clicking html/jsp button only
> >> >> >>
> >> >> >> Brian Thompson-5 wrote:
> >> >> >> >
> >> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?
>  Or
> >> >> the
> >> >> >> > browser's print dialog box?
> >> >> >> >
> >> >> >> > At the very least, the user will see the print dialog...there's
> >> no
> >> >> way
> >> >> >> > around that for a web page (which, ultimately, is what Struts is
> >> >> >> sending
> >> >> >> > to
> >> >> >> > the user).
> >> >> >> >
> >> >> >> > -Brian
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
> >> <na...@gmail.com>
> >> >> >> wrote:
> >> >> >> >
> >> >> >> >>
> >> >> >> >> no sir.
> >> >> >> >> no. user interaction means he will press ok button.
> >> >> >> >> there "no user interaction" means after clicking "ok", some
> guys
> >> >> >> >> suggested
> >> >> >> >> me that use onLoad () then write one listener for print. so
> here
> >> no
> >> >> >> user
> >> >> >> >> interaction means after pressing ok button.
> >> >> >> >>
> >> >> >> >> user will interact only by pressing ok button. after that ok
> >> button
> >> >> >> will
> >> >> >> >> call the struts action.
> >> >> >> >> so here now without any user interaction i need the print out
> >> after
> >> >> >> >> calling
> >> >> >> >> action unlike a report pdf.
> >> >> >> >> hope u got my point
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >
> >> >> >> >> > I have no idea. Personally, I'd be a little surprised if it
> >> was
> >> >> >> >> > possible to print from a website with *no* user interaction
> >> >> without
> >> >> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >> >> >
> >> >> >> >> > Dave
> >> >> >> >> >
> >> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> >> >> <nagarjunabattula@gmail.com
> >> >> >
> >> >> >> >> wrote:
> >> >> >> >> >>
> >> >> >> >> >> sir please help me
> >> >> >> >> >> i ve already told my requirement as follows
> >> >> >> >> >> am using struts2-jasper plugin am calling my action through
> >> >> jquery.
> >> >> >> >> >> nw i need to print the report directly from printer when i
> ve
> >> >> >> pressed
> >> >> >> >> ok
> >> >> >> >> >> button.
> >> >> >> >> >> ok button will call the action.
> >> >> >> >> >> please help me ragarding this.Its very urgent for me and it
> >> is
> >> >> the
> >> >> >> >> main
> >> >> >> >> >> requirement for this project...
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >> >>>
> >> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >> >> >>>
> >> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> >> >> nagarjunabattula@gmail.com>
> >> >> >> >> >>> wrote:
> >> >> >> >> >>>>
> >> >> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >> >> >>>> --
> >> >> >> >> >>>> View this message in context:
> >> >> >> >> >>>>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> >> >> Nabble.com.
> >> >> >> >> >>>>
> >> >> >> >> >>>>
> >> >> >> >> >>>>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> >>>> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >> >> >> >> >>>> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> >> >> >> >>>>
> >> >> >> >> >>>>
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> >>> For additional commands, e-mail:
> user-help@struts.apache.org
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> View this message in context:
> >> >> >> >> >>
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> >> >> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> >> For additional commands, e-mail:
> user-help@struts.apache.org
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
sir
 u said "Can't you just put it in your jsp for the report action?"
please elaborate this sir. i am not getting your point.
please sir 


Brian Thompson-5 wrote:
> 
> Can't you just put it in your jsp for the report action?
> 
> -Brian
> 
> On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com> wrote:
> 
>>
>> here urlx is nothing but an action
>> in that action i have a code as follows
>>  <action
>>                name="myaction"
>>                method="getItemsNotInPackageReport"
>>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>>
>>                <result name="myaction" type="jasper">
>>            /jasper/sales/ItemsNotInPackageReport.jasper
>>            itemNameList
>>            PDF
>>        </result>
>>        </action>
>>
>> so now what to do? how should i include that window.print()..
>> please tell me sir
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Try putting the window.print() in the code for the page at urlx.
>> >
>> > -Brian
>> >
>> >
>> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> exactly i did
>> >> but the problem here is.. see my code
>> >>
>> >> var urlx="myaction.action";
>> >> var x= window.open(urlx);
>> >> x.window.print();
>> >>
>> >> here it is invoking printer
>> >> but empty page is printing because the action is taking time to load.
>> >> thats y am getting empty page so any alternative?????
>> >>
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Then no, there's no way to do this.
>> >> >
>> >> > What you *can* do is:
>> >> >
>> >> > User clicks HTML button --> Struts action/Jasper report displays -->
>> >> some
>> >> > javascript on the report calls window.print(); --> user clicks "OK"
>> on
>> >> the
>> >> > Print dialog.
>> >> >
>> >> > -Brian
>> >> >
>> >> >
>> >> >
>> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> yes user is clicking html/jsp button only
>> >> >>
>> >> >> Brian Thompson-5 wrote:
>> >> >> >
>> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or
>> >> the
>> >> >> > browser's print dialog box?
>> >> >> >
>> >> >> > At the very least, the user will see the print dialog...there's
>> no
>> >> way
>> >> >> > around that for a web page (which, ultimately, is what Struts is
>> >> >> sending
>> >> >> > to
>> >> >> > the user).
>> >> >> >
>> >> >> > -Brian
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
>> <na...@gmail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> no sir.
>> >> >> >> no. user interaction means he will press ok button.
>> >> >> >> there "no user interaction" means after clicking "ok", some guys
>> >> >> >> suggested
>> >> >> >> me that use onLoad () then write one listener for print. so here
>> no
>> >> >> user
>> >> >> >> interaction means after pressing ok button.
>> >> >> >>
>> >> >> >> user will interact only by pressing ok button. after that ok
>> button
>> >> >> will
>> >> >> >> call the struts action.
>> >> >> >> so here now without any user interaction i need the print out
>> after
>> >> >> >> calling
>> >> >> >> action unlike a report pdf.
>> >> >> >> hope u got my point
>> >> >> >>
>> >> >> >>
>> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >
>> >> >> >> > I have no idea. Personally, I'd be a little surprised if it
>> was
>> >> >> >> > possible to print from a website with *no* user interaction
>> >> without
>> >> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >> >
>> >> >> >> > Dave
>> >> >> >> >
>> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> >> <nagarjunabattula@gmail.com
>> >> >
>> >> >> >> wrote:
>> >> >> >> >>
>> >> >> >> >> sir please help me
>> >> >> >> >> i ve already told my requirement as follows
>> >> >> >> >> am using struts2-jasper plugin am calling my action through
>> >> jquery.
>> >> >> >> >> nw i need to print the report directly from printer when i ve
>> >> >> pressed
>> >> >> >> ok
>> >> >> >> >> button.
>> >> >> >> >> ok button will call the action.
>> >> >> >> >> please help me ragarding this.Its very urgent for me and it
>> is
>> >> the
>> >> >> >> main
>> >> >> >> >> requirement for this project...
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >>>
>> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >> >>>
>> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> >> nagarjunabattula@gmail.com>
>> >> >> >> >>> wrote:
>> >> >> >> >>>>
>> >> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >> >>>> --
>> >> >> >> >>>> View this message in context:
>> >> >> >> >>>>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >> >>>> Sent from the Struts - User mailing list archive at
>> >> Nabble.com.
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> >> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984858.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
actually according to my architecture in my company we have to call our
action through jquery.
but any how if it is working in another way i can manage

so your idea here is to put window.print() in jsp page right????
ok if i do so what will happen?
i am not getting your point


Brian Thompson-5 wrote:
> 
> Can't you just put it in your jsp for the report action?
> 
> -Brian
> 
> On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com> wrote:
> 
>>
>> here urlx is nothing but an action
>> in that action i have a code as follows
>>  <action
>>                name="myaction"
>>                method="getItemsNotInPackageReport"
>>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>>
>>                <result name="myaction" type="jasper">
>>            /jasper/sales/ItemsNotInPackageReport.jasper
>>            itemNameList
>>            PDF
>>        </result>
>>        </action>
>>
>> so now what to do? how should i include that window.print()..
>> please tell me sir
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Try putting the window.print() in the code for the page at urlx.
>> >
>> > -Brian
>> >
>> >
>> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> exactly i did
>> >> but the problem here is.. see my code
>> >>
>> >> var urlx="myaction.action";
>> >> var x= window.open(urlx);
>> >> x.window.print();
>> >>
>> >> here it is invoking printer
>> >> but empty page is printing because the action is taking time to load.
>> >> thats y am getting empty page so any alternative?????
>> >>
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Then no, there's no way to do this.
>> >> >
>> >> > What you *can* do is:
>> >> >
>> >> > User clicks HTML button --> Struts action/Jasper report displays -->
>> >> some
>> >> > javascript on the report calls window.print(); --> user clicks "OK"
>> on
>> >> the
>> >> > Print dialog.
>> >> >
>> >> > -Brian
>> >> >
>> >> >
>> >> >
>> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> yes user is clicking html/jsp button only
>> >> >>
>> >> >> Brian Thompson-5 wrote:
>> >> >> >
>> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or
>> >> the
>> >> >> > browser's print dialog box?
>> >> >> >
>> >> >> > At the very least, the user will see the print dialog...there's
>> no
>> >> way
>> >> >> > around that for a web page (which, ultimately, is what Struts is
>> >> >> sending
>> >> >> > to
>> >> >> > the user).
>> >> >> >
>> >> >> > -Brian
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
>> <na...@gmail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> no sir.
>> >> >> >> no. user interaction means he will press ok button.
>> >> >> >> there "no user interaction" means after clicking "ok", some guys
>> >> >> >> suggested
>> >> >> >> me that use onLoad () then write one listener for print. so here
>> no
>> >> >> user
>> >> >> >> interaction means after pressing ok button.
>> >> >> >>
>> >> >> >> user will interact only by pressing ok button. after that ok
>> button
>> >> >> will
>> >> >> >> call the struts action.
>> >> >> >> so here now without any user interaction i need the print out
>> after
>> >> >> >> calling
>> >> >> >> action unlike a report pdf.
>> >> >> >> hope u got my point
>> >> >> >>
>> >> >> >>
>> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >
>> >> >> >> > I have no idea. Personally, I'd be a little surprised if it
>> was
>> >> >> >> > possible to print from a website with *no* user interaction
>> >> without
>> >> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >> >
>> >> >> >> > Dave
>> >> >> >> >
>> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> >> <nagarjunabattula@gmail.com
>> >> >
>> >> >> >> wrote:
>> >> >> >> >>
>> >> >> >> >> sir please help me
>> >> >> >> >> i ve already told my requirement as follows
>> >> >> >> >> am using struts2-jasper plugin am calling my action through
>> >> jquery.
>> >> >> >> >> nw i need to print the report directly from printer when i ve
>> >> >> pressed
>> >> >> >> ok
>> >> >> >> >> button.
>> >> >> >> >> ok button will call the action.
>> >> >> >> >> please help me ragarding this.Its very urgent for me and it
>> is
>> >> the
>> >> >> >> main
>> >> >> >> >> requirement for this project...
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >>>
>> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >> >>>
>> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> >> nagarjunabattula@gmail.com>
>> >> >> >> >>> wrote:
>> >> >> >> >>>>
>> >> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >> >>>> --
>> >> >> >> >>>> View this message in context:
>> >> >> >> >>>>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >> >>>> Sent from the Struts - User mailing list archive at
>> >> Nabble.com.
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> >> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975342.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
ok sir

i hav another problem am using sub reports in struts2-jasper report.
in that am able to pass the parameters to the main report by creating the
field as "reportParams.<parametername>"
by following this link
"http://www.agileevidence.com/2009/01/jasper-reports-using-struts2-report.html"
hope u know this.
but nw i hav to pass the parameter to the sub report then how can i am
following the same procedure but am getting null.
can u please solve this



Brian Thompson-5 wrote:
> 
> Can't you just put it in your jsp for the report action?
> 
> -Brian
> 
> On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com> wrote:
> 
>>
>> here urlx is nothing but an action
>> in that action i have a code as follows
>>  <action
>>                name="myaction"
>>                method="getItemsNotInPackageReport"
>>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>>
>>                <result name="myaction" type="jasper">
>>            /jasper/sales/ItemsNotInPackageReport.jasper
>>            itemNameList
>>            PDF
>>        </result>
>>        </action>
>>
>> so now what to do? how should i include that window.print()..
>> please tell me sir
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Try putting the window.print() in the code for the page at urlx.
>> >
>> > -Brian
>> >
>> >
>> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> exactly i did
>> >> but the problem here is.. see my code
>> >>
>> >> var urlx="myaction.action";
>> >> var x= window.open(urlx);
>> >> x.window.print();
>> >>
>> >> here it is invoking printer
>> >> but empty page is printing because the action is taking time to load.
>> >> thats y am getting empty page so any alternative?????
>> >>
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Then no, there's no way to do this.
>> >> >
>> >> > What you *can* do is:
>> >> >
>> >> > User clicks HTML button --> Struts action/Jasper report displays -->
>> >> some
>> >> > javascript on the report calls window.print(); --> user clicks "OK"
>> on
>> >> the
>> >> > Print dialog.
>> >> >
>> >> > -Brian
>> >> >
>> >> >
>> >> >
>> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> yes user is clicking html/jsp button only
>> >> >>
>> >> >> Brian Thompson-5 wrote:
>> >> >> >
>> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or
>> >> the
>> >> >> > browser's print dialog box?
>> >> >> >
>> >> >> > At the very least, the user will see the print dialog...there's
>> no
>> >> way
>> >> >> > around that for a web page (which, ultimately, is what Struts is
>> >> >> sending
>> >> >> > to
>> >> >> > the user).
>> >> >> >
>> >> >> > -Brian
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju
>> <na...@gmail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> >>
>> >> >> >> no sir.
>> >> >> >> no. user interaction means he will press ok button.
>> >> >> >> there "no user interaction" means after clicking "ok", some guys
>> >> >> >> suggested
>> >> >> >> me that use onLoad () then write one listener for print. so here
>> no
>> >> >> user
>> >> >> >> interaction means after pressing ok button.
>> >> >> >>
>> >> >> >> user will interact only by pressing ok button. after that ok
>> button
>> >> >> will
>> >> >> >> call the struts action.
>> >> >> >> so here now without any user interaction i need the print out
>> after
>> >> >> >> calling
>> >> >> >> action unlike a report pdf.
>> >> >> >> hope u got my point
>> >> >> >>
>> >> >> >>
>> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >
>> >> >> >> > I have no idea. Personally, I'd be a little surprised if it
>> was
>> >> >> >> > possible to print from a website with *no* user interaction
>> >> without
>> >> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >> >
>> >> >> >> > Dave
>> >> >> >> >
>> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> >> <nagarjunabattula@gmail.com
>> >> >
>> >> >> >> wrote:
>> >> >> >> >>
>> >> >> >> >> sir please help me
>> >> >> >> >> i ve already told my requirement as follows
>> >> >> >> >> am using struts2-jasper plugin am calling my action through
>> >> jquery.
>> >> >> >> >> nw i need to print the report directly from printer when i ve
>> >> >> pressed
>> >> >> >> ok
>> >> >> >> >> button.
>> >> >> >> >> ok button will call the action.
>> >> >> >> >> please help me ragarding this.Its very urgent for me and it
>> is
>> >> the
>> >> >> >> main
>> >> >> >> >> requirement for this project...
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Dave Newton-6 wrote:
>> >> >> >> >>>
>> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >> >>>
>> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> >> nagarjunabattula@gmail.com>
>> >> >> >> >>> wrote:
>> >> >> >> >>>>
>> >> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >> >>>> --
>> >> >> >> >>>> View this message in context:
>> >> >> >> >>>>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >> >>>> Sent from the Struts - User mailing list archive at
>> >> Nabble.com.
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> >> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30984202.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
Can't you just put it in your jsp for the report action?

-Brian

On Mon, Feb 21, 2011 at 2:24 AM, @rju <na...@gmail.com> wrote:

>
> here urlx is nothing but an action
> in that action i have a code as follows
>  <action
>                name="myaction"
>                method="getItemsNotInPackageReport"
>
> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">
>
>                <result name="myaction" type="jasper">
>            /jasper/sales/ItemsNotInPackageReport.jasper
>            itemNameList
>            PDF
>        </result>
>        </action>
>
> so now what to do? how should i include that window.print()..
> please tell me sir
>
>
> Brian Thompson-5 wrote:
> >
> > Try putting the window.print() in the code for the page at urlx.
> >
> > -Brian
> >
> >
> > On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> exactly i did
> >> but the problem here is.. see my code
> >>
> >> var urlx="myaction.action";
> >> var x= window.open(urlx);
> >> x.window.print();
> >>
> >> here it is invoking printer
> >> but empty page is printing because the action is taking time to load.
> >> thats y am getting empty page so any alternative?????
> >>
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Then no, there's no way to do this.
> >> >
> >> > What you *can* do is:
> >> >
> >> > User clicks HTML button --> Struts action/Jasper report displays -->
> >> some
> >> > javascript on the report calls window.print(); --> user clicks "OK" on
> >> the
> >> > Print dialog.
> >> >
> >> > -Brian
> >> >
> >> >
> >> >
> >> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> yes user is clicking html/jsp button only
> >> >>
> >> >> Brian Thompson-5 wrote:
> >> >> >
> >> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or
> >> the
> >> >> > browser's print dialog box?
> >> >> >
> >> >> > At the very least, the user will see the print dialog...there's no
> >> way
> >> >> > around that for a web page (which, ultimately, is what Struts is
> >> >> sending
> >> >> > to
> >> >> > the user).
> >> >> >
> >> >> > -Brian
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
> >> >> wrote:
> >> >> >
> >> >> >>
> >> >> >> no sir.
> >> >> >> no. user interaction means he will press ok button.
> >> >> >> there "no user interaction" means after clicking "ok", some guys
> >> >> >> suggested
> >> >> >> me that use onLoad () then write one listener for print. so here
> no
> >> >> user
> >> >> >> interaction means after pressing ok button.
> >> >> >>
> >> >> >> user will interact only by pressing ok button. after that ok
> button
> >> >> will
> >> >> >> call the struts action.
> >> >> >> so here now without any user interaction i need the print out
> after
> >> >> >> calling
> >> >> >> action unlike a report pdf.
> >> >> >> hope u got my point
> >> >> >>
> >> >> >>
> >> >> >> Dave Newton-6 wrote:
> >> >> >> >
> >> >> >> > I have no idea. Personally, I'd be a little surprised if it was
> >> >> >> > possible to print from a website with *no* user interaction
> >> without
> >> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >> >
> >> >> >> > Dave
> >> >> >> >
> >> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
> >> <nagarjunabattula@gmail.com
> >> >
> >> >> >> wrote:
> >> >> >> >>
> >> >> >> >> sir please help me
> >> >> >> >> i ve already told my requirement as follows
> >> >> >> >> am using struts2-jasper plugin am calling my action through
> >> jquery.
> >> >> >> >> nw i need to print the report directly from printer when i ve
> >> >> pressed
> >> >> >> ok
> >> >> >> >> button.
> >> >> >> >> ok button will call the action.
> >> >> >> >> please help me ragarding this.Its very urgent for me and it is
> >> the
> >> >> >> main
> >> >> >> >> requirement for this project...
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Dave Newton-6 wrote:
> >> >> >> >>>
> >> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >> >>>
> >> >> >> >>> On Wednesday, February 16, 2011, @rju <
> >> nagarjunabattula@gmail.com>
> >> >> >> >>> wrote:
> >> >> >> >>>>
> >> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >> >>>> --
> >> >> >> >>>> View this message in context:
> >> >> >> >>>>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >> >>>> Sent from the Struts - User mailing list archive at
> >> Nabble.com.
> >> >> >> >>>>
> >> >> >> >>>>
> >> >> >> >>>>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>>>
> >> >> >> >>>>
> >> >> >> >>>
> >> >> >> >>>
> >> >> ---------------------------------------------------------------------
> >> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> ---------------------------------------------------------------------
> >> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
here urlx is nothing but an action
in that action i have a code as follows
 <action 
            	name="myaction" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">

		<result name="myaction" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF            		     
        </result>
        </action>

so now what to do? how should i include that window.print()..
please tell me sir


Brian Thompson-5 wrote:
> 
> Try putting the window.print() in the code for the page at urlx.
> 
> -Brian
> 
> 
> On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com> wrote:
> 
>>
>> exactly i did
>> but the problem here is.. see my code
>>
>> var urlx="myaction.action";
>> var x= window.open(urlx);
>> x.window.print();
>>
>> here it is invoking printer
>> but empty page is printing because the action is taking time to load.
>> thats y am getting empty page so any alternative?????
>>
>>
>> Brian Thompson-5 wrote:
>> >
>> > Then no, there's no way to do this.
>> >
>> > What you *can* do is:
>> >
>> > User clicks HTML button --> Struts action/Jasper report displays -->
>> some
>> > javascript on the report calls window.print(); --> user clicks "OK" on
>> the
>> > Print dialog.
>> >
>> > -Brian
>> >
>> >
>> >
>> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> yes user is clicking html/jsp button only
>> >>
>> >> Brian Thompson-5 wrote:
>> >> >
>> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or
>> the
>> >> > browser's print dialog box?
>> >> >
>> >> > At the very least, the user will see the print dialog...there's no
>> way
>> >> > around that for a web page (which, ultimately, is what Struts is
>> >> sending
>> >> > to
>> >> > the user).
>> >> >
>> >> > -Brian
>> >> >
>> >> >
>> >> >
>> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >
>> >> >>
>> >> >> no sir.
>> >> >> no. user interaction means he will press ok button.
>> >> >> there "no user interaction" means after clicking "ok", some guys
>> >> >> suggested
>> >> >> me that use onLoad () then write one listener for print. so here no
>> >> user
>> >> >> interaction means after pressing ok button.
>> >> >>
>> >> >> user will interact only by pressing ok button. after that ok button
>> >> will
>> >> >> call the struts action.
>> >> >> so here now without any user interaction i need the print out after
>> >> >> calling
>> >> >> action unlike a report pdf.
>> >> >> hope u got my point
>> >> >>
>> >> >>
>> >> >> Dave Newton-6 wrote:
>> >> >> >
>> >> >> > I have no idea. Personally, I'd be a little surprised if it was
>> >> >> > possible to print from a website with *no* user interaction
>> without
>> >> >> > using something like ActiveX, an applet, or *something*.
>> >> >> >
>> >> >> > Dave
>> >> >> >
>> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju
>> <nagarjunabattula@gmail.com
>> >
>> >> >> wrote:
>> >> >> >>
>> >> >> >> sir please help me
>> >> >> >> i ve already told my requirement as follows
>> >> >> >> am using struts2-jasper plugin am calling my action through
>> jquery.
>> >> >> >> nw i need to print the report directly from printer when i ve
>> >> pressed
>> >> >> ok
>> >> >> >> button.
>> >> >> >> ok button will call the action.
>> >> >> >> please help me ragarding this.Its very urgent for me and it is
>> the
>> >> >> main
>> >> >> >> requirement for this project...
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Dave Newton-6 wrote:
>> >> >> >>>
>> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >> >>>
>> >> >> >>> On Wednesday, February 16, 2011, @rju <
>> nagarjunabattula@gmail.com>
>> >> >> >>> wrote:
>> >> >> >>>>
>> >> >> >>>> if dont mind can you tell in detailed manner
>> >> >> >>>> --
>> >> >> >>>> View this message in context:
>> >> >> >>>>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >> >>>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>
>> >> >> >>>
>> >> ---------------------------------------------------------------------
>> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> ---------------------------------------------------------------------
>> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> ---------------------------------------------------------------------
>> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30975200.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
Try putting the window.print() in the code for the page at urlx.

-Brian


On Sun, Feb 20, 2011 at 11:39 PM, @rju <na...@gmail.com> wrote:

>
> exactly i did
> but the problem here is.. see my code
>
> var urlx="myaction.action";
> var x= window.open(urlx);
> x.window.print();
>
> here it is invoking printer
> but empty page is printing because the action is taking time to load.
> thats y am getting empty page so any alternative?????
>
>
> Brian Thompson-5 wrote:
> >
> > Then no, there's no way to do this.
> >
> > What you *can* do is:
> >
> > User clicks HTML button --> Struts action/Jasper report displays --> some
> > javascript on the report calls window.print(); --> user clicks "OK" on
> the
> > Print dialog.
> >
> > -Brian
> >
> >
> >
> > On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> yes user is clicking html/jsp button only
> >>
> >> Brian Thompson-5 wrote:
> >> >
> >> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
> >> > browser's print dialog box?
> >> >
> >> > At the very least, the user will see the print dialog...there's no way
> >> > around that for a web page (which, ultimately, is what Struts is
> >> sending
> >> > to
> >> > the user).
> >> >
> >> > -Brian
> >> >
> >> >
> >> >
> >> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
> >> wrote:
> >> >
> >> >>
> >> >> no sir.
> >> >> no. user interaction means he will press ok button.
> >> >> there "no user interaction" means after clicking "ok", some guys
> >> >> suggested
> >> >> me that use onLoad () then write one listener for print. so here no
> >> user
> >> >> interaction means after pressing ok button.
> >> >>
> >> >> user will interact only by pressing ok button. after that ok button
> >> will
> >> >> call the struts action.
> >> >> so here now without any user interaction i need the print out after
> >> >> calling
> >> >> action unlike a report pdf.
> >> >> hope u got my point
> >> >>
> >> >>
> >> >> Dave Newton-6 wrote:
> >> >> >
> >> >> > I have no idea. Personally, I'd be a little surprised if it was
> >> >> > possible to print from a website with *no* user interaction without
> >> >> > using something like ActiveX, an applet, or *something*.
> >> >> >
> >> >> > Dave
> >> >> >
> >> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <nagarjunabattula@gmail.com
> >
> >> >> wrote:
> >> >> >>
> >> >> >> sir please help me
> >> >> >> i ve already told my requirement as follows
> >> >> >> am using struts2-jasper plugin am calling my action through
> jquery.
> >> >> >> nw i need to print the report directly from printer when i ve
> >> pressed
> >> >> ok
> >> >> >> button.
> >> >> >> ok button will call the action.
> >> >> >> please help me ragarding this.Its very urgent for me and it is the
> >> >> main
> >> >> >> requirement for this project...
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Dave Newton-6 wrote:
> >> >> >>>
> >> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >> >>>
> >> >> >>> On Wednesday, February 16, 2011, @rju <
> nagarjunabattula@gmail.com>
> >> >> >>> wrote:
> >> >> >>>>
> >> >> >>>> if dont mind can you tell in detailed manner
> >> >> >>>> --
> >> >> >>>> View this message in context:
> >> >> >>>>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>>>
> >> >> >>>>
> >> >> >>>>
> >> >> ---------------------------------------------------------------------
> >> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>>
> >> ---------------------------------------------------------------------
> >> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >>> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
exactly i did
but the problem here is.. see my code

var urlx="myaction.action";
var x= window.open(urlx);
x.window.print();

here it is invoking printer
but empty page is printing because the action is taking time to load.
thats y am getting empty page so any alternative?????


Brian Thompson-5 wrote:
> 
> Then no, there's no way to do this.
> 
> What you *can* do is:
> 
> User clicks HTML button --> Struts action/Jasper report displays --> some
> javascript on the report calls window.print(); --> user clicks "OK" on the
> Print dialog.
> 
> -Brian
> 
> 
> 
> On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com> wrote:
> 
>>
>> yes user is clicking html/jsp button only
>>
>> Brian Thompson-5 wrote:
>> >
>> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
>> > browser's print dialog box?
>> >
>> > At the very least, the user will see the print dialog...there's no way
>> > around that for a web page (which, ultimately, is what Struts is
>> sending
>> > to
>> > the user).
>> >
>> > -Brian
>> >
>> >
>> >
>> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
>> wrote:
>> >
>> >>
>> >> no sir.
>> >> no. user interaction means he will press ok button.
>> >> there "no user interaction" means after clicking "ok", some guys
>> >> suggested
>> >> me that use onLoad () then write one listener for print. so here no
>> user
>> >> interaction means after pressing ok button.
>> >>
>> >> user will interact only by pressing ok button. after that ok button
>> will
>> >> call the struts action.
>> >> so here now without any user interaction i need the print out after
>> >> calling
>> >> action unlike a report pdf.
>> >> hope u got my point
>> >>
>> >>
>> >> Dave Newton-6 wrote:
>> >> >
>> >> > I have no idea. Personally, I'd be a little surprised if it was
>> >> > possible to print from a website with *no* user interaction without
>> >> > using something like ActiveX, an applet, or *something*.
>> >> >
>> >> > Dave
>> >> >
>> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com>
>> >> wrote:
>> >> >>
>> >> >> sir please help me
>> >> >> i ve already told my requirement as follows
>> >> >> am using struts2-jasper plugin am calling my action through jquery.
>> >> >> nw i need to print the report directly from printer when i ve
>> pressed
>> >> ok
>> >> >> button.
>> >> >> ok button will call the action.
>> >> >> please help me ragarding this.Its very urgent for me and it is the
>> >> main
>> >> >> requirement for this project...
>> >> >>
>> >> >>
>> >> >>
>> >> >> Dave Newton-6 wrote:
>> >> >>>
>> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >> >>>
>> >> >>> On Wednesday, February 16, 2011, @rju <na...@gmail.com>
>> >> >>> wrote:
>> >> >>>>
>> >> >>>> if dont mind can you tell in detailed manner
>> >> >>>> --
>> >> >>>> View this message in context:
>> >> >>>>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> ---------------------------------------------------------------------
>> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>>
>> ---------------------------------------------------------------------
>> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> > For additional commands, e-mail: user-help@struts.apache.org
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974618.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
Then no, there's no way to do this.

What you *can* do is:

User clicks HTML button --> Struts action/Jasper report displays --> some
javascript on the report calls window.print(); --> user clicks "OK" on the
Print dialog.

-Brian



On Sun, Feb 20, 2011 at 10:27 PM, @rju <na...@gmail.com> wrote:

>
> yes user is clicking html/jsp button only
>
> Brian Thompson-5 wrote:
> >
> > Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
> > browser's print dialog box?
> >
> > At the very least, the user will see the print dialog...there's no way
> > around that for a web page (which, ultimately, is what Struts is sending
> > to
> > the user).
> >
> > -Brian
> >
> >
> >
> > On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com>
> wrote:
> >
> >>
> >> no sir.
> >> no. user interaction means he will press ok button.
> >> there "no user interaction" means after clicking "ok", some guys
> >> suggested
> >> me that use onLoad () then write one listener for print. so here no user
> >> interaction means after pressing ok button.
> >>
> >> user will interact only by pressing ok button. after that ok button will
> >> call the struts action.
> >> so here now without any user interaction i need the print out after
> >> calling
> >> action unlike a report pdf.
> >> hope u got my point
> >>
> >>
> >> Dave Newton-6 wrote:
> >> >
> >> > I have no idea. Personally, I'd be a little surprised if it was
> >> > possible to print from a website with *no* user interaction without
> >> > using something like ActiveX, an applet, or *something*.
> >> >
> >> > Dave
> >> >
> >> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com>
> >> wrote:
> >> >>
> >> >> sir please help me
> >> >> i ve already told my requirement as follows
> >> >> am using struts2-jasper plugin am calling my action through jquery.
> >> >> nw i need to print the report directly from printer when i ve pressed
> >> ok
> >> >> button.
> >> >> ok button will call the action.
> >> >> please help me ragarding this.Its very urgent for me and it is the
> >> main
> >> >> requirement for this project...
> >> >>
> >> >>
> >> >>
> >> >> Dave Newton-6 wrote:
> >> >>>
> >> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >> >>>
> >> >>> On Wednesday, February 16, 2011, @rju <na...@gmail.com>
> >> >>> wrote:
> >> >>>>
> >> >>>> if dont mind can you tell in detailed manner
> >> >>>> --
> >> >>>> View this message in context:
> >> >>>>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>>>
> >> >>>>
> >> >>>>
> >> ---------------------------------------------------------------------
> >> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >> >>>>
> >> >>>>
> >> >>>
> >> >>>
> ---------------------------------------------------------------------
> >> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >>> For additional commands, e-mail: user-help@struts.apache.org
> >> >>>
> >> >>>
> >> >>>
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > For additional commands, e-mail: user-help@struts.apache.org
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
yes user is clicking html/jsp button only

Brian Thompson-5 wrote:
> 
> Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
> browser's print dialog box?
> 
> At the very least, the user will see the print dialog...there's no way
> around that for a web page (which, ultimately, is what Struts is sending
> to
> the user).
> 
> -Brian
> 
> 
> 
> On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com> wrote:
> 
>>
>> no sir.
>> no. user interaction means he will press ok button.
>> there "no user interaction" means after clicking "ok", some guys
>> suggested
>> me that use onLoad () then write one listener for print. so here no user
>> interaction means after pressing ok button.
>>
>> user will interact only by pressing ok button. after that ok button will
>> call the struts action.
>> so here now without any user interaction i need the print out after
>> calling
>> action unlike a report pdf.
>> hope u got my point
>>
>>
>> Dave Newton-6 wrote:
>> >
>> > I have no idea. Personally, I'd be a little surprised if it was
>> > possible to print from a website with *no* user interaction without
>> > using something like ActiveX, an applet, or *something*.
>> >
>> > Dave
>> >
>> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com>
>> wrote:
>> >>
>> >> sir please help me
>> >> i ve already told my requirement as follows
>> >> am using struts2-jasper plugin am calling my action through jquery.
>> >> nw i need to print the report directly from printer when i ve pressed
>> ok
>> >> button.
>> >> ok button will call the action.
>> >> please help me ragarding this.Its very urgent for me and it is the
>> main
>> >> requirement for this project...
>> >>
>> >>
>> >>
>> >> Dave Newton-6 wrote:
>> >>>
>> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> >>>
>> >>> On Wednesday, February 16, 2011, @rju <na...@gmail.com>
>> >>> wrote:
>> >>>>
>> >>>> if dont mind can you tell in detailed manner
>> >>>> --
>> >>>> View this message in context:
>> >>>>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>>>
>> >>>>
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >>>> For additional commands, e-mail: user-help@struts.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >>> For additional commands, e-mail: user-help@struts.apache.org
>> >>>
>> >>>
>> >>>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974450.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
Where is the user clicking "ok"?  Do you mean an HTML button?  Or the
browser's print dialog box?

At the very least, the user will see the print dialog...there's no way
around that for a web page (which, ultimately, is what Struts is sending to
the user).

-Brian



On Sun, Feb 20, 2011 at 9:46 PM, @rju <na...@gmail.com> wrote:

>
> no sir.
> no. user interaction means he will press ok button.
> there "no user interaction" means after clicking "ok", some guys suggested
> me that use onLoad () then write one listener for print. so here no user
> interaction means after pressing ok button.
>
> user will interact only by pressing ok button. after that ok button will
> call the struts action.
> so here now without any user interaction i need the print out after calling
> action unlike a report pdf.
> hope u got my point
>
>
> Dave Newton-6 wrote:
> >
> > I have no idea. Personally, I'd be a little surprised if it was
> > possible to print from a website with *no* user interaction without
> > using something like ActiveX, an applet, or *something*.
> >
> > Dave
> >
> > On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com>
> wrote:
> >>
> >> sir please help me
> >> i ve already told my requirement as follows
> >> am using struts2-jasper plugin am calling my action through jquery.
> >> nw i need to print the report directly from printer when i ve pressed ok
> >> button.
> >> ok button will call the action.
> >> please help me ragarding this.Its very urgent for me and it is the main
> >> requirement for this project...
> >>
> >>
> >>
> >> Dave Newton-6 wrote:
> >>>
> >>> He's saying "Hit Ctrl-P from inside a PDF reader.
> >>>
> >>> On Wednesday, February 16, 2011, @rju <na...@gmail.com>
> >>> wrote:
> >>>>
> >>>> if dont mind can you tell in detailed manner
> >>>> --
> >>>> View this message in context:
> >>>>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> >>>> Sent from the Struts - User mailing list archive at Nabble.com.
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: sending the report directly to the printer

Posted by Chris Pratt <th...@gmail.com>.
If this is for an internal application for your company, you may be able to
use the Java Print API and print from the server, but as everyone else has
mentioned, you cannot have the browser start a print job without user
interaction.  You can use the JavaScript window.print() function to bring up
the print dialog to prompt the user to complete the action.
  (*Chris*)

On Sun, Feb 20, 2011 at 9:37 AM, Brian Thompson <el...@gmail.com>wrote:

> On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton <da...@gmail.com>
> wrote:
>
> > I have no idea. Personally, I'd be a little surprised if it was
> > possible to print from a website with *no* user interaction without
> > using something like ActiveX, an applet, or *something*.
> >
> > Dave
> >
> >
>
> Indeed.  Browsers restrict such functionality for very good reasons.  If a
> report needs to be run and then sent directly to the printer, writing a web
> app is kind of using the wrong tool for the job, IMO.
>
> -Brian
>

Re: sending the report directly to the printer

Posted by Brian Thompson <el...@gmail.com>.
On Sun, Feb 20, 2011 at 10:18 AM, Dave Newton <da...@gmail.com> wrote:

> I have no idea. Personally, I'd be a little surprised if it was
> possible to print from a website with *no* user interaction without
> using something like ActiveX, an applet, or *something*.
>
> Dave
>
>

Indeed.  Browsers restrict such functionality for very good reasons.  If a
report needs to be run and then sent directly to the printer, writing a web
app is kind of using the wrong tool for the job, IMO.

-Brian

Re: sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
no sir.
no. user interaction means he will press ok button.
there "no user interaction" means after clicking "ok", some guys suggested
me that use onLoad () then write one listener for print. so here no user
interaction means after pressing ok button.

user will interact only by pressing ok button. after that ok button will
call the struts action.
so here now without any user interaction i need the print out after calling
action unlike a report pdf.
hope u got my point


Dave Newton-6 wrote:
> 
> I have no idea. Personally, I'd be a little surprised if it was
> possible to print from a website with *no* user interaction without
> using something like ActiveX, an applet, or *something*.
> 
> Dave
> 
> On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com> wrote:
>>
>> sir please help me
>> i ve already told my requirement as follows
>> am using struts2-jasper plugin am calling my action through jquery.
>> nw i need to print the report directly from printer when i ve pressed ok
>> button.
>> ok button will call the action.
>> please help me ragarding this.Its very urgent for me and it is the main
>> requirement for this project...
>>
>>
>>
>> Dave Newton-6 wrote:
>>>
>>> He's saying "Hit Ctrl-P from inside a PDF reader.
>>>
>>> On Wednesday, February 16, 2011, @rju <na...@gmail.com>
>>> wrote:
>>>>
>>>> if dont mind can you tell in detailed manner
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30974347.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sending the report directly to the printer

Posted by Dave Newton <da...@gmail.com>.
I have no idea. Personally, I'd be a little surprised if it was
possible to print from a website with *no* user interaction without
using something like ActiveX, an applet, or *something*.

Dave

On Sun, Feb 20, 2011 at 11:06 AM, @rju <na...@gmail.com> wrote:
>
> sir please help me
> i ve already told my requirement as follows
> am using struts2-jasper plugin am calling my action through jquery.
> nw i need to print the report directly from printer when i ve pressed ok
> button.
> ok button will call the action.
> please help me ragarding this.Its very urgent for me and it is the main
> requirement for this project...
>
>
>
> Dave Newton-6 wrote:
>>
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>>
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


sending the report directly to the printer

Posted by "@rju" <na...@gmail.com>.
sir please help me
i ve already told my requirement as follows
am using struts2-jasper plugin am calling my action through jquery.
nw i need to print the report directly from printer when i ve pressed ok
button.
ok button will call the action.
please help me ragarding this.Its very urgent for me and it is the main
requirement for this project...



Dave Newton-6 wrote:
> 
> He's saying "Hit Ctrl-P from inside a PDF reader.
> 
> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>
>> if dont mind can you tell in detailed manner
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30971331.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by Jerson John <je...@cprvision.com>.
Is that Tomcat Version 6

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: Frans Thamura [mailto:frans@meruvian.org] 
Sent: Thursday, February 17, 2011 7:35 PM
To: Jerson John; 'Struts Users Mailing List'
Subject: Re: Integrate JasperReports into a Struts2 web application

We use modjk and mod proxy

And a php for redirect to the active action

We have probel with redirect action type, this is our workaround


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 19:17:02 
To: 'Struts Users Mailing List'<us...@struts.apache.org>;
<fr...@meruvian.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi

Could you share with me some tips....Or If you need more info of this please
let me know

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: Frans Thamura [mailto:frans@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

We use a lot virtual host around 20 dotcom, splitted for around 5 tomcat,
jboss and glassfish in one server


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi,
  Please help me out.I have Struts2 Application which works fine when I run
in localhost.Somehow I am failed to run using Virtual host name.It comes to
stating login page after then it cannot execute my action classes..I am try
to google for the solution but nothing works out.Please help me on this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by Frans Thamura <fr...@meruvian.org>.
We use modjk and mod proxy

And a php for redirect to the active action

We have probel with redirect action type, this is our workaround


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 19:17:02 
To: 'Struts Users Mailing List'<us...@struts.apache.org>; <fr...@meruvian.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi

Could you share with me some tips....Or If you need more info of this please
let me know

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: Frans Thamura [mailto:frans@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

We use a lot virtual host around 20 dotcom, splitted for around 5 tomcat,
jboss and glassfish in one server


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi,
  Please help me out.I have Struts2 Application which works fine when I run
in localhost.Somehow I am failed to run using Virtual host name.It comes to
stating login page after then it cannot execute my action classes..I am try
to google for the solution but nothing works out.Please help me on this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




RE: Integrate JasperReports into a Struts2 web application

Posted by Jerson John <je...@cprvision.com>.
Hi

Could you share with me some tips....Or If you need more info of this please
let me know

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: Frans Thamura [mailto:frans@meruvian.org] 
Sent: Thursday, February 17, 2011 7:04 PM
To: Struts Users Mailing List
Subject: Re: Integrate JasperReports into a Struts2 web application

We use a lot virtual host around 20 dotcom, splitted for around 5 tomcat,
jboss and glassfish in one server


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi,
  Please help me out.I have Struts2 Application which works fine when I run
in localhost.Somehow I am failed to run using Virtual host name.It comes to
stating login page after then it cannot execute my action classes..I am try
to google for the solution but nothing works out.Please help me on this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by Frans Thamura <fr...@meruvian.org>.
We use a lot virtual host around 20 dotcom, splitted for around 5 tomcat, jboss and glassfish in one server


/m/

-----Original Message-----
From: "Jerson John" <je...@cprvision.com>
Date: Thu, 17 Feb 2011 18:58:25 
To: 'Struts Users Mailing List'<us...@struts.apache.org>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
Subject: RE: Integrate JasperReports into a Struts2 web application

Hi,
  Please help me out.I have Struts2 Application which works fine when I run
in localhost.Somehow I am failed to run using Virtual host name.It comes to
stating login page after then it cannot execute my action classes..I am try
to google for the solution but nothing works out.Please help me on this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by Jerson John <je...@cprvision.com>.
Hi,
  Please help me out.I have Struts2 Application which works fine when I run
in localhost.Somehow I am failed to run using Virtual host name.It comes to
stating login page after then it cannot execute my action classes..I am try
to google for the solution but nothing works out.Please help me on this
issue...

If My application can work in localhost I assume it will works for virtual
host also.Please advice me on what can be the possible cause.

Many Thanks and Regards,

Jerson

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software & Marketing

E: jerson@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing & Loyalty "Agency of the
Year" Award - Organized by Marketing Magazine


-----Original Message-----
From: @rju [mailto:nagarjunabattula@gmail.com] 
Sent: Thursday, February 17, 2011 6:42 PM
To: user@struts.apache.org
Subject: Re: Integrate JasperReports into a Struts2 web application


hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>>
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application
-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
hey in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me








@rju wrote:
> 
> hello boss
> previously you ve helped a lot
> hope u remember me.
> boss am giving action call through ajax.
> so after that action i dont want my result as a jasper report i want to
> send that report directly to the printer... dat to without user
> interaction
> 
> Dave Newton-6 wrote:
>> 
>> He's saying "Hit Ctrl-P from inside a PDF reader.
>> 
>> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>>
>>> if dont mind can you tell in detailed manner
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948479.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
hello boss
previously you ve helped a lot
hope u remember me.
boss am giving action call through ajax.
so after that action i dont want my result as a jasper report i want to send
that report directly to the printer... dat to without user interaction

Dave Newton-6 wrote:
> 
> He's saying "Hit Ctrl-P from inside a PDF reader.
> 
> On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>>
>> if dont mind can you tell in detailed manner
>> --
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946644.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


directly send Jasper report to printer in WebApplication from local printer

Posted by "nagarjunabattula@gmail.com" <na...@gmail.com>.
all said and done my code is working well

i am using JasperPrintManager.printReport(jasperPrint, false); in struts
environment.
bt here when i am calling from client the print is invoking the server
printer unlike using local resource(printer).
 can u find me the solution for this its very very damn urgent for me



--
View this message in context: http://struts.1045723.n5.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp3484099p4343115.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by Dave Newton <da...@gmail.com>.
He's saying "Hit Ctrl-P from inside a PDF reader.

On Wednesday, February 16, 2011, @rju <na...@gmail.com> wrote:
>
> if dont mind can you tell in detailed manner
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
if dont mind can you tell in detailed manner
-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946620.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by adam pinder <ap...@hotmail.co.uk>.

someone posted this online, not sure if it'll work for jasper report as source
<html>
<head>
<script>
function doit() {
var x = document.getElementById("doodad");
x.click();
x.setActive();
x.focus();
x.print();
}
</script>

</head>
<body>
<embed id="doodad" src ="D:\Documents and
Settings\ron\Desktop\eth_cli.pdf" width="550" height="550"
name="whatever">
<button onclick="doit()">howdy</button>
</body>
</html>

> Date: Thu, 17 Feb 2011 09:28:33 -0800
> From: nagarjunabattula@gmail.com
> To: user@struts.apache.org
> Subject: RE: Integrate JasperReports into a Struts2 web application
> 
> 
> k but please send me the code please.
> i might get any idea by seeing dat naa..
> please
> 
> adam pinder wrote:
> > 
> > 
> > 
> > its specific to pdfs and won't be any different to window.print on a
> > normal web page
> > 
> >> Date: Thu, 17 Feb 2011 09:22:33 -0800
> >> From: nagarjunabattula@gmail.com
> >> To: user@struts.apache.org
> >> Subject: RE: Integrate JasperReports into a Struts2 web application
> >> 
> >> 
> >> inside a pdf able to print???
> >> ok can u please send that java script file to
> >> me.(nagarjunabattula@gmail.com)
> >> 
> >> adam pinder wrote:
> >> > 
> >> > 
> >> > 
> >> > i think all interactions using window.print require the user to at
> >> least
> >> > acknowledge that they want to print. i've only used javascript inside a
> >> > pdf to be able to print without user interaction but even that has been
> >> > deemed a security risk and so is also frowned upon.
> >> > 
> >> >> Date: Thu, 17 Feb 2011 09:03:05 -0800
> >> >> From: nagarjunabattula@gmail.com
> >> >> To: user@struts.apache.org
> >> >> Subject: RE: Integrate JasperReports into a Struts2 web application
> >> >> 
> >> >> 
> >> >> ok adam am also thinking that only.
> >> >> so can you tell me is it possible to print the report directly when i
> >> >> press
> >> >> ok button . in this ok button the function am giving is
> >> >> window.open(action
> >> >> urlx). so i want a report if it dont display even it is not a matter
> >> but
> >> >> i
> >> >> need print out directly should go to the printer.
> >> >> simply sending the report directly to the printer without any user
> >> >> interaction after pressing ok.
> >> >> can u help me regarding this
> >> >> 
> >> >> 
> >> >> adam pinder wrote:
> >> >> > 
> >> >> > 
> >> >> > 
> >> >> > window.open is not a synchronous command and hence the window.print
> >> is
> >> >> > occurring before the jasper report is actually rendered and you need
> >> to
> >> >> > issue the window.print on the new window which i doubt it is given
> >> >> you're
> >> >> > calling it from the parent window.
> >> >> > you need to be able to test that the new window is loaded first,
> >> then
> >> >> > issue a print on the new window.
> >> >> > 
> >> >> >> Date: Thu, 17 Feb 2011 02:44:44 -0800
> >> >> >> From: nagarjunabattula@gmail.com
> >> >> >> To: user@struts.apache.org
> >> >> >> Subject: Re: Integrate JasperReports into a Struts2 web application
> >> >> >> 
> >> >> >> 
> >> >> >> hello sir,
> >> >> >> 
> >> >> >> in my java script file am calling action as follows and it displays
> >> >> the
> >> >> >> jasper report.
> >> >> >> 
> >> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> >> >> $('select#branchName option:selected').val());
> >> >> >> 
> >> >> >> so now i want to send this to printer directly when i am calling
> >> >> action.
> >> >> >> Is it possible???
> >> >> >> 
> >> >> >> i ve used like this also
> >> >> >> 
> >> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> >> >> $('select#branchName option:selected').val());
> >> >> >> window.print();
> >> >> >> 
> >> >> >> but it is printing the empty page but generating the report
> >> >> successfully
> >> >> >> 
> >> >> >> action in struts.xml
> >> >> >> 
> >> >> >> <action 
> >> >> >>             	name="itemsNotInPackageReport" 
> >> >> >>             	method="getItemsNotInPackageReport" 
> >> >> >>             
> >> >> >>
> >> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> >> >> >> <result name="itemsNotInPackageReport" type="jasper">
> >> >> >>             /jasper/sales/ItemsNotInPackageReport.jasper
> >> >> >>             itemNameList
> >> >> >>             PDF		     
> >> >> >>         </result>
> >> >> >>         </action>
> >> >> >> 
> >> >> >> please help me its urgent for me
> >> >> >> 
> >> >> >> -- 
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> >> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> >> 
> >> >> >> 
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> >> 
> >> >> >  		 	   		  
> >> >> > 
> >> >> 
> >> >> -- 
> >> >> View this message in context:
> >> >>
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> 
> >> >> 
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> 
> >> >  		 	   		  
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >> 
> >  		 	   		  
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951761.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

RE: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
k but please send me the code please.
i might get any idea by seeing dat naa..
please

adam pinder wrote:
> 
> 
> 
> its specific to pdfs and won't be any different to window.print on a
> normal web page
> 
>> Date: Thu, 17 Feb 2011 09:22:33 -0800
>> From: nagarjunabattula@gmail.com
>> To: user@struts.apache.org
>> Subject: RE: Integrate JasperReports into a Struts2 web application
>> 
>> 
>> inside a pdf able to print???
>> ok can u please send that java script file to
>> me.(nagarjunabattula@gmail.com)
>> 
>> adam pinder wrote:
>> > 
>> > 
>> > 
>> > i think all interactions using window.print require the user to at
>> least
>> > acknowledge that they want to print. i've only used javascript inside a
>> > pdf to be able to print without user interaction but even that has been
>> > deemed a security risk and so is also frowned upon.
>> > 
>> >> Date: Thu, 17 Feb 2011 09:03:05 -0800
>> >> From: nagarjunabattula@gmail.com
>> >> To: user@struts.apache.org
>> >> Subject: RE: Integrate JasperReports into a Struts2 web application
>> >> 
>> >> 
>> >> ok adam am also thinking that only.
>> >> so can you tell me is it possible to print the report directly when i
>> >> press
>> >> ok button . in this ok button the function am giving is
>> >> window.open(action
>> >> urlx). so i want a report if it dont display even it is not a matter
>> but
>> >> i
>> >> need print out directly should go to the printer.
>> >> simply sending the report directly to the printer without any user
>> >> interaction after pressing ok.
>> >> can u help me regarding this
>> >> 
>> >> 
>> >> adam pinder wrote:
>> >> > 
>> >> > 
>> >> > 
>> >> > window.open is not a synchronous command and hence the window.print
>> is
>> >> > occurring before the jasper report is actually rendered and you need
>> to
>> >> > issue the window.print on the new window which i doubt it is given
>> >> you're
>> >> > calling it from the parent window.
>> >> > you need to be able to test that the new window is loaded first,
>> then
>> >> > issue a print on the new window.
>> >> > 
>> >> >> Date: Thu, 17 Feb 2011 02:44:44 -0800
>> >> >> From: nagarjunabattula@gmail.com
>> >> >> To: user@struts.apache.org
>> >> >> Subject: Re: Integrate JasperReports into a Struts2 web application
>> >> >> 
>> >> >> 
>> >> >> hello sir,
>> >> >> 
>> >> >> in my java script file am calling action as follows and it displays
>> >> the
>> >> >> jasper report.
>> >> >> 
>> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
>> >> >> $('select#branchName option:selected').val());
>> >> >> 
>> >> >> so now i want to send this to printer directly when i am calling
>> >> action.
>> >> >> Is it possible???
>> >> >> 
>> >> >> i ve used like this also
>> >> >> 
>> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
>> >> >> $('select#branchName option:selected').val());
>> >> >> window.print();
>> >> >> 
>> >> >> but it is printing the empty page but generating the report
>> >> successfully
>> >> >> 
>> >> >> action in struts.xml
>> >> >> 
>> >> >> <action 
>> >> >>             	name="itemsNotInPackageReport" 
>> >> >>             	method="getItemsNotInPackageReport" 
>> >> >>             
>> >> >>
>> >>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
>> >> >> <result name="itemsNotInPackageReport" type="jasper">
>> >> >>             /jasper/sales/ItemsNotInPackageReport.jasper
>> >> >>             itemNameList
>> >> >>             PDF		     
>> >> >>         </result>
>> >> >>         </action>
>> >> >> 
>> >> >> please help me its urgent for me
>> >> >> 
>> >> >> -- 
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >> 
>> >> >> 
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> >> 
>> >> >  		 	   		  
>> >> > 
>> >> 
>> >> -- 
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> 
>> >  		 	   		  
>> > 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>  		 	   		  
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951761.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by adam pinder <ap...@hotmail.co.uk>.

its specific to pdfs and won't be any different to window.print on a normal web page

> Date: Thu, 17 Feb 2011 09:22:33 -0800
> From: nagarjunabattula@gmail.com
> To: user@struts.apache.org
> Subject: RE: Integrate JasperReports into a Struts2 web application
> 
> 
> inside a pdf able to print???
> ok can u please send that java script file to
> me.(nagarjunabattula@gmail.com)
> 
> adam pinder wrote:
> > 
> > 
> > 
> > i think all interactions using window.print require the user to at least
> > acknowledge that they want to print. i've only used javascript inside a
> > pdf to be able to print without user interaction but even that has been
> > deemed a security risk and so is also frowned upon.
> > 
> >> Date: Thu, 17 Feb 2011 09:03:05 -0800
> >> From: nagarjunabattula@gmail.com
> >> To: user@struts.apache.org
> >> Subject: RE: Integrate JasperReports into a Struts2 web application
> >> 
> >> 
> >> ok adam am also thinking that only.
> >> so can you tell me is it possible to print the report directly when i
> >> press
> >> ok button . in this ok button the function am giving is
> >> window.open(action
> >> urlx). so i want a report if it dont display even it is not a matter but
> >> i
> >> need print out directly should go to the printer.
> >> simply sending the report directly to the printer without any user
> >> interaction after pressing ok.
> >> can u help me regarding this
> >> 
> >> 
> >> adam pinder wrote:
> >> > 
> >> > 
> >> > 
> >> > window.open is not a synchronous command and hence the window.print is
> >> > occurring before the jasper report is actually rendered and you need to
> >> > issue the window.print on the new window which i doubt it is given
> >> you're
> >> > calling it from the parent window.
> >> > you need to be able to test that the new window is loaded first, then
> >> > issue a print on the new window.
> >> > 
> >> >> Date: Thu, 17 Feb 2011 02:44:44 -0800
> >> >> From: nagarjunabattula@gmail.com
> >> >> To: user@struts.apache.org
> >> >> Subject: Re: Integrate JasperReports into a Struts2 web application
> >> >> 
> >> >> 
> >> >> hello sir,
> >> >> 
> >> >> in my java script file am calling action as follows and it displays
> >> the
> >> >> jasper report.
> >> >> 
> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> >> $('select#branchName option:selected').val());
> >> >> 
> >> >> so now i want to send this to printer directly when i am calling
> >> action.
> >> >> Is it possible???
> >> >> 
> >> >> i ve used like this also
> >> >> 
> >> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> >> $('select#branchName option:selected').val());
> >> >> window.print();
> >> >> 
> >> >> but it is printing the empty page but generating the report
> >> successfully
> >> >> 
> >> >> action in struts.xml
> >> >> 
> >> >> <action 
> >> >>             	name="itemsNotInPackageReport" 
> >> >>             	method="getItemsNotInPackageReport" 
> >> >>             
> >> >>
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> >> >> <result name="itemsNotInPackageReport" type="jasper">
> >> >>             /jasper/sales/ItemsNotInPackageReport.jasper
> >> >>             itemNameList
> >> >>             PDF		     
> >> >>         </result>
> >> >>         </action>
> >> >> 
> >> >> please help me its urgent for me
> >> >> 
> >> >> -- 
> >> >> View this message in context:
> >> >>
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> >> 
> >> >> 
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> >> For additional commands, e-mail: user-help@struts.apache.org
> >> >> 
> >> >  		 	   		  
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >> 
> >  		 	   		  
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

RE: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
inside a pdf able to print???
ok can u please send that java script file to
me.(nagarjunabattula@gmail.com)

adam pinder wrote:
> 
> 
> 
> i think all interactions using window.print require the user to at least
> acknowledge that they want to print. i've only used javascript inside a
> pdf to be able to print without user interaction but even that has been
> deemed a security risk and so is also frowned upon.
> 
>> Date: Thu, 17 Feb 2011 09:03:05 -0800
>> From: nagarjunabattula@gmail.com
>> To: user@struts.apache.org
>> Subject: RE: Integrate JasperReports into a Struts2 web application
>> 
>> 
>> ok adam am also thinking that only.
>> so can you tell me is it possible to print the report directly when i
>> press
>> ok button . in this ok button the function am giving is
>> window.open(action
>> urlx). so i want a report if it dont display even it is not a matter but
>> i
>> need print out directly should go to the printer.
>> simply sending the report directly to the printer without any user
>> interaction after pressing ok.
>> can u help me regarding this
>> 
>> 
>> adam pinder wrote:
>> > 
>> > 
>> > 
>> > window.open is not a synchronous command and hence the window.print is
>> > occurring before the jasper report is actually rendered and you need to
>> > issue the window.print on the new window which i doubt it is given
>> you're
>> > calling it from the parent window.
>> > you need to be able to test that the new window is loaded first, then
>> > issue a print on the new window.
>> > 
>> >> Date: Thu, 17 Feb 2011 02:44:44 -0800
>> >> From: nagarjunabattula@gmail.com
>> >> To: user@struts.apache.org
>> >> Subject: Re: Integrate JasperReports into a Struts2 web application
>> >> 
>> >> 
>> >> hello sir,
>> >> 
>> >> in my java script file am calling action as follows and it displays
>> the
>> >> jasper report.
>> >> 
>> >> window.open("itemsNotInPackageReport.action?branchName=" +
>> >> $('select#branchName option:selected').val());
>> >> 
>> >> so now i want to send this to printer directly when i am calling
>> action.
>> >> Is it possible???
>> >> 
>> >> i ve used like this also
>> >> 
>> >> window.open("itemsNotInPackageReport.action?branchName=" +
>> >> $('select#branchName option:selected').val());
>> >> window.print();
>> >> 
>> >> but it is printing the empty page but generating the report
>> successfully
>> >> 
>> >> action in struts.xml
>> >> 
>> >> <action 
>> >>             	name="itemsNotInPackageReport" 
>> >>             	method="getItemsNotInPackageReport" 
>> >>             
>> >>
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
>> >> <result name="itemsNotInPackageReport" type="jasper">
>> >>             /jasper/sales/ItemsNotInPackageReport.jasper
>> >>             itemNameList
>> >>             PDF		     
>> >>         </result>
>> >>         </action>
>> >> 
>> >> please help me its urgent for me
>> >> 
>> >> -- 
>> >> View this message in context:
>> >>
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >> 
>> >  		 	   		  
>> > 
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>  		 	   		  
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951720.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by adam pinder <ap...@hotmail.co.uk>.

i think all interactions using window.print require the user to at least acknowledge that they want to print. i've only used javascript inside a pdf to be able to print without user interaction but even that has been deemed a security risk and so is also frowned upon.

> Date: Thu, 17 Feb 2011 09:03:05 -0800
> From: nagarjunabattula@gmail.com
> To: user@struts.apache.org
> Subject: RE: Integrate JasperReports into a Struts2 web application
> 
> 
> ok adam am also thinking that only.
> so can you tell me is it possible to print the report directly when i press
> ok button . in this ok button the function am giving is window.open(action
> urlx). so i want a report if it dont display even it is not a matter but i
> need print out directly should go to the printer.
> simply sending the report directly to the printer without any user
> interaction after pressing ok.
> can u help me regarding this
> 
> 
> adam pinder wrote:
> > 
> > 
> > 
> > window.open is not a synchronous command and hence the window.print is
> > occurring before the jasper report is actually rendered and you need to
> > issue the window.print on the new window which i doubt it is given you're
> > calling it from the parent window.
> > you need to be able to test that the new window is loaded first, then
> > issue a print on the new window.
> > 
> >> Date: Thu, 17 Feb 2011 02:44:44 -0800
> >> From: nagarjunabattula@gmail.com
> >> To: user@struts.apache.org
> >> Subject: Re: Integrate JasperReports into a Struts2 web application
> >> 
> >> 
> >> hello sir,
> >> 
> >> in my java script file am calling action as follows and it displays the
> >> jasper report.
> >> 
> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> $('select#branchName option:selected').val());
> >> 
> >> so now i want to send this to printer directly when i am calling action.
> >> Is it possible???
> >> 
> >> i ve used like this also
> >> 
> >> window.open("itemsNotInPackageReport.action?branchName=" +
> >> $('select#branchName option:selected').val());
> >> window.print();
> >> 
> >> but it is printing the empty page but generating the report successfully
> >> 
> >> action in struts.xml
> >> 
> >> <action 
> >>             	name="itemsNotInPackageReport" 
> >>             	method="getItemsNotInPackageReport" 
> >>             
> >> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> >> <result name="itemsNotInPackageReport" type="jasper">
> >>             /jasper/sales/ItemsNotInPackageReport.jasper
> >>             itemNameList
> >>             PDF		     
> >>         </result>
> >>         </action>
> >> 
> >> please help me its urgent for me
> >> 
> >> -- 
> >> View this message in context:
> >> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >> 
> >  		 	   		  
> > 
> 
> -- 
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

RE: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
ok adam am also thinking that only.
so can you tell me is it possible to print the report directly when i press
ok button . in this ok button the function am giving is window.open(action
urlx). so i want a report if it dont display even it is not a matter but i
need print out directly should go to the printer.
simply sending the report directly to the printer without any user
interaction after pressing ok.
can u help me regarding this


adam pinder wrote:
> 
> 
> 
> window.open is not a synchronous command and hence the window.print is
> occurring before the jasper report is actually rendered and you need to
> issue the window.print on the new window which i doubt it is given you're
> calling it from the parent window.
> you need to be able to test that the new window is loaded first, then
> issue a print on the new window.
> 
>> Date: Thu, 17 Feb 2011 02:44:44 -0800
>> From: nagarjunabattula@gmail.com
>> To: user@struts.apache.org
>> Subject: Re: Integrate JasperReports into a Struts2 web application
>> 
>> 
>> hello sir,
>> 
>> in my java script file am calling action as follows and it displays the
>> jasper report.
>> 
>> window.open("itemsNotInPackageReport.action?branchName=" +
>> $('select#branchName option:selected').val());
>> 
>> so now i want to send this to printer directly when i am calling action.
>> Is it possible???
>> 
>> i ve used like this also
>> 
>> window.open("itemsNotInPackageReport.action?branchName=" +
>> $('select#branchName option:selected').val());
>> window.print();
>> 
>> but it is printing the empty page but generating the report successfully
>> 
>> action in struts.xml
>> 
>> <action 
>>             	name="itemsNotInPackageReport" 
>>             	method="getItemsNotInPackageReport" 
>>             
>> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
>> <result name="itemsNotInPackageReport" type="jasper">
>>             /jasper/sales/ItemsNotInPackageReport.jasper
>>             itemNameList
>>             PDF		     
>>         </result>
>>         </action>
>> 
>> please help me its urgent for me
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>  		 	   		  
> 

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30951544.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: Integrate JasperReports into a Struts2 web application

Posted by adam pinder <ap...@hotmail.co.uk>.

i'm not sure what tests can be done on the variable created from the window.open - if you can test for it being loaded and are able to issue a print against the actual new window then that would be simplest otherwise...if the call to the jasper report could output an html page containing the report and javascript which is called onload which does the window.print then that would suffice or similar type of functionality


> From: mgainty@hotmail.com
> To: user@struts.apache.org
> Subject: RE: Integrate JasperReports into a Struts2 web application
> Date: Thu, 17 Feb 2011 09:21:36 -0500
> 
> 
> so would assigning the var win=window.open to a Javascript variable and testing win for null work?
> or are you thinking more of iframe communication?
> 
> thanks,
> Martin 
> ______________________________________________ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
> > From: apinder@hotmail.co.uk
> > To: user@struts.apache.org
> > Subject: RE: Integrate JasperReports into a Struts2 web application
> > Date: Thu, 17 Feb 2011 12:07:51 +0000
> > 
> > 
> > 
> > window.open is not a synchronous command and hence the window.print is occurring before the jasper report is actually rendered and you need to issue the window.print on the new window which i doubt it is given you're calling it from the parent window.
> > you need to be able to test that the new window is loaded first, then issue a print on the new window.
> > 
> > > Date: Thu, 17 Feb 2011 02:44:44 -0800
> > > From: nagarjunabattula@gmail.com
> > > To: user@struts.apache.org
> > > Subject: Re: Integrate JasperReports into a Struts2 web application
> > > 
> > > 
> > > hello sir,
> > > 
> > > in my java script file am calling action as follows and it displays the
> > > jasper report.
> > > 
> > > window.open("itemsNotInPackageReport.action?branchName=" +
> > > $('select#branchName option:selected').val());
> > > 
> > > so now i want to send this to printer directly when i am calling action.
> > > Is it possible???
> > > 
> > > i ve used like this also
> > > 
> > > window.open("itemsNotInPackageReport.action?branchName=" +
> > > $('select#branchName option:selected').val());
> > > window.print();
> > > 
> > > but it is printing the empty page but generating the report successfully
> > > 
> > > action in struts.xml
> > > 
> > > <action 
> > >             	name="itemsNotInPackageReport" 
> > >             	method="getItemsNotInPackageReport" 
> > >             
> > > class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> > > <result name="itemsNotInPackageReport" type="jasper">
> > >             /jasper/sales/ItemsNotInPackageReport.jasper
> > >             itemNameList
> > >             PDF		     
> > >         </result>
> > >         </action>
> > > 
> > > please help me its urgent for me
> > > 
> > > -- 
> > > View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> > > Sent from the Struts - User mailing list archive at Nabble.com.
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > > 
> >  		 	   		  
>  		 	   		  
 		 	   		  

RE: Integrate JasperReports into a Struts2 web application

Posted by Martin Gainty <mg...@hotmail.com>.
so would assigning the var win=window.open to a Javascript variable and testing win for null work?
or are you thinking more of iframe communication?

thanks,
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> From: apinder@hotmail.co.uk
> To: user@struts.apache.org
> Subject: RE: Integrate JasperReports into a Struts2 web application
> Date: Thu, 17 Feb 2011 12:07:51 +0000
> 
> 
> 
> window.open is not a synchronous command and hence the window.print is occurring before the jasper report is actually rendered and you need to issue the window.print on the new window which i doubt it is given you're calling it from the parent window.
> you need to be able to test that the new window is loaded first, then issue a print on the new window.
> 
> > Date: Thu, 17 Feb 2011 02:44:44 -0800
> > From: nagarjunabattula@gmail.com
> > To: user@struts.apache.org
> > Subject: Re: Integrate JasperReports into a Struts2 web application
> > 
> > 
> > hello sir,
> > 
> > in my java script file am calling action as follows and it displays the
> > jasper report.
> > 
> > window.open("itemsNotInPackageReport.action?branchName=" +
> > $('select#branchName option:selected').val());
> > 
> > so now i want to send this to printer directly when i am calling action.
> > Is it possible???
> > 
> > i ve used like this also
> > 
> > window.open("itemsNotInPackageReport.action?branchName=" +
> > $('select#branchName option:selected').val());
> > window.print();
> > 
> > but it is printing the empty page but generating the report successfully
> > 
> > action in struts.xml
> > 
> > <action 
> >             	name="itemsNotInPackageReport" 
> >             	method="getItemsNotInPackageReport" 
> >             
> > class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> > <result name="itemsNotInPackageReport" type="jasper">
> >             /jasper/sales/ItemsNotInPackageReport.jasper
> >             itemNameList
> >             PDF		     
> >         </result>
> >         </action>
> > 
> > please help me its urgent for me
> > 
> > -- 
> > View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
>  		 	   		  
 		 	   		  

RE: Integrate JasperReports into a Struts2 web application

Posted by adam pinder <ap...@hotmail.co.uk>.

window.open is not a synchronous command and hence the window.print is occurring before the jasper report is actually rendered and you need to issue the window.print on the new window which i doubt it is given you're calling it from the parent window.
you need to be able to test that the new window is loaded first, then issue a print on the new window.

> Date: Thu, 17 Feb 2011 02:44:44 -0800
> From: nagarjunabattula@gmail.com
> To: user@struts.apache.org
> Subject: Re: Integrate JasperReports into a Struts2 web application
> 
> 
> hello sir,
> 
> in my java script file am calling action as follows and it displays the
> jasper report.
> 
> window.open("itemsNotInPackageReport.action?branchName=" +
> $('select#branchName option:selected').val());
> 
> so now i want to send this to printer directly when i am calling action.
> Is it possible???
> 
> i ve used like this also
> 
> window.open("itemsNotInPackageReport.action?branchName=" +
> $('select#branchName option:selected').val());
> window.print();
> 
> but it is printing the empty page but generating the report successfully
> 
> action in struts.xml
> 
> <action 
>             	name="itemsNotInPackageReport" 
>             	method="getItemsNotInPackageReport" 
>             
> class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
> <result name="itemsNotInPackageReport" type="jasper">
>             /jasper/sales/ItemsNotInPackageReport.jasper
>             itemNameList
>             PDF		     
>         </result>
>         </action>
> 
> please help me its urgent for me
> 
> -- 
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

Re: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
hello sir,

in my java script file am calling action as follows and it displays the
jasper report.

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());

so now i want to send this to printer directly when i am calling action.
Is it possible???

i ve used like this also

window.open("itemsNotInPackageReport.action?branchName=" +
$('select#branchName option:selected').val());
window.print();

but it is printing the empty page but generating the report successfully

action in struts.xml

<action 
            	name="itemsNotInPackageReport" 
            	method="getItemsNotInPackageReport" 
            
class="com.ae.school.web.action.sales.reports.ItemsNotInPackageAction">	
<result name="itemsNotInPackageReport" type="jasper">
            /jasper/sales/ItemsNotInPackageReport.jasper
            itemNameList
            PDF		     
        </result>
        </action>

please help me its urgent for me

-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30948502.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by Frans Thamura <fr...@meruvian.org>.
struts -> jasper -> PDF -> Adobe REader -> Printer

that is the steps

or create HTML TXT -> browse printing.


--
Frans Thamura
Director
Meruvian.
Integrated Hypermedia Java Solution Provider.

Mobile: +628557888699
Blog: http://blogs.mervpolis.com/roller/flatburger (id)

FB: http://www.facebook.com/meruvian
TW: http://www.twitter.com/meruvian / @meruvian
Website: http://www.meruvian.org

"We grow because we share the same belief."



On Thu, Feb 17, 2011 at 10:43 AM, @rju <na...@gmail.com> wrote:
>
> i.e. it is not possible in this struts2-jasper report environment????
> i hav some thing
> "http://helptodeveloper.blogspot.com/2010/02/way-of-printing-jasper-report-at-client.html"
>
> but it is in struts1
> but i ve used struts2.
> i ve used struts2-jasper reports plug-in also
> can u plz solve this...
> in my architecture we are using ajax call for action
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946597.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by "@rju" <na...@gmail.com>.
i.e. it is not possible in this struts2-jasper report environment????
i hav some thing
"http://helptodeveloper.blogspot.com/2010/02/way-of-printing-jasper-report-at-client.html"

but it is in struts1
but i ve used struts2. 
i ve used struts2-jasper reports plug-in also
can u plz solve this...
in my architecture we are using ajax call for action
-- 
View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946597.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Integrate JasperReports into a Struts2 web application

Posted by Frans Thamura <fr...@meruvian.org>.
struts2 is web based, jasper is standalone

if u create as swing that is possible

F


On Thu, Feb 17, 2011 at 10:34 AM, @rju <na...@gmail.com> wrote:
>
> hey can you tell me how to send the jasper report directly to the printer in
> struts2-jasper report environment
> --
> View this message in context: http://old.nabble.com/Integrate-JasperReports-into-a-Struts2-web-application-tp23479814p30946577.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org