Error n downloding files from  jsp

Dear all
hiiiiii
this my code
ServletOutputStream outs2 =response.getOutputStream();
FileInputStream fis = new FileInputStream(file path which i need to download);
response.setBufferSize((int)f.length());
int c=-1;
while ((c= fis.read()) != -1)
outs2.write(c);
outs2.flush();
outs2.close();
if file is zip file
the problem when client download file and open it direct without save it ,it give him error that win can not find file
if i make sendredirect on file it work ok but i nedd to download file out of application on another driver here i cant make sendredirect

Depending on how you are generating the Excel file there are different solutions.
If you are generating the Excel file using contentType="application/vnd.ms-excel" and HTML tables, then you can use the following attribute on the cell you wish to format:
<TD style="vnd.ms-excel.numberformat:#,##0;">24.562234</TD>where the #,##0 corresponds to the format you wish to present the data in.

Similar Messages

  • Error n downloding files from  jsp 2 client

    Dear all
    hiiiiii
    this my code
    ServletOutputStream outs2 =response.getOutputStream();
    FileInputStream fis = new FileInputStream(file path which i need to download);
    response.setBufferSize((int)f.length());
    int c=-1;
    while ((c= fis.read()) != -1)
    outs2.write(c);
    outs2.flush();
    outs2.close();
    if file is zip file
    the problem when client download file and open it direct without save it ,it give him error that win can not find file
    if i make sendredirect on file it work ok but i need to download file out of application on another driver here i cant make sendredirect
    sendredirect --------> relative 2 application path
    if any one have any idea plz replay

    I'm afraid screenshots wouldn't be too exciting or helpful in this case...it was just an error saying that that Windows couldn't determine the helper program for .PLT files.  After running traces with Procmon on a working system and a non-working system, I was able to get my test system working by importing the following keys from the "good system":
    [HKEY_CURRENT_USER\Software\Classes\.PLT]
    @="PlotFile"
    "Content Type"="application/vnd.hp-HPGL"
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.plt\OpenWithList]
    "a"="iexplore.exe"
    "MRUList"="a"
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.plt\OpenWithProgids]
    "PlotFile"=hex(0):
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.plt\UserChoice]
    "Progid"="Applications\\iexplore.exe"
    This seems like a clumsy fix/hack and I'm looking at SAP for being the bad guy.  Why doesn't it understand/look at definitions for .PLT in HKCR?  If I can open a .PLT from Windows Explorer, SAP should be able to do the same.  Thankfully, we won't be putting .PLT files in our new SAP implementation, so hopefully I never have to deal with this problem again.
    Thanks.

  • "Error retrieving xml file from database"

    Hello All,
    I have installed and configured planning with Shared services. While I try to create an instance in Configuration Utility by entering the Instance Name, Host Name, Port (8300) and Click "Next", I get this error -
    *"System failure:Error retrieving xml file from database".*
    My RDBMS is - SQL Server 2005
    OS - Windows 2003 Server
    I am unable to work on planning for few months due to this error.. I would sincerely appreciate if someone can provide me a solution for this..
    Thanks much,
    Varma.

    Hi,
    Ive seen this before.
    If this is a new environment could you create a blank database and configure it as your System database? Then try again and you should be fine.
    I think you may have some invalid entries in your sys database.
    Seb
    www.taysols.com.au

  • When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. pleas

    When I load Illustrator creative suit (5.5) on my new computer, it loads Then I put in the serial number, which is correct, but when i go to click on the program to use it it says ERROR: localized resource file from this program could not be loaded. please re install of repair the application and try again. I have done this and it's still not working                  

    anomaly jade,
    You only need to use the serial number during installation.
    Have you, at least seemingly, been able to install, and then you are unable to start up?
    If that is the case, you could try to reinstall using the full three step way:
    Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • How to call java class file from jsp

    hi
    we need to call java classes (which are written separately in .java file )from jsp file. we need it for our project if anyone knows about please reply us.
    bye
    siva sankari

    you can call the methods in a lot of ways. you could use scriptlets with the
    <%@ page import="package.class"%> and then inside instantiate an object
    <%
         MyClass mc = new MyClass(parameters if any);
         mc.theMethodYouWantToCall();
    %>or as Madathil has stated,
    or use the JSP tags
    <jsp:useBean id="anyname" class="classname"/>and then use the getProperty tag
    or even Custom Tags

  • MulticastSocket Multicast socket receive error: java.lang.RuntimeException: I/O error opening JAR file from file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar

    Hi,
              I need some help.
              Product=weblogic5.1.0
              Revision=(Release Level)=
              Problem Description=
              I am doing cluster of weblogic server, I have no problem to set up the
              cluster and to run servlet and EJB examples.
              However, on my command line for startcluster I got a lot of message as
              followed:
              Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket receive
              error: java.lang.RuntimeException: I/O error opening JAR file from
              file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              java.util.zip.ZipException: error in opening zip file
              at java.util.zip.ZipFile.open(Native Method)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              .java, Compiled Code)
              at
              weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              , Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              StreamBase.java, Compiled Code)
              at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              jectInputStreamBase.java, Compiled Co
              de)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              treamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              tStreamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              eamBase.java, Compiled Code)
              at
              weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              treamBase.java, Compiled Code)
              at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              Code)
              The message freshed about every 20 seconds.
              Another question, I used a iplanet web server as a proxy server with a
              cluster of two weblogic servers pluged in, although I set
              weblogic.properties to round-robin, however, when I run a fibonacci servlet,
              it does not do the round-robin. It always go to one machine for a lot of
              times. Any idea?
              Thank you for your help.
              Tom
              

    May i presume that your cluster is configured on a shared file system?.
              I have seen this problem only if you cluster is configured on different machines
              and if the directory structure is not identical.
              let us know..
              Kumar
              Cameron Purdy wrote:
              > First, update to SP4 (or SP5 if it is out now). Second, follow the cluster
              > instructions on setting up deployments for a cluster. The only
              > implementation that I have used is the single shared location that all the
              > servers load from.
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              > "Tom Gan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hi,
              > > I need some help.
              > >
              > > Product=weblogic5.1.0
              > > Revision=(Release Level)=
              > > Problem Description=
              > > I am doing cluster of weblogic server, I have no problem to set up the
              > > cluster and to run servlet and EJB examples.
              > > However, on my command line for startcluster I got a lot of message as
              > > followed:
              > > Fri Aug 18 11:31:44 EDT 2000:<E> <MulticastSocket> Multicast socket
              > receive
              > > error: java.lang.RuntimeException: I/O error opening JAR file from
              > > file:/D:/weblogic/mycluster/server86/tmp_deployments/ejbjar-17327.jar
              > > java.util.zip.ZipException: error in opening zip file
              > > at java.util.zip.ZipFile.open(Native Method)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at java.util.zip.ZipFile.<init>(ZipFile.java, Compiled Code)
              > > at weblogic.boot.ServerClassLoader.deploy(ServerClassLoader.java,
              > > Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.expandClassPath(AnnotatedServiceOffer
              > > .java, Compiled Code)
              > > at
              > >
              > weblogic.cluster.AnnotatedServiceOffer.readObject(AnnotatedServiceOffer.java
              > > , Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readArrayList(WLObjectInput
              > > StreamBase.java, Compiled Code)
              > > at weblogic.cluster.StateDump.readObject(StateDump.java, Compiled
              > > Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readPublicSerializable(WLOb
              > > jectInputStreamBase.java, Compiled Co
              > > de)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readLeftover(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(WLObjectInpu
              > > tStreamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObject(WLObjectInputStr
              > > eamBase.java, Compiled Code)
              > > at
              > >
              > weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(WLObjectInputS
              > > treamBase.java, Compiled Code)
              > > at weblogic.cluster.TMSocket.execute(TMSocket.java, Compiled Code)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
              > > Code)
              > >
              > > The message freshed about every 20 seconds.
              > >
              > > Another question, I used a iplanet web server as a proxy server with a
              > > cluster of two weblogic servers pluged in, although I set
              > > weblogic.properties to round-robin, however, when I run a fibonacci
              > servlet,
              > > it does not do the round-robin. It always go to one machine for a lot of
              > > times. Any idea?
              > > Thank you for your help.
              > > Tom
              > >
              > >
              > >
              

  • Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Hey corrafromlondon,
    Thanks for the question. After reviewing your post, it sounds like the installer file isn't working. Have you tried deleting the installer and redownloading the installer? I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    How to install OS X Yosemite on your Mac - Apple Support
    you can find the Yosemite installer app in your Applications folder or Launchpad. 
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Forwarding to an xml file from jsp page

    hi
    i am subhash. i have problem in forwarding an xml file from jsp page.
    i have a jsp page in which i have a button. upon click, its form method is triggered and the action is set to "serverpage.jsp". In that jsp page i have to move to an xml file. I would like u to send a sample code also for the same.
    Thank You,
    Subhash..

    Refer to the Generating XML from JSP section.
    http://java.sun.com/developer/technicalArticles/xml/WebAppDev2/

  • File upload error: Error uploading file. Error moving uploaded file from temporary folder. (FILE_UPL

    what causes this error:
    File upload error: Error uploading file. Error moving uploaded file from temporary folder. (FILE_UPLOAD_ERROR)

    On 5/17/07 4:26 PM, in article [email protected],
    "Gü[email protected]" <> wrote:
    >
    > To my experience servers behave differently -- on some I really had to use
    > 777, others are happy with 755.
    >
    > in regards to "any user" :: On most ADDT respectively MX Kollection - based
    > backends I made the image & file upload feature available to user having e.g.
    > the "levels" 1 & 2, but not 3 -- I wouldn´t expose something like this to all
    > users
    >
    > Günter Schenk
    > Adobe Community Expert, Dreamweaver
    My backend is only for admin, so they are the only ones who can access the
    upload pages. My concern is an images folder on the site being 777. Can't
    anyone from the outside plant a file in that folder if they just know where
    to find it using an ftp program? ?

  • Running an exe file from jsp

    Hi,
    Do you know a way to run the "startup.exe" Tomcat file from jsp?
    I have to start and stop a server remotely.
    Max

    public Process pFiglio;
    Runtime rt = Runtime.getRuntime();
    pFiglio = rt.exec("c:\\Tomcat\\startup.exe ");
    then you can have
    pFiglio.waitFor();
    iEsito = pFiglio.exitValue();
    pFiglio.destroy();
    Look at specification:
    http://java.sun.com/j2se/1.5.0/docs/api/
    Look class "Runtime" and "Process".
    Ema

  • Error parsing XML file from a HttpServletRequest using JAXP

    Hi,
    I am trying to generate an XML file from an HttpServletRequest. I am actually using file uploading method in JSP to send the XML file. I think the parser isnt able to correctly identify the XML file from the message body and hence it is giving some strange error messages. Has anyone of u managed to solve this problem ?
    Code snippet:
    //now build an XML document from the requested input stream
    InputStream in = myRequest.getInputStream();
    try {
    myDocRequest = myParser.parse(in);
    } catch (Throwable t) {
    throw new Exception("Could not build document",t);
    Error message is:
    [Fatal Error] :1:1: Content is not allowed in prolog.
    java.lang.Exception: Could not build document
    at XMLUtil.<init>(XMLUtil.java:91)
    at WCS.doPost(WCS.java:44)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at XMLUtil.<init>(XMLUtil.java:89)
    ... 20 more
    Actually if i just print out the message, it gives something like this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <GetCapabilities version="1.0.0" service="wcs">
    <section>/WCS_Capabilities/Capability</section>
    </GetCapabilities>
    -----------------------------7d63dc71b06b2--
    Cheers.

    The ServletInput stream contains this:
    -----------------------------7d63dc71b06b2
    Content-Disposition: form-data; name="W"; filename="C:\work_projects\Capas.xml"
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    i.e., its the HTTP File Upload MIME stuff, followed by the XML. You need to wrap around the input stream something that can decode the HTTP MIME stuff and let you get at the XML itself, i.e., something like: com.orielly.servlet.multipart.MultipartParser (Apache has a similar 'file upload servlet).
    Jeremy

  • How to call class file from jsp without creating packages

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.Then use packages.
    As of Java1.4, you can no longer import classes from the default package (no package declared) into classes that are packaged.
    All Tomcat classes are in packages, including the compiled JSP.
    Therefore: Your classes need to be in a package inorder to be imported and used by the JSP.
    Why the problem? If you know it works with packages, why try not to use them?

  • Error when accessing Entity from JSP

    I'm trying to develop an application in Jboss AS.
    I have an Entity Class named Users and a stateful session named LoginActionBean which has the following method:
      public Users checkUser(String t1,String t2){
             Users test = (Users) em.createNamedQuery("Users.login").setParameter("userUsername",t1).setParameter("userPwd",t2).getSingleResult();
                return test;
        }In my jsp file, I try to do the following:
    Users a;
    public void jspInit() {
        try {
            InitialContext ic = new InitialContext();
            bci = (LoginActionLocal) ic.lookup("deytera_pasxa/LoginActionBean/local");
        } catch (Exception ex) {
            System.out.println("Error:"+
                    ex.getMessage());
    try {
        s2 = request.getParameter("username");
        s3 = request.getParameter("password");
        if (s2 != null && s3 != null) {
                a = bci.checkUser(s2,s3);
    .....I get no compilation error but when I try to run it I get:
    20:28:08,650 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError: ejb.LoginActionLocal.checkUser(Ljava/lang/String;Ljava/lang/String;)Lejb/Users;
            at org.apache.jsp.isLogged_jsp._jspService(isLogged_jsp.java:90)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
            at java.lang.Thread.run(Thread.java:595)at the moment checkUser() is called. If I change the method's return type to let's say boolean and change the code, it works perfectly fine!
    I'm stuck here for 3 hours, any help much appreciated.
    Edited by: SyMpToM on May 5, 2008 11:03 AM
    Edited by: SyMpToM on May 5, 2008 11:04 AM

    The form action event is in a javascript function. I am sorry I mentioned that I am accessing this servlet from JSP. Actually,this servlet is accessed from an HTML document.
    The following is the javascript code:
    <script language="javascript">
    function lfnCallNext()
         alert("In the function");
         frmMain.method="POST";
         frmMain.action="/TestServlet";
         frmMain.hidChoice.value="GetList";
         frmMain.submit();
    </script>
    And this function is called from an hyperlink as follows:
    Work with Employee Database
    Thanks,

  • HTTP2228 error while serving files from the local hard drive

    I see lots of these errors in the logs files:
    [05/Oct/2007:07:02:14] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/people_directory_32.gif, finish-
    response reports: HTTP2228: Response content length mismatch (970 bytes with a content length of 947)
    [05/Oct/2007:07:02:14] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/border/spacer.gif, finish-response rep
    orts: HTTP2228: Response content length mismatch (58 bytes with a content length of 43)
    [05/Oct/2007:07:02:14] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/home_16.gif, finish-response rep
    orts: HTTP2228: Response content length mismatch (450 bytes with a content length of 594)
    [05/Oct/2007:07:02:14] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/border/border_bottom.gif, finish-respo
    nse reports: HTTP2228: Response content length mismatch (116 bytes with a content length of 117)
    [05/Oct/2007:07:10:32] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/favicon.ico, finish-response rep
    orts: HTTP2228: Response content length mismatch (282 bytes with a content length of 2041)
    [05/Oct/2007:07:10:32] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/attachments/pdf.gif, finish-resp
    onse reports: HTTP2228: Response content length mismatch (327 bytes with a content length of 361)
    [05/Oct/2007:07:10:32] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/add_blogentry_16.gif, finish-res
    ponse reports: HTTP2228: Response content length mismatch (329 bytes with a content length of 385)
    [05/Oct/2007:07:10:32] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/wait.gif, finish-response report
    s: HTTP2228: Response content length mismatch (1347 bytes with a content length of 1553)
    [05/Oct/2007:07:10:32] warning (28667): for host 192.168.123.11 trying to GET /confluence/images/icons/watch_16.gif, finish-response re
    ports: HTTP2228: Response content length mismatch (568 bytes with a content length of 655)All these files are located on the local hard-drive:
    root@birokrat:~# ls -l /opt/webserver7/https-birokrat/web-app/birokrat/confluence/images/icons/wait.gif*
    -rw-r--r--   1 webservd webservd    1553 Oct  4 17:16 /opt/webserver7/https-birokrat/web-app/birokrat/confluence/images/icons/wait.gif
    -rw-------   1 webservd webservd    1347 Oct 17 14:14 /opt/webserver7/https-birokrat/web-app/birokrat/confluence/images/icons/wait.gif.gzI still do not understand why comes this error. If it is sending wait.gif.gz, then it is sending 1347 bytes and not 1553 bytes. This error comes in combination with gif, png, pdf and also one servlet.
    [16/Oct/2007:09:07:42] warning ( 8298): for host 192.168.123.11 trying to GET /confluence/plugins/servlet/tiny_mce/zip_src, finish-response reports: HTTP2228: Response content length mismatch (390 bytes with a content length of 945)How can I solve this problem?
    Kind regards,
    Damjan

    First what I think is wrong is output filter should work on dynamic files and not static files like images.
    I am unable to reproduce it even inside a web-app. We need your web-app to see whats happening. Can you reproduce it for every single request you send to he server? Can you run web server in log-level finest (change server.xml <log-level> element) so that we can know some more detials. Just send finest log for one request.
    I was just checking the syntax of compression directives I found these examples, (underlined lines are new lines that should be added)
    For dynamic compression :
    =====================
    <Object name="default">
    NameTrans fn="assign-name" from="*.jsp" name="compress"
    </Object>
    _<Object name="compress">_
    Output fn="insert-filter" filter="http-compression"
    _</Object>_
    Do not use this for static files.
    There should be only one insert-filter directive. Why do you have two? That could be a problem.
    For static compression :
    =================
    <Object name="default">
    NameTrans fn="assign-name" from="*.html" name="find-compressed"
    Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=compress-file subdir=".compressed-files"
    Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
    </Object>
    _<Object name="find-compressed">_
    PathCheck fn="find-compressed"
    _</Object>_
    Do not use this for dymanic files.
    (if u dont have fn=compress-file line its ok it will just create a .gz file if not present in .compressed-files directory without this directive u need to keep pre compressed file in docroot for find-compressed to work)

  • Error deploying PAR file from Developer Studio (NW04)

    Hello,
    i've got a problem while trying to deploy a PAR file from NW Developer Studio.
    The PAR Export function says
    "Unable to connect to the Portal",
    the portal itself gives the following response:
    "ERROR: Upload failed - exception caught: com.sapportals.portal.prt.runtime.PortalRuntimeException: Invalid content type submitted - no multipart data"
    Deploying the PAR file manually using the Administration Console (system administration tab) of the portal works fine, but why doesn't the PAR Export function of NWDS?
    Thanks in advance for any help!
    Regards,
    Jörg

    Hi Jörg,
    as a general advise, use the NWDS version corresponding to the Servers version, so in this case, upgrade (or better: install new) NWDS 2.0.14. The main reason is WebDynpro compatibility, but the deploy mechanism may need this too.
    At least, give it a try and report if you have success (or not).
    Hope it helps
    Detlev

Maybe you are looking for

  • Macbook Won't Chime Or Boot Past Grey Screen W/ Apple Logo & Spinning Gear

    So i took my Macbook into the apple store to get looked it, cuz i sensed it was a little too hot and maybe overheating........... I DJ so my Macbook is bascially used for that and that only, so after he ran a diagnostics he seen i needed a new fan, b

  • 2 Airport Expresses, only one can connect

    Have 2 airport expresses....if I turn off password protection on the router, I can connect them both with zero issues through the airport utility.  As soon as I change back to password protection, I can only get one to be "seen" by the airport utilit

  • OUTPUT CONTORL /Type COnfiguration

    Hi, Please guide me step by step, how to configure output control. I have created a z print program for a z print form..which should be triggered from MIGO. I guess I have to create a Z output type also (say ZMGO) ..Please advice how to proceed. Rewa

  • I'm trying to buy from my In-Apps

    Hi everyone. I hope someone can help me with this. I After the last update, I tried buying from my Apps some Extensions, but I can't. They all had the same "unknown error". What should I do?

  • Help with creative cam model PD 1060

    Hi I am new and I lost my installation cd for the camera i have it is a 350 model Pd 1060 is there anyone out there who can help me?