How to compress JSP/Servlet output with WebCache?

Hello,
I have an application using servlet/JSP. A request coming from the browser is handle by a servlet, and then forward the processing to a JSP page that produces the response. The requests are like http://host:port/athena/execute/action and we use POST method. It seems WebCache does not compress the output if I specify this compression rule
URL expression: ^/athena/.*$
Method POST
POST Body Expression .*
What's wrong ??
Thanks in advance.

This is already answered in another identical thread.

Similar Messages

  • How to run JSP/Servlet in AIX?

    how to run JSP/Servlet in AIX?
    I am no ideas about it,
    can anyone tell me?
    what webserver i should use?
    have to install JDK?

    The only successful way that I have been able to run servlets in an AIX environment is with the IBM Http Server (specific version of Apache)/WebSphere combination, with WebSphere as the servlet engine. I have tried (unsuccessfully) to use JRun and Apache in AIX environment, but could never get JRun to function properly.

  • How to download alv grid output(with field catalog) into excel file format

    Hi all,
    How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
    Please help.
    Regards,
    Satya.

    Hi,
    On list where alv is displayed, select export icon( green color -> ),select spread sheet.
    This will display records in Excel sheet.

  • How to execute jsp.servlet program in eclipse with small example

    This is sasidhar,
       How to set classpath pf tomcat to eclipse.
    and how to run jsp and servlets in eclipse 3.o
    thanks&regards
    sasidhar

    HI,
    Try these links
    http://help.sap.com/saphelp_nw04/helpdata/en/64/620a2ae361344abf47462809eb5388/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/baba3eb645dc61e10000000a114084/frameset.htm

  • How to put  jsp/servlets on the oc4j and view them with browser

    I have no experience with it.
    perhaps with: localhost:8888/ ???
    witch xml-files must I configure??
    thank you

    I m new in jboss application server with myeclipse plateform.
    im unable to solve this error.which are occured doring the starting of server in my eclipse.
    How to compile jsp project on the plateform of Myeclipse and jboss
    hi :-) this is not eclipse forum and not that sure about your problem but i'll try to answer :-)
    i'm not sure how you create your war but there something wrong with your web.xml. kindly check it :-)
    by d way, you can deploy your project in my-eclipse by
    - right click on the project then select my-eclipse > Add and Remove Project Deployment's
    - a new window will open and you can now configure how you deploy your project :-)
    other alternative edit your jboss-service.xml then put something like this
    <attribute name="URLs">deploy/, file:/D:/workspace/deploy</attribute>
    (note, change the path according to your needs)
    regards,

  • Deploy JSP/Servlet along with EJB

    how could deploy EJB with JSP/Servlet?.
    First i have
    package project.account
    1.HomeInterface class
    2.RemoteInterface class
    3.Bean class
    4.Client class
    I deployed the above bean in J2EE using Deploytool GUI.
    run the client like this
    java -classpath %CLASSPATH%;personDepClientClient.jar project.account.Client
    it displays result at prompt
    what i am asking is
    now i wrote JSP file which is kept also this project.account package
    i used the JSP file as client for the that bean.
    it is Show.jsp file(client file)
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.naming.Context" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.rmi.PortableRemoteObject" %>
    <%
         double balance;
    try
         Context initi = new InitialContext();
         Object ref = initi.lookup("AccountHome");
         AccountHome home = (AccountHome)javax.rmi.PortableRemoteObject.narrow(ref,AccountHome.class);
         AccountRemote vijay = home.create("200","vijay",0.00);
         vijay.credit(2000.0);
         vijay.debit(600);
         balance = vijay.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%
         AccountRemote kumar = home.create("199", "kumar", 0.00);
         kumar.credit(14000);
         AccountRemote xyz = home.findByPrimaryKey("199");
         xyz.debit(200.00);
         balance = xyz.getBalance();
    %>
         <tr>
    <td width="38%" height="31">
    </td>
    <td width="62%" height="31">
    <div align="center"><%= balance %></div>
    </td>
         </tr>
    <%}
    catch(Exception ex)
         System.err.println("Caught an exception." );
    ex.printStackTrace();
    %>
    after deployed this JSP file and executed as
    http://localhost:8000/project/person/Show.jsp
    it displays error as follows
    unable to find AccountRemote,AccountHome,findByPrimaryKey
    How could deploy JSP along with EJB?.
    pls any one tells steps to be followed while Deploying EJB/JSP.
    with thanks
    vijay

    Hmmmm...
    ssniazi does nothing but ask for contact information or recommend Oracle products.
    Based on this I consider it likely that this person is some sort of sales representative either directly or indirectly associated with Oracle.
    I personally wouldn't provide any contact information to this person. Nor would I accept any advice until this person starts to actually provide some solutions or at least correctly reveals any financial interests that they might have.

  • How to use jsp:plugin action with type = bean

    Hi everybody,
    I'm new to JSP so it could be a stupid question but I'm wondering how can I use a jsp:plugin action with a type equal to "bean".
    Everyone is talking about type equal to applet so the browser can display this applet but if the type will be a bean so then
    does it mean I can send a javaBean class to the client?
    If yes, then can the javaBean object be executed on a client machine?
    Or maybe I'm wrong. I don't know how it works.
    Please give me a resolution.
    Thanks,
    Rafal.

    its not working.. it shows exception class not found exception.
    i have placed the jsp and applet class in the same folder. but its not working.
    jsp file path : OracleSpatial\mypackage\webmap.jsp
    applet class : OracleSpatial\mypackage\demoApplet.class
    demoApplet class inside package "mypackage".
    code inside JSP is :
    <jsp:plugin type="applet"
    code="mypackage.demoApplet.class" width = "100%" height = "100%" >
    </jsp:plugin>

  • How to call jsp /servlets running in different web application in tomcat

    hello all,
    i have 2 web applications(Charts and Reports) in the same tomcat,i want to call jsp/servlets running in the Reports webapp from Charts webapp.how do i achieve this.
    thanx
    ravi

    You can also use getContext(String context) in the ServletContext class to get a request dispatcher.
    Using the above example it would be :
    // in a servlet in the charts webapp
    ServletContext context = getServletContext();
    ServletContext reportsContext = context.getContext("/reports");
    RequestDispatcher dispatcher = reportsContext.getRequestDispatcher("/path")
    dispatcher.forward(request, response);Just note, that depending on your server's configuration getContext(...) might return null.

  • How to run JSP/Servlet applications on Apache?

    As we all know that tomcat is an JSP/Servlet engine. Apache is a web server not a JSP/Servlet enabled web server. Then in order to run JSP/Servlet applications on Apache web server on unix, what should I do?
    Thanks.
    James Liu

    Can you give me some detailed information about how to combine Apache and Tomcat? Note, the application is going to run on Sun Solaris Operating System.
    By the way, where do you put your final version of application? on windows or on Unix? on tomcat or on apache?
    I am building the application using tomcat on windows, but now I almost finished the application, so I decide to move it to Unix which uses apache as the web server. But I got problems, the Servlet engine (JServ) can not understand "RequestDispatcher" (an object used to redirect jsp pages).
    Help please.
    James

  • How to replace a "notfound" output with a null value?

    hi,
    I'm just getting a output of "Rows Notfound" for a script..
    instead of this , i just need to show the output with a record as null value or some value..
    do we have any option to use this in oracle..

    Apart from capturing with an exception in PL/SQL code, if you're wanting something in a script as pure SQL, you'd have to generate an additional row and only select that where no data is found e.g...
    SQL> ed
    Wrote file afiedt.buf
      1  select ename from emp where ename = 'FRED'
      2  union all
      3* select 'No Data' from dual where not exists (select * from emp where ename = 'FRED')
    SQL> /
    ENAME
    No Data
    SQL>Of course this does effectively double-up on the queries being executed, so if you're dealing with a heavily complex query, it may be best just just have the regular exception come out, but then this will also depend on your actual requirements and why you want to do this in the first place.

  • How to call JSP that outputs XML without HTTP request

    It should be a simple solution but I can't seem to find a concise recommendation anywhere. We are building a B2B subsytem for our app and we need to send XML to our vendor. I'm evaluating the possibility of using JSPs for that and everything looks good until the time you actually want to invoke it. It's obvious how to code the JSP itself, but I'm looking for an efficient way to call it to generate XML. We do not have an HTTP request or a servlet, the communication is on the EJB level. So I can't get a RequestDispatcher for example, and we don�t have HttpServletRequest/HttpServletResponse either. It is NOT a servlet or JSP calling another JSP, it's a regular Java class or EJB.
    Ideally, I would rather bypass the whole HTTP infrastructure and just use JSP as a formatter. So it boils to a question of how to invoke it and how to pass the parameters without HTTP session or request. One of the alternatives we are reviewing is using XSP but we would prefer JSPs if we can figure out how to call it efficiently. HttpUrlConnection is not a good option, we'd like a direct call.
    Any suggestions will be greatly appreciated.

    Thanks for the response. Let me clarify the requirements for the question. The way we are supposed to send XML to the vendor is via CORBA (don't ask me why:-) where the only parameter essentially is a string containing the XML document. So the quesiton is not how to send it to the vendor, but how to format our JavaBeans into XML.
    We can't use JAXB because it doesn't support schema. We tried a few libraries out there but they stumble on our schema and we can't change it because it comes from the vendor. So it sounds like our only choice for today is to generate XML ourselves.
    The data is stored in JavaBean packet objects and that's our input. Our output should be a string with XML document conforming to the schema. Posting a request to ourselves will of course work, but that's too much unnecessary overhead. Another option is implementing HttpServletRequest and HttpServletResponse and calling service method directly. Better suggestions?

  • Controlling JSP/servlet output buffering

    I'm doing some performance testing on some JSPs and I need to be able
              to separate client side rendering/javascript execution time from
              server side execution of the (JSP-generated) servlet.
              The normal way for the servlet generated from the JSP to behave is
              that the output stream to the browser is buffered - that is, as the
              servlet generates output it is written to the buffer in chunks and the
              buffer is written to the browser in chunks. On all but the shortest
              pages the content from the bottom of the JSP hasn't even been
              generated yet at the time the buffer starts writing to the browser.
              I want to turn this behavior off. I want no output sent to the browser
              until the whole output is generated. This way I can put timers in my
              client side Javascript and know they are measuring only the client
              side execution time, not the server side.
              Does anyone know how to do this?
              Eliot Stock
              Premiere Retail Networks
              San Francisco
              

    Hi Eliot,
              you can use the page directive's buffer and autoFlush attributes to
              control the size of the output buffer.
              <%@ page buffer="100kb" autoFlush="false" %>
              Here's a link:
              http://java.sun.com/products/jsp/tags/10/syntaxref10.fm7.html
              Nils
              Eliot Stock wrote:
              >
              > I'm doing some performance testing on some JSPs and I need to be able
              > to separate client side rendering/javascript execution time from
              > server side execution of the (JSP-generated) servlet.
              >
              > The normal way for the servlet generated from the JSP to behave is
              > that the output stream to the browser is buffered - that is, as the
              > servlet generates output it is written to the buffer in chunks and the
              > buffer is written to the browser in chunks. On all but the shortest
              > pages the content from the bottom of the JSP hasn't even been
              > generated yet at the time the buffer starts writing to the browser.
              >
              > I want to turn this behavior off. I want no output sent to the browser
              > until the whole output is generated. This way I can put timers in my
              > client side Javascript and know they are measuring only the client
              > side execution time, not the server side.
              >
              > Does anyone know how to do this?
              >
              > Eliot Stock
              > Premiere Retail Networks
              > San Francisco
              ============================
              [email protected]
              

  • How to trigger a TTL output with an analog input

    Hello,
    I have an apparatus for measuring the flame speed of various hydrocarbon/air mixtures.  The chamber uses central ignition as the means for igniting the mixture.  My goal is to film the ignition process with a high speed Phantom video camera.  I control the ignition with an analog output signal from a SCC-68 DAQ.  I would like to trigger the camera with the same signal that triggers the ignition sequence.  The camera is triggered with one TTL pulse so ideally I would connect the output analog voltage signal to an input analog voltage port that would be used to trigger a counter output that generates one pulse.
    I have a sample VI that triggers a digital pulse each time the analog trigger level is met and it works for what I am trying to do but I do not understand how the two channels are connected. I also can't figure out how to make the VI end after just one pulse.  In the VI the digital counter is supposedly triggered using the /Dev1/ai/StartTrigger slot on the DAQ but nothing is connected to this slot.
    I need to first figure out how to make the output_pulses_on_sine_wave.vi terminate after a single pulse is generated. Then I can try to incorporate it into the VI that I use to control the ignition and measure the temperature and pressure once the mixture is ignited.
    John
    Attachments:
    output_pulses_on_sine_wave.vi ‏27 KB

    I am using the USB-6259, sorry for the confusion.  I would be nice if I could trigger with an analog signal to the ignition system but it is controlled with a high voltage relay that operates when 12 volts are supplied to it. It really isn't a trigger as much as powering on the high voltage relay. To control it, I have a 12 V supply line that is switched closed using a SCC-RLY module.  Could I somehow connect the 12 V supply to one of the buses and use a digital trigger to supply the 12V on command to the high voltage relay?
    Thanks for the quick response. 

  • How to download the ALV output with colors into the excel sheet

    Hi,
      I'm having an ALV Grid report output where each and every row has some colors in it. When i download it to an excel sheet whatever the colors that comes on the output of the report the same should come in the excel sheet. When i download the output to an excel sheet using List --> Export -->Local file . If i open the excel files no colors are coming in the excel sheet.
    can anyone tell how to get the colors in the excel sheet also. thanks...
    Regards,
    Rose.

    Hi Camila,
    Use the OLE concept.
    Check the below threads:
    Colors in Excel Sheet
    colors in alv
    Regards,
    Soumya.

  • How to read web services output with PHP

    Hello,
    I have a successful web service running from the tutorial provided by labview. The data does display when accessing the local URL with no issues. My problem is when I try to read the data using php I get a blank page. I have tried XML and json output. The json output stalls the page from loading and eventually I get a error 500 in IE. Any help would be greatly appreciated.

    Hello Kud,
    Can you verify that you see data when using HTTP Get?  You can find this function from Data Communication >> Protocol >> HTTP Client.
    For example:
    If so, this really is a PHP issue rather than a National Instruments/LabVIEW.  Take a look at this for more help.
    Thanks,
    Lisa
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Ipod Shuffle STRANGE problem

    Hi: There is something strange with my shuffle, the first time when I bought it apparently it was working fine on my computer, but later when I was trying to add more music, I began to have problems. First, there was an orange flashing light on it an

  • Can anyone help me find a download for 10.6.3 so I can download music on iphone from itunes?

    I have updated my software on both the my macpro, as well as my itunes account supposedly.....but I am still being told my iphone 4 is not compatible with the software I am currently using, and that I need to go to itunes to download the latest versi

  • Warning BEA-2156203 JEE5 Version in Weblogic Server 10.3.6

    Hi, when I start the Weblogic Admin Server for studio domain, there appears the below warning: <27-nov-2013 13H34' CET> <Warning> <Munger> <BEA-2156203> <A version attribute was not found in element application in the deployment descriptor in C:\OEID

  • Counting letters in a word

    I am using lingo to count and display letters in a word but my script is stuck on a point. Can any help to solve this? property  SpriteNum global  gCurrentCounter, CurrentWord, lettersofCurrentWord, sSoundName On  MouseDown me  if  gCurrentCounter <

  • I cannot select a previous page without scrolling through all of them

    The latest version 4 does not seem to have an option to select a previous page from a drop down list, alongside the forward/back buttons top left of page