Jasper report in Jdev adf

dear all,
i'm now trying to integrate jasper report in ADF..
and i'm try to code this code at bean..but its error..
public void runOracleReport(ActionEvent actionEvent) {
JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(PopulateBean.createBeanCollection());
Map parameters = new HashMap();
parameters.put("branchval", getBranchId());
try
InputStream input = new FileInputStream(new File("C:\\Users\\user\\.ireport\\4.7.0\\config\\Templates\\Report\\GenerateOfferLetter.jrxml"));
OutputStream os = new FileOutputStream(new File("C:\\Users\\user\\Desktop\\ICEMS\\Report\\offerLetter.pdf"));
JasperDesign jasperDesign = JRXmlLoader.load(input);
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
JasperExportManager.exportReportToPdfStream(jasperPrint, os);
JasperViewer.viewReport(jasperPrint, false);
catch (JRException e) {e.printStackTrace();}
catch (Exception e) {e.printStackTrace();}
is it any connection code that i have to write..
Thank you

thank you very2 much..it helps me al lot..
2 questions taht i confused:
1: Is it query at adf must be same at query jasper?
2: Is it this code is valid code when i want to call more than parameters:
Map parameters = new HashMap();
parameters.put("branchval", getBranchId());
parameters.put("degreeVal", getDegreeId());
parameters.put("intakeVal", getIntakeId());
parameters.put("typeOfferVal", getTypeOfferId());
parameters.put("jasperParamenterName", "ParameterValue"); Used if you want to pass a parameter to a jasper report
JasperPrint print = JasperFillManager.fillReport(report, parameters, conn);
Thank you

Similar Messages

  • ADF 11G: opening PDF into new Window using Jasper Report

    Hello, I am using JDev 11.1.1.5.0
    I have a page into a bound Task FLow containing a table and a "print "button".
    I am using Jasper Report to create a PDF document.
    I want this document to be opened into a new Window when the user click on the button.
    I've been reading several threads/blogs to do this but it is not working.
    please help me out with the sample or some link where I can refer.
    Thanks
    Sanjeev

    Hi All,
    Today I checked and got the Reason why Server is getting shut down while closing the Report window.... this is just because of JasperViewer.
    so while opening the JasperViewer to show the Report we need to pass the second parameter as False.
    JasperViewer.viewReport(jasperPrint,false);k thanks for your update....
    but still my actual problem exist....
    I don't want to use JasperViewer to view the Report.
    Like when I'm clicking on Button PDF Report is opening in the same Winodw.
                    response.setHeader("Content-Disposition",
                                       "inline; filename=\"ReportFile.pdf\"");it will open as attachment if I'll use the below code and my ShowReport Button is getting disabled....
                    response.setHeader("Content-Disposition",
                                       "attachement; filename=\"ReportFile.pdf\"");As in Page ShowReport Button is getting disabled so after exporting the Report I want to redirect to the page but getting Error like Illegal State Exception: Response Already Commiteed
    Error Log:
    java.lang.IllegalStateException: Response already committed
         at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1608)
         at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:834)
         at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
         at view.org.webcenter.sample.view.servlet.JasperServlet.doPost(JasperServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at org.webcenter.sample.view.bean.JasperReport.callServlet(JasperReport.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)please help me out with the sample or some link where I can refer, its very important.
    Thanks
    Sanjeev
    Edited by: Sanjeev on Jun 5, 2013 10:50 PM

  • Problem in debuging jasper reports and ADF

    Hi
    I am using JDeveloper 11.1.2.2.0. Inside I created Fusion Web Application ADF, and on the index page created Go button. Now I created Servlet with doGet methode and conncected it to Go button. It is working OK.
    Now I want to run simple jasper report from servlet. Jasper report is based on empty dataset. Here is servlet code:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    ServletOutputStream servletOutputStream =response.getOutputStream();
    InputStream reportStream = getServletConfig().getServletContext()
    .getResourceAsStream("C:/Users/myDomain/Desktop/Reporting/ReportPDFPrazan.jasper");
    try
    JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream,null, new JREmptyDataSource());
    response.setContentType(CONTENT_TYPE);
    servletOutputStream.flush();
    servletOutputStream.close();
    catch (JRException e)
    // display stack trace in the browser
    StringWriter stringWriter = new StringWriter();
    PrintWriter printWriter = new PrintWriter(stringWriter);
    e.printStackTrace(printWriter);
    response.setContentType("text/plain");
    response.getOutputStream().print(stringWriter.toString());
    When I hit Go button here what I get:
    java.lang.NullPointerException
         at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2265)
         at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2278)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2749)
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:779)
         at java.io.ObjectInputStream.(ObjectInputStream.java:279)
         at net.sf.jasperreports.engine.util.ContextClassLoaderObjectInputStream.(ContextClassLoaderObjectInputStream.java:53)
         at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:214)
         at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:632)
         at net.sf.jasperreports.engine.JasperRunManager.runToPdfStream(JasperRunManager.java:428)
         at net.sf.jasperreports.engine.JasperRunManager.runReportToPdfStream(JasperRunManager.java:849)
         at view.com.lanaco.servlets.PrviServlet.doGet(PrviServlet.java:35)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    and so on(I can put whole stack if necery)
    I also imported this libraries inside ViewControl project:
         Jasperreports-4.7.1.jar
         Commons-beanutils-1.8.0.jar
         Commons-collections-2.1.1.jar
         Commons-digester-2.1.jar
         Commons-logging-1.1.1.jar
         IText-2.1.7.jar
         Groovy-all-1.7.5.jar
         Poi-3.7-20101029.jar
    Can someone help me with debuging. Please
    Edited by: MarcusO on 2012.10.23 05:18

    I found solution. It should be used like this:
    InputStream reportStream = new FileInputStream(new File("C:/Users/myDomain/Desktop/Reporting/ReportPDFPrazan.jasper"));
    So problem was in input stream. It works fine now.

  • Call to Jasper Report from a jsf only? Or can v use a jsff page?.

    Hi,
    I am new to JDev and ADF. I have a application using ADF . I have created Jasper reports as well and trying to  Integrate the Reports .
    If i make a call to the Jasper Report with a small dummy application it works.
    But if i do the same from within the application it doesn work.
    Should we make a call to the Jasper Report from a jsf only? Or can v use a jsff page?.
    Waiting for answers. thanks in advance

    Should we make a call to the Jasper Report from a jsf only? Or can v use a jsff page?.
    This usually doesn't matter.
    You will probably need to post some code so we can see how you generate and display report.
    Dario

  • Open Jasper Report in new page using servlet

    Guys,
    Looks very simple but i am having problem making this process work. I am using 11.1.1.4
    This is my use case:
    - From a employee page, user clicks on a menu item to open report for current employee. I need to pass appropriate report parameters to servlet and open report into new page.
    I can successfully call servlet using commandmenuitem and set request parameters and call servlet from backing bean.... but that doesn't open report in a new page.... any way i can do this?
    Another option i tried was that using gomenuitem and setting target=blank but in that case i need to pass the parameter using servlet url which i like to avoid.(in case i need to pass many parameters in future) (also values will be set on page so i need to generate url when then click the menuitem...... so there are some hoops and loops i need to go through) I don't know a way to pass the request parameter using backing bean to servlet... i don't think it is possible.
    Those are the two approaches i tried.
    If you have any better approach...I would appreciate if you can let me know. (i have searched on internet for two days now.... for the solution)
    -R
    Edited by: polo on Dec 13, 2011 7:22 AM

    Hi,
    Hope following will useful
    http://sameh-nassar.blogspot.com/2009/10/using-jasper-reports-with-jdeveloper.html
    http://www.gebs.ro/blog/oracle/jasper-reports-in-adf/

  • How can I print a report in JDev 11g TP4

    I am using JDev 11g TP4 .. in ADF application how can I print a report?
    Thank you
    Sameh Shokry

    You do file->print from your browser's menu I guess.
    There is also this:
    http://one-size-doesnt-fit-all.blogspot.com/2008/03/creating-printer-friendly-jdev-adf.html

  • How to deploy Jdeveloper application to war file using jasper reports?

    Hello people,
    I´m not sure I this is the right place to ask, but I really need help.
    I´m using Jdeve 10.1.3.2
    My application is working perfectly. However when I deploy to war file in publish it into application server OC4J. I can´t print report.
    the error says that it can´t find jrxml file.
    I´ve tried to deploy report´s files with the applicaiton. I´ve tried just to set the path of the jrxml file. but nothing works.
    How can I deploy my applicattion to use Jasper reports correctly?
    Thanks willian

    Hi,
    I think first you need to wrap it into an EAR file, then you can deploy it.
    As far as I know standalone deployment of WAR is deprecated as of 640.
    similar threads:
    How to deploy .war on NWDI
    Deploying an existing WAR file into the Portal
    Hopefully this tutorial also gives some idea:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Regards,
    Ervin

  • What is a report to bind adf

    HI     I would like to hails every member OTN forum and i have a query i hope to get answear her
    i am using JDEVELOPER 11G (win xp 32 platform)   to develop applications
    my query is what is REPORT can binds to( ADF JDEVELOPER)
    is it (BI PUBLISHER)  but bi publisher is not free

    you can use jasper report as well
    http://sameh-nassar.blogspot.de/2012/12/using-jasper-report-in-adf-application.html

  • Jasper report on HTML when one image loaded from database and for the other

    How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
    My code
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
              exporter = new JRHtmlExporter();
              exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
              exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
              exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
         exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
         exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
         exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
         exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
              exporter.exportReport();
              byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();
    Can any one help pls
    Message was edited by:
    ameet.au

    hey sorry for posting it in this forum.
    but do u have sample code for making it work.. since i am able to do it on PDF format(image from Database and another stored in the webserver) using
    byte image[] =(byte[]) outData.get("image");
                        ByteArrayInputStream img = new ByteArrayInputStream(image);
                        hmimg.put("P_PARAMV3", img);
    print = JasperFillManager.fillReport(reportFileName, hmimg, jrxmlds);
    bdata= JasperExportManager.exportReportToPdf(print);

  • How to generate jasper report in pdf format using swing

    hi all,
    im new to swing and jasper.. can anybody provide me some example on how to generate the jasper report in pdf format? i will call the reportManager from sessionBean.. below is my code:
    1)delegate:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    GenerateReportDto generateReportDto = getAuditTrailServiceRemote().generateIntoPdfReport(fileName, outputFileName, parameters);
    return generateReportDto;
    2)sessionBean:
    public GenerateReportDto generateIntoPdfReport(String fileName, String outputFileName, Map parameters){
    //Map parameters = new HashMap();
    ReportManager reportManager = new ReportManager();
    3)ReportManager()
    public void generateIntoPdfReport(String fileName, String outputFileName, Map parameters) {
              Connection conn = null;
              try {
                   conn = dataSource.getConnection();
                   //Generate the report to bytes
                   File reportFile = new File(fileName);               
                   byte[] bytes =
                        JasperRunManager.runReportToPdf(
                             reportFile.getPath(),
                             parameters,
                             conn
              //conn.close();
              //Write the bytes to a file
              ByteBuffer buf = ByteBuffer.wrap(bytes);
              File file = new File(outputFileName);
              // (if the file exists)
              boolean append = false;
              // Create a writable file channel
              FileChannel wChannel = new FileOutputStream(file, append).getChannel();
              // Write the ByteBuffer contents; the bytes between the ByteBuffer's
              // position and the limit is written to the file
              wChannel.write(buf);
              // Close the file
              wChannel.close();
              } finally {
                   if (conn != null) {
    conn.close();
    Any help would be highly appreciated. Thanks in advance

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • Jasper report with Struts2 and hibernate.

    Hey all!
    I'm new to Struts2, Hibernate and jasper report. I want to make a report using those tools. Can anybody pls help me by providing a step by step process for it?
    I'm using eclipse Ganymede IDE. And want to view report on page with two search criteria as start date to end date and an option choosing.
    Can any body pls response me for this?

    Yes you can, you'll need to create a new library in JDeveloper with the Jasper reports JARs.
    See: Re: JasperReport with Jdeveloper

  • Jasper Reports in Linux vs Jasper Reports in Windows

    Dear Sirs...
    an application is developed using jdeveloper 10.1.2 (struts with UIX technology) and used Jasper report to generated PDF and HTML reports programmatically (no XML files for reports tamplates are used).
    in jdeveloper PDF reports are generated without problem,
    i create a WAR file and deploy it to oracle application server R2 under windows, it works just fine.
    that same WAR file is deployed into linux (again oracle application server R2), this time an exception occurs,
    i only selected two jar files (jasperreports.jar and itext.jar) to be included into the war file.
    now can any one explain to me why it runs perfectly fine in windows AS and not linux AS???? aren't both of them use the same java virtual machine????
    any advice please???
    best regards

    sorry i forget to post the error in linux, the log contains the following:
    net.sf.jasperreports.engine.JRException: Error
    compiling report java source files :
    /home/oracle/OraHome/j2ee/home/EasyJasperDesign_1192848437309_635467.java
    best regards

  • Jasper report

    i have table name student in my MS access data base. student have column name class,section, rollno,studdof... etc . Class Field contains data I ,II,III Std. etc similar to section contains A,B,C etc i want to generate a jasper report by selecting particular class,section eg. i am selecting class I and section B using combobox my problem is that how to pass this condition in java pro to generate jasper report for particulas class and section
    Edited by: faizan on Jun 9, 2008 11:53 PM

    Those extra pieces are from my program and there just to show where I was getting the variables to pass to the map.
    You can replace them with your our variables you need for your reports.

  • Jasper report s

    Hi can someone plz tell me integration of ireport with Myeclipse
    or how can i use jasper report as i want reports to hav output in pdf and html and i'm using spring/hibernate as persistence .
    thanks in advance.

    Hi Shariff,
    have you already googled for "apex integrate jasper"? It returns several how-to's.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to open Jasper report in New window (new Browser,new Tab)

    Hi,
    I'm Using oracle jdeveloper 11.1.1.4.0 fusion middleware for Jasper report. i want to open the Jasper report in new window
    In Application On click of CommandMenuItem(ExportToHTML)it opens the New Window,.While opnening this window i want to call a method (This method opens the jasper report in current browser)
    I Tried the afterPhase and beforePhase for this but doesnt work for me.while executing this using beforePhase I'm getting following Exception :
    Pls Help on this.Thanks in Advance......!!
    Java.lang.IllegalStateException: strict servlet API: cannot call getOutputStream() after getWriter()
    at weblogic.servlet.internal.ServletResponseImpl.getOutputStream(ServletResponseImpl.java:280)
    at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:112)
    at ReportsDisplayBean.exportHtmlReport(ReportsDisplayBean.java:272)Is any other way to do this ? :(
    Thanks.

    Hi,
    The view itself is a Web Part called an XSLT List View Web Part (XLV for short). This Web Part is stored on an ASPX page that is by default associated with a list or library on your site.
    I suggest you can check if the view page is valid, also, you can try to create another view, then redirect to the view page to see if there is xslt in the page.
    Here are some detailed articels for your reference:
    Create a custom list view using SharePoint Designer
    Using SharePoint Designer 2010 to Work with Web Parts
    How to: Customize the Rendering of a Field on a List View
    Best Regards
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for

  • Can't Mount Second Partition on External Hard Drive

    I have a 1 TB Seagate External HD that I have two partitions on...a 700 GB one for Time Machine and 300 GB for my personal files (called Nick's External). I was initially having trouble with it and transferred the files from the Nick's External parti

  • Open NAT Type help ( CISCO WRV210 )

    Hello, can anyone help me open my NAT Type? it says my NAT Types : 2 and that it is Moderate,i really really really want to open it , I Tried going to the Small Business webpage and I Couldn't find anything that's why I came back here, could anynone

  • Received message that iTunes account was disabled without the reason provided

    Received message that iTunes account was disabled;  specific reason not cited

  • Can Flash do true vector graphics?

    I created a drawing in Flash with the pen tool and paint bucket. Some of the drawing I may have used the line segment tool and connected the points. Other parts of the drawing I may have started with a circle, added points, and strecthed parts to mak

  • Re:f01 transaction

    Hi Experts, i need to take output values from the transaction 'F.01' for that i have used the submit keyword in my zreport but it is showing the o/p screen(i.e nothing screen which i have seen in the transaction 'F.01') in my custom report so i have