permaculture playing cards
The moose likes JSP and the fly likes how i use ServletOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how i use ServletOutputStream " Watch "how i use ServletOutputStream " New topic

how i use ServletOutputStream

muhammad fahim
Ranch Hand

Joined: Dec 17, 2006
Posts: 45
hi master
sir i wnat open jasperviewer at client side

i serach in net then i found many tip
one friend give me idea i create

class and call through button

but sir how i call this class from jsp button
when i press button call this class

please give me idea



[ July 14, 2007: Message edited by: Bear Bibeault ]

[BSouther: Added UBB CODE tags]
[ July 15, 2007: Message edited by: Ben Souther ]
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
why you need to open the report in JasperViewer? The client must have to install JasperViewer if you want to open in it. Just send it back to the client as PDF, which you have done ... i,e

The only thing missing is to call this servlet. Put a form tag in your HTML/JSP page and call the very servlet from there according to your servlet mapping in web.xml

The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
I agree. Here's the link:
subject: how i use ServletOutputStream
It's not a secret anymore!