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/20 17:06:38 UTC

sending the report directly to the printer

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: 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