JSP NOT EXECUTING

Hello helping hands,
I am having a problem of JSP pages not getting executed. The setup is I have a Webserver and Appserver (Websphere 5.0) on different (unix) machines.
Have JSP page and I have put a log message at the very start of the page (not in a global function though). So ideally every time I execute I should have a log message on my log right ?? This is not the case.
When I monitor the log (by viewing it dynamically -tail command ), only some visits cause the log to be written and not all the visit to the page.
Local WSAD machine the code works fine and everything is ok. I do not have access to the Webserver and Appserver configurations and the group responsible is not able to solve this so far.
Please let me know why this is happening ?
Thanks in advance,
Bharani
PS: The server group is denying any cache setup but I am not sure of their claim. So any specifics ??

I already have
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Expires" content="-1">
and
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Expires","-1");
response.setHeader("Cache-Control","no-store");
Both at the html level and JSP level expiration. Doesnt help

Similar Messages

  • JSP not executing the java code

    Hello there.
    my m/c: tru64 unix
    Apache version: 2.0
    tomcat version: 4.0.5
    browser version: IE5
    I have index.jsp as
    =======
    <HTML>
    <HEAD>
    <TITLE> Vimala's JSP </TITLE>
    </HEAD>
    <BODY>
    Hello <%= request.getParameter ("name") %>
    <%
    for (int i=1; i < 5; i++)
    out.print ("<BR> Sample JSP loop");
    %>
    <FORM METHOD=POST ACTION="vimala.jsp">
    Enter nothing
    <INPUT TYPE=TEXTAREA NAME=name>
    <BR><BR><INPUT TYPE=SUBMIT>
    </FORM>
    </BODY>
    </HTML>
    =======
    The above neither prints the getParameter ("name") as passed in URL nor it prints the "for loop" values.
    However the html related things such as title and Form are properly displayed in the browser.
    I think I'm missing something in the tomcat (server.xml) or apache (httpd.conf) configurations. Your inputs to solve my problem is very much appreciated.
    Thank you,
    Vimala.

    Please find the web.xml here.
    ==============web.xml start==============
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- ======================== Introduction ============================== -->
    <!-- This document defines default values for all web applications -->
    <!-- loaded into this instance of Tomcat. As each application is -->
    <!-- deployed, this file is processed, followed by the -->
    <!-- "/WEB-INF/web.xml" deployment descriptor from your own -->
    <!-- applications. -->
    <!-- ================== Built In Servlet Definitions ==================== -->
    <!-- The default servlet for all web applications, that serves static -->
    <!-- resources. It processes all requests that are not mapped to other -->
    <!-- servlets with servlet mappings (defined either here or in your own -->
    <!-- web.xml file. This servlet supports the following initialization -->
    <!-- parameters (default values are in square brackets): -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- -->
    <!-- input Input buffer size (in bytes) when reading -->
    <!-- resources to be served. [2048] -->
    <!-- -->
    <!-- listings Should directory listings be produced if there -->
    <!-- is no welcome file in this directory? [true] -->
    <!-- -->
    <!-- output Output buffer size (in bytes) when writing -->
    <!-- resources to be served. [2048] -->
    <!-- -->
    <!-- readonly Is this context "read only", so HTTP -->
    <!-- commands like PUT and DELETE are -->
    <!-- rejected? [true] -->
    <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- The "invoker" servlet, which executes anonymous servlet classes -->
    <!-- that have not been defined in a web.xml file. Traditionally, this -->
    <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it -->
    <!-- to other patterns as well. The extra path info portion of such a -->
    <!-- request must be the fully qualified class name of a Java class that -->
    <!-- implements Servlet (or extends HttpServlet), or the servlet name -->
    <!-- of an existing servlet definition. This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <servlet>
    <servlet-name>invoker</servlet-name>
    <servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- The JSP page compiler and execution servlet, which is the mechanism -->
    <!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
    <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- classpath What class path should I use while compiling -->
    <!-- generated servlets? [Created dynamically      -->
      <!--                       based on the current web application] -->
    <!-- -->
    <!-- classdebuginfo Should the class file be compiled with -->
    <!-- debugging information? [false] -->
    <!-- -->
    <!-- ieClassId The class-id value to be sent to Internet -->
    <!-- Explorer when using <jsp:plugin> tags. -->
    <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
    <!-- -->
    <!-- jspCompilerPlugin The fully qualified class name of the JSP -->
    <!-- compiler plug-in to be used. See below for -->
    <!-- more information. -->
    <!-- [Use internal JDK compiler] -->
    <!-- -->
    <!-- keepgenerated Should we keep the generated Java source code -->
    <!-- for each page instead of deleting it? [true] -->
    <!-- -->
    <!-- largefile Should we store the static content of JSP -->
    <!-- pages in external data files, to reduce the -->
    <!-- size of the generated servlets? [false] -->
    <!-- -->
    <!-- logVerbosityLevel The level of detailed messages to be produced -->
    <!-- by this servlet. Increasing levels cause the -->
    <!-- generation of more messages. Valid values are -->
    <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
    <!-- [WARNING] -->
    <!-- -->
    <!-- mappedfile Should we generate static content with one -->
    <!-- print statement per input line, to ease -->
    <!-- debugging? [false] -->
    <!-- -->
    <!-- scratchdir What scratch directory should we use when -->
    <!-- compiling JSP pages? [default work directory  -->
      <!--                       for the current web application] -->
    <!-- -->
    <!-- If you wish to use Jikes to compile JSP pages: -->
    <!-- * Set the "classpath" initialization parameter appropriately -->
    <!-- for this web application. -->
    <!-- * Set the "jspCompilerPlugin" initialization parameter to -->
    <!-- "org.apache.jasper.compiler.JikesJavaCompiler". -->
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <!-- Server Side Includes processing servlet, which processes SSI -->
    <!-- directives in HTML pages consistent with similar support in web -->
    <!-- servers like Apache. Traditionally, this servlet is mapped to -->
    <!-- URL pattern "*.shtml". This servlet supports the following -->
    <!-- initialization parameters (default values are in square brackets): -->
    <!-- -->
    <!-- buffered Should output from this servlet be buffered? -->
    <!-- (0=false, 1=true) [0] -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- -->
    <!-- expires The number of seconds before a page with SSI -->
    <!-- directives will expire. [No default] -->
    <!-- -->
    <!-- isVirtualWebappRelative -->
    <!-- Should "virtual" paths be interpreted as -->
    <!-- relative to the context root, instead of -->
    <!-- the server root? (0=false, 1=true) [0] -->
    <!-- -->
    <!-- ignoreUnsupportedDirective -->
    <!-- Should unknown or misspelled Ssi directives -->
    <!-- be ignored and no errors shown? -->
    <!-- (0=false, 1=true) [1] -->
    <!-- IMPORTANT: To use the CGI servlet, you also need to rename the -->
    <!-- $CATALINA_HOME/server/lib/servlets-ssi.renametojar file -->
    <!-- to $CATALINA_HOME/server/lib/servlets-ssi.jar -->
    <!--
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>
    -->
    <!-- Common Gateway Includes (CGI) processing servlet, which supports -->
    <!-- execution of external applications that conform to the CGI spec -->
    <!-- requirements. Typically, this servlet is mapped to the URL pattern -->
    <!-- "/cgi-bin/*", which means that any CGI applications that are -->
    <!-- executed must be present within the web application. This servlet -->
    <!-- supports the following initialization parameters (default values -->
    <!-- are in square brackets): -->
    <!-- -->
    <!-- cgiPathPrefix The CGI search path will start at -->
    <!-- webAppRootDir + File.separator + this prefix. -->
    <!-- [WEB-INF/cgi] -->
    <!-- -->
    <!-- clientInputTimeout The time (in milliseconds) to wait for input -->
    <!-- from the browser before assuming that there -->
    <!-- is none. [100] -->
    <!-- -->
    <!-- debug Debugging detail level for messages logged -->
    <!-- by this servlet. [0] -->
    <!-- IMPORTANT: To use the CGI servlet, you also need to rename the -->
    <!-- $CATALINA_HOME/server/lib/servlets-cgi.renametojar file -->
    <!-- to $CATALINA_HOME/server/lib/servlets-cgi.jar -->
    <!--
    <servlet>
    <servlet-name>cgi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
    <init-param>
    <param-name>clientInputTimeout</param-name>
    <param-value>100</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>6</param-value>
    </init-param>
    <init-param>
    <param-name>cgiPathPrefix</param-name>
    <param-value>WEB-INF/cgi</param-value>
    </init-param>
    <load-on-startup>5</load-on-startup>
    </servlet>
    -->
    <!-- ================ Built In Servlet Mappings ========================= -->
    <!-- The servlet mappings for the built in servlets defined above. Note -->
    <!-- that, by default, the CGI and SSI servlets are not mapped. You -->
    <!-- must uncomment these mappings (or add them to your application's own -->
    <!-- web.xml deployment descriptor) to enable these services -->
    <!-- The mapping for the default servlet -->
    <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the invoker servlet -->
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the JSP servlet -->
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <!-- The mapping for the SSI servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>ssi</servlet-name>
    <url-pattern>*.shtml</url-pattern>
    </servlet-mapping>
    -->
    <!-- The mapping for the CGI Gateway servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>cgi</servlet-name>
    <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>
    -->
    <!-- ==================== Default Session Configuration ================= -->
    <!-- You can set the default session timeout (in minutes) for all newly -->
    <!-- created sessions by modifying the value below. -->
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <!-- ===================== Default MIME Type Mappings =================== -->
    <!-- When serving static resources, Tomcat will automatically generate -->
    <!-- a "Content-Type" header based on the resource's filename extension, -->
    <!-- based on these mappings. Additional mappings can be added here (to -->
    <!-- apply to all web applications), or in your own application's web.xml -->
    <!-- deployment descriptor. -->
    <mime-mapping>
    <extension>abs</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ai</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aif</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aifc</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aiff</extension>
    <mime-type>audio/x-aiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>aim</extension>
    <mime-type>application/x-aim</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>art</extension>
    <mime-type>image/x-jg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asf</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>asx</extension>
    <mime-type>video/x-ms-asf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>au</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avi</extension>
    <mime-type>video/x-msvideo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>avx</extension>
    <mime-type>video/x-rad-screenplay</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bcpio</extension>
    <mime-type>application/x-bcpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bin</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>bmp</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>body</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cdf</extension>
    <mime-type>application/x-cdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cer</extension>
    <mime-type>application/x-x509-ca-cert</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>class</extension>
    <mime-type>application/java</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>cpio</extension>
    <mime-type>application/x-cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>csh</extension>
    <mime-type>application/x-csh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>css</extension>
    <mime-type>text/css</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dib</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dtd</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dv</extension>
    <mime-type>video/x-dv</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>dvi</extension>
    <mime-type>application/x-dvi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>eps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>etx</extension>
    <mime-type>text/x-setext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>exe</extension>
    <mime-type>application/octet-stream</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gif</extension>
    <mime-type>image/gif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gtar</extension>
    <mime-type>application/x-gtar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>gz</extension>
    <mime-type>application/x-gzip</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hdf</extension>
    <mime-type>application/x-hdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htc</extension>
    <mime-type>text/x-component</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>htm</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>hqx</extension>
    <mime-type>application/mac-binhex40</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ief</extension>
    <mime-type>image/ief</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jad</extension>
    <mime-type>text/vnd.sun.j2me.app-descriptor</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>java</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpe</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpeg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jpg</extension>
    <mime-type>image/jpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>js</extension>
    <mime-type>text/javascript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>kar</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>latex</extension>
    <mime-type>application/x-latex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>m3u</extension>
    <mime-type>audio/x-mpegurl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mac</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>man</extension>
    <mime-type>application/x-troff-man</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>me</extension>
    <mime-type>application/x-troff-me</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mid</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>midi</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mif</extension>
    <mime-type>application/x-mif</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mov</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>movie</extension>
    <mime-type>video/x-sgi-movie</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp1</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp2</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mp3</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpa</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpe</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpeg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpega</extension>
    <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpg</extension>
    <mime-type>video/mpeg</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>mpv2</extension>
    <mime-type>video/mpeg2</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ms</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>nc</extension>
    <mime-type>application/x-netcdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>oda</extension>
    <mime-type>application/oda</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pbm</extension>
    <mime-type>image/x-portable-bitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pct</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pdf</extension>
    <mime-type>application/pdf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pgm</extension>
    <mime-type>image/x-portable-graymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pic</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pict</extension>
    <mime-type>image/pict</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pls</extension>
    <mime-type>audio/x-scpls</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>png</extension>
    <mime-type>image/png</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnm</extension>
    <mime-type>image/x-portable-anymap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>pnt</extension>
    <mime-type>image/x-macpaint</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ppm</extension>
    <mime-type>image/x-portable-pixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ps</extension>
    <mime-type>application/postscript</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>psd</extension>
    <mime-type>image/x-photoshop</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qt</extension>
    <mime-type>video/quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qti</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>qtif</extension>
    <mime-type>image/x-quicktime</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ras</extension>
    <mime-type>image/x-cmu-raster</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rgb</extension>
    <mime-type>image/x-rgb</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rm</extension>
    <mime-type>application/vnd.rn-realmedia</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>roff</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtf</extension>
    <mime-type>application/rtf</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>rtx</extension>
    <mime-type>text/richtext</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sh</extension>
    <mime-type>application/x-sh</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>shar</extension>
    <mime-type>application/x-shar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>smf</extension>
    <mime-type>audio/x-midi</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>snd</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>src</extension>
    <mime-type>application/x-wais-source</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4cpio</extension>
    <mime-type>application/x-sv4cpio</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>sv4crc</extension>
    <mime-type>application/x-sv4crc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>swf</extension>
    <mime-type>application/x-shockwave-flash</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>t</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tar</extension>
    <mime-type>application/x-tar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tcl</extension>
    <mime-type>application/x-tcl</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tex</extension>
    <mime-type>application/x-tex</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texi</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>texinfo</extension>
    <mime-type>application/x-texinfo</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tif</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tiff</extension>
    <mime-type>image/tiff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tr</extension>
    <mime-type>application/x-troff</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>tsv</extension>
    <mime-type>text/tab-separated-values</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ulw</extension>
    <mime-type>audio/basic</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>ustar</extension>
    <mime-type>application/x-ustar</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xbm</extension>
    <mime-type>image/x-xbitmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xpm</extension>
    <mime-type>image/x-xpixmap</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>xwd</extension>
    <mime-type>image/x-xwindowdump</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wav</extension>
    <mime-type>audio/x-wav</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Wireless Bitmap -->
    <extension>wbmp</extension>
    <mime-type>image/vnd.wap.wbmp</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- WML Source -->
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Compiled WML -->
    <extension>wmlc</extension>
    <mime-type>application/vnd.wap.wmlc</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- WML Script Source -->
    <extension>wmls</extension>
    <mime-type>text/vnd.wap.wmls</mime-type>
    </mime-mapping>
    <mime-mapping> <!-- Compiled WML Script -->
    <extension>wmlscriptc</extension>
    <mime-type>application/vnd.wap.wmlscriptc</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>wrl</extension>
    <mime-type>x-world/x-vrml</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>Z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>z</extension>
    <mime-type>application/x-compress</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>zip</extension>
    <mime-type>application/zip</mime-type>
    </mime-mapping>
    <!-- ==================== Default Welcome File List ===================== -->
    <!-- When a request URI refers to a directory, the default servlet looks -->
    <!-- for a "welcome file" within that directory and, if present, -->
    <!-- to the corresponding resource URI for disp

  • JSP NOT EXECUTING - URGENT HELP

    Hi,
    I am having a problem of JSP pages not getting executed. The setup is I have a Webserver and Appserver (Websphere 5.0) on different (unix) machines.
    I have a JSP page and I have put a log message at the very start of the page (not in a global function though). So ideally every time I execute I should have a log message on my log right ?? This is not the case.
    When I monitor the log (by viewing it dynamically -tail command ), only some visits cause the log to be written and not all the visit to the page.
    Local WSAD machine the code works fine and everything is ok. I do not have access to the Webserver and Appserver configurations and the group responsible is not able to solve this so far.
    Please let me know why this is happening ?
    Thanks in advance,
    Bharani

    1. Will the URL that i am trying to access be:
    http://localhost:8080/examples/jsp/gcdBB/LoginServlet
    2. Regarding WEB-INF/classes/gcd/gcd folder (note - 2 times gcd). When LoginServlet.java (located in: WEB-INF/classes/gcd) is compiled in JCreator, a second gcd folder is automatically created (WEB-INF/classes/gcd/gcd).
    Should I make any corrections, or alterations?
    Thanks,
    Niall

  • JSP not executing instead the browser is showing the code

    I have deployed the JSP to Sun One Webserver 6.1.
    In magnus.conf file the following line is present:
    Init fn="load-modules" shlib="/opt/SUNWwbsvr/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
    Please let me know if I am missing any configuration setting.

    Can you please check if the default-web.xml of the instance (in the config directory) has the following servlet mapping:
    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    Thanks

  • Could not execute the css file

    Hi,
    I have this code:
    named: email11.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    import business.User;
    import data.UserDB;
    import util.MurachPool;
    public class EmailServlet extends HttpServlet{
    private MurachPool connectionPool;
    public void init() throws ServletException{
    connectionPool = MurachPool.getInstance();
    public void destroy() {
    connectionPool.destroy();
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException{
    Connection connection = connectionPool.getConnection();
    HttpSession session = request.getSession();
    String message ="";
    try{
    Vector users = UserDB.readRecord(connection);
    session.setAttribute("users", users);
    RequestDispatcher dispatcher =
    getServletContext().getRequestDispatcher(
    "/email11/show_email_entry.jsp");
    dispatcher.forward(request, response);
    }catch(SQLException sqle){
    message = "EmailServlet SQLException: " + sqle;
    session.setAttribute("message", message);
    RequestDispatcher dispatcher =
    getServletContext().getRequestDispatcher(
    "/email11/join_email_list.jsp");
    dispatcher.forward(request, response);
    connectionPool.freeConnection(connection);
    and this code in jsp file:
    named: show_email_entry.jsp
    <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
    <%@ taglib uri="../WEB-INF/tlds/murach.tld" prefix="mma" %>
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="DisplayData.css">
    </head>
    <body>
    <h1> Test</h1>
    <table cellspacing="0" cellpadding="1" border="1">
    <tr valign="bottom">
    <td class="headerColumn" align= "center">First Name</td>
    <td class="headerColumn" align= "center">Last Name</td>
    <td class="headerColumn" align= "center">Address</td>
    <td class="headerColumn" align= "center">Phone Number</td>
    <td class="headerColumn" align= "center">Cell Number</td>
    <td class="headerColumn" align= "center">Email Address</td>
    </tr>
    <mma:users>
    <tr>
    <td><%= firstName %></td>
    <td><%= lastName %></td>
    <td><%= address %></td>
    <td><%= phoneNumber %></td>
    <td><%= cellNumber %></td>
    <td><%= emailAddress %></td>
    </tr>
    </mma:users>
    </table>
    </body>
    </html>
    This is the css file code that I like to apply to the show_email_entry.jsp
    named: Displaydata.css
    This rules are for background color for data display
    /*td.column{
    background-color: #f0f8ff;
    background-color: #fffacd;
    td.headerColumn{
    background-color: #daa520;
    font-weight: bold;
    font-family: sans-serif,Verdana, Arial, Helvetica;
    font-size: 10pt;
    td.column{
    font-family: sans-serif,Verdana, Arial, Helvetica;
    font-size: 10pt;
    white-space: nowrap;
    background-color: #fffacd;
    a{
    text-decoration: none;
    h1{
    color: red;
    They are working fine. However, it just does not execute the css file in the show_email_entry.jsp. Another word, the headerColumn should show some color as I coded it in the css file. But it shows only white background and black text. I have the file named DisplayData.css in the same directory as the file named show_email_entry.jsp. But it still does not work.
    if I create a test.jsp and use with the DisplayData.css file above then it would work fine. But when I used it with the servlet file, then it would not work.
    Anyone knows why ?
    Thanks
    zbonzbon

    Pls, disregard this thread. I have found my answer..
    Thanks,
    zbonzbon

  • The SQL query is not executing

    Hi
    I have the following situation: In a project we designed our reports calling a stored procedure the exits in a MS SQL Server 200 database. The Stored Procedures works fine and when they are used in the report everything works perfectly.
    The reports are being made with CR DEsigner 11, when the designer ends them, ha pass them to me and we put them in our java web application. I open them and even preview them since the Crystal Reprots Perspective of Eclipse and I can see the data, so everything to this point is OK.
    The problem comes when I change of connection, I'm trying to connect every report to the same host and database, and when the reprot is displayed in the browser there is no data. I profile the SQL commands that are executed when the report is requested and I found that the reprot is not executing the stored procedure.
    I guess because i'm connectring the report to the same database and host that was used when the report is created and i'm also passing exactly the same parameters of the stored procedure, then report thinks that it doesn't have executing again becuase it will be the same information.
    SO, i wonder if there is a way to request to the report to execute the sql query every time i have to display it.
    thanks for any help.

    What happens when you try to view the report using a simple viewer.jsp?without changing the connection?
    2009-05-25 14:06:09,250 ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter -  detected an exception: Error de conexión: [SQLServer 2000 Driver for JDBC]Error establishing socket.
    But the database server is ok, so i think the rpt needs more information to be connect to the database.
    Also what happens if you dont use the data bean and give everything there only?
    The same, the rpt is not executing the stored procedure.
    Did anything change on the RDBMS side? Additional packages, changes to the schema, ownership, etc?
    No, the server is ok and the database is ok.
    If you configure Log4J logging to DEBUG, you should see the database invokes from the Crystal Java engine, specifically the queries sent and the number of rowsets returned. Do you notice any errors?
    I have a problem here with log4j. In my project i'm using spring and with the help of spring i configure log4j, basically with spring is easier to configure log4j.
    I'm telling you this because i have log4j working but when my application reaches the code to change the connection to the rerport, log4j dies and stop sending any message to the stdout or to a log file. I haven't since this behavior in any other app o library. So i want to guess i have something wrong with my log4j or maybe with log4j+spring.
    So, i remove all the code of spring referring to log4j, but the problem with log4j wasn't solved.
    What i will try now is to remove spring from the project.
    This is my log4j.properties:
    log4j.rootLogger=DEBUG, stdout
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

  • Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed

    Hi,
    I am facing a problem while adding a new parameter n my JSP Report JDBC query based on a ref-cursor from a stored procedure define in a package in database.
    No problem at database level, I have added the new parameter in package specification and Package body for that procedure and compile my package, it complies without any error and warning.
    but when I open the report and add parameter in the report JDBC query window, then it is generating a error message,
    "Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed "
    and I am unable to add the new parameter in report.
    e.g.
    Actual which was working is:
    My-package.My-procedure(:P1,:P2,:P3 ,:P4,:P5,:P6,:P7)
    I want to do this:
    My-package.My-procedure(:P1,:P2,:P3 ,:P4,:P5,:P6,:P7,:P8)
    but unable to do due to this error message:
    ("Err 62007: SQL Error: 99999 ORA-24338: Statement Handle not Executed ")
    Reports Builder 10g:
    Database 10g:
    Operating system windows XP:
    using JDBC Query base on ref-cursor coming from the stored procedure define in the Package.
    Regards,
    Khan

    and compile my package, it complies without any error and warning.That doesn't mean anything in this case. You are getting a runtime error, not a compilation error. The error is coming when you execute your procedure.
    Did you test your modified procedure in sqlplus or SQL Developer?

  • Select in xsql not executed

    Hello,
    i have a file employee1.xsql:
    <?xml version='1.0'?>
    <xsql:query xmlns:xsql="urn:oracle-xsql"
    connection="employee"
    rowset-element="OK"
    row-element="EMPLOYEE">
    SELECT employee_id "ID"
    ,last_name "NAME"
    ,job_id "JOB"
    ,salary "SALARY"
    ,commission_pct "COMMISSION"
    FROM EMPLOYEES
    </xsql:query>
    When I try to execute the file:
    http://<hostname>:8888/obe/employee1.xsql
    the select is not executed, instead the text of the file appears in the browser (oc4j is started).
    What is wrong?
    Anna

    Hello Sandra,
    Can you attach the sample controller.jpf and the .jsp file ? I will
    reproduce and get back to you.
    Thanks
    Raj Alagumalai
    Backline Workshop Support
    "Sandra Lancheros" <[email protected]> wrote in message
    news:3f574b56$[email protected]..
    >
    Hello.
    I have a problem with a select: The first time I run the page flow itappears
    empty. The data for the select is loaded from a Treemap, which isinitialized
    in the begin action like this:
    mapReporteSIRED.put(new String("Cubo.cls"), new String("CuboParticipación
    Ciudadana") );
    mapReporteSIRED.put(new String("DenunciasTramitadas.cls"), newString("Trámites
    por Sectores Denunciados") );
    mapReporteSIRED.put(new String("Entidades por TemaDenunciado.cls"), new
    String("Entidades por Tema Denunciado") );
    mapReporteSIRED.put(new String("EntidadesDenunciadas.cls"), newString("Entidades
    Denunciadas") );
    mapReporteSIRED.put(new String("SectoresYTemasDenunciados.cls"),new String("Denuncias
    por Sector y Tema Denunciado") );
    mapReporteSIRED.put(new String("InformeQuejaObservatorio.cls"),new String("Informe
    Queja Observatorio") );
    where mapReporteSIRED is the name of the treemap.
    From the jsp where I have the select I load the data this way:
    <netui:select dataSource="{actionForm.reporte}" tagId="_reporte"optionsDataSource="{pageFlow.mapReporteSIRED}"
    </netui:select>where actionForm.reporte is an attribute of a FormBean.
    Thanks in advance for your help.
    Sandra Lancheros
    EDS

  • File "E:\sandip\programs\IDS_Server\build\web\abstractsubmission.jsp" not f

    Hi everybody.
    I am using struts1.2.9. Please solve my problem.
    AbstractSubmissionAction class
    saveErrors(request,errors);
    if(errors.isEmpty()){
    return mapping.findForward(SUCCESS);
    return mapping.findForward("failure");
    struts file
    <action input="/abstractsubmission.jsp" name="abstractSubmissionForm" path="/abstractsubmission"
    scope="request" type="struts.action.AbstractSubmissionAction" validate="true">
    <forward name="success" path="/abstactloggedin.jsp"/>
    <forward name="failure" path="/abstractsubmission.jsp"/>
    </action>
    After run, browser shows
    HTTP Status 404 -
    type Status report
    message
    description The requested resource () is not available.
    server log
    File "E:\sandip\programs\IDS_Server\build\web\abstractsubmission.jsp" not found
    Message was edited by:
    SandipGaikwad

    According to your suggestion, it throws java.lang.IllegalArgumentException: Path abstractsubmission.jsp does not start with a "/" character
    struts-config.xml file
    <struts-config>
    <form-beans>
    <form-bean name="abstractLoginForm" type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="username" type="java.lang.String"/>
    <form-property name="password" type="java.lang.String"/>
    </form-bean>
    <form-bean name="abstractUserRegistrationForm" type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="title" type="java.lang.String"/>
    <form-property name="firstname" type="java.lang.String"/>
    <form-property name="lastname" type="java.lang.String"/>
    <form-property name="designation" type="java.lang.String"/>
    <form-property name="company" type="java.lang.String"/>
    <form-property name="street" type="java.lang.String"/>
    <form-property name="area" type="java.lang.String"/>
    <form-property name="city" type="java.lang.String"/>
    <form-property name="state" type="java.lang.String"/>
    <form-property name="country" type="java.lang.String"/>
    <form-property name="pin" type="java.lang.Long"/>
    <form-property name="countryCode" type="java.lang.Integer"/>
    <form-property name="cityCode" type="java.lang.Integer"/>
    <form-property name="fax" type="java.lang.Long"/>
    <form-property name="email" type="java.lang.String"/>
    </form-bean>
    <form-bean name="abstractSubmissionForm" type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="title1" type="java.lang.String"/>
    <form-property name="firstname1" type="java.lang.String"/>
    <form-property name="lastname1" type="java.lang.String"/>
    <form-property name="title2" type="java.lang.String"/>
    <form-property name="firstname2" type="java.lang.String"/>
    <form-property name="lastname2" type="java.lang.String"/>
    <form-property name="abstracttitle" type="java.lang.String"/>
    <form-property name="theFile" type="org.apache.struts.upload.FormFile"/>
    </form-bean>
    </form-beans>
    <global-exceptions>
    </global-exceptions>
    <global-forwards>
    </global-forwards>
    <action-mappings>
    <action
    input="/abstractlogin.do"
    name="abstractLoginForm"
    path="/abstractlogin"
    scope="session"
    type="struts.action.AbstractLoginAction"
    validate="true"
    >
    <forward name="success" path="/abstactloggedin.jsp"/>
    <forward name="failure" path="/abstractlogin.jsp"/>
    </action>
    <action
    input="/abstractuserregistration.jsp"
    name="abstractUserRegistrationForm"
    path="/abstractuserregistration"
    scope="session"
    type="struts.action.AbstractUserRegistrationAction"
    validate="true"
    >
    <forward name="success" path="/abstractregistrationsuccess.jsp"/>
    <forward name="failure" path="/abstractuserregistration.jsp"/>
    </action>
    <action input="/abstractsubmission.jsp" name="abstractSubmissionForm" path="/abstractsubmission"
    scope="request" type="struts.action.AbstractSubmissionAction" validate="true">
    <forward name="success" path="/abstactloggedin.jsp"/>
    <forward name="failure" path="/abstractsubmission.jsp"/>
    </action>
    <action forward="/abstactsubmission.jsp" path="/AbstractSubmission"/>
    <action
    forward="/abstractlogin.jsp"
    path="/AbstractLogin"
    />
    <action
    forward="/abstractuserregistration.jsp"
    path="/AbstractUserRegistration"
    />
    </action-mappings>
    <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
    <message-resources parameter="com/myapp/struts/ApplicationResource"/>
    <!-- ========================= Tiles plugin ===============================-->
    <!--
    This plugin initialize Tiles definition factory. This later can takes some
    parameters explained here after. The plugin first read parameters from
    web.xml, thenoverload them with parameters defined here. All parameters
    are optional.
    The plugin should be declared in each struts-config file.
    - definitions-config: (optional)
    Specify configuration file names. There can be several comma
    separated file names (default: ?? )
    - moduleAware: (optional - struts1.1)
    Specify if the Tiles definition factory is module aware. If true
    (default), there will be one factory for each Struts module.
    If false, there will be one common factory for all module. In this
    later case, it is still needed to declare one plugin per module.
    The factory will be initialized with parameters found in the first
    initialized plugin (generally the one associated with the default
    module).
    true : One factory per module. (default)
    false : one single shared factory for all modules
    - definitions-parser-validate: (optional)
    Specify if xml parser should validate the Tiles configuration file.
    true : validate. DTD should be specified in file header (default)
    false : no validation
    Paths found in Tiles definitions are relative to the main context.
    -->
    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
    <set-property property="moduleAware" value="true" />
    </plug-in>
    <!-- ========================= Validator plugin ================================= -->
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property
    property="pathnames"
    value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
    </plug-in>
    <!-- ========================= Hibernate plugin ================================= -->
    <plug-in className="struts.plugin.HibernatePlugin">
    <set-property
    property="path"
    value="/hibernate.cfg.xml"/>
    </plug-in>
    </struts-config>
    AbstractSubmissionAction
    public class AbstractSubmissionAction extends Action {
    private ActionMessages errors;
    /* forward name="success" path="" */
    private final static String SUCCESS = "success";
    * This is the action called from the Struts framework.
    * @param mapping The ActionMapping used to select this instance.
    * @param form The optional ActionForm bean for this request.
    * @param request The HTTP Request we are processing.
    * @param response The HTTP Response we are processing.
    * @throws java.lang.Exception
    * @return
    public ActionForward execute(ActionMapping mapping, ActionForm form,
    HttpServletRequest request, HttpServletResponse response)
    throws Exception {
    errors=new ActionMessages();
    SessionFactory factory=null;
    Session session=null;
    String SQL_QUERY;
    Query query;
    DynaValidatorForm dForm=(DynaValidatorForm)form;
    //get file name
    FormFile myFile=(FormFile)dForm.get("theFile");
    String fileName=myFile.getFileName();
    int fileSize=myFile.getFileSize();
    byte[] data=myFile.getFileData();
    if(myFile.getContentType().equals("application/msword")){
    System.out.println("Valid Micrsoft Word file");
    try{
    factory=(SessionFactory)servlet.getServletContext().getAttribute(HibernatePlugin.KEY_NAME);
    session=factory.openSession();
    Transaction transaction=session.beginTransaction();
    //get the server upload directory real path
    String filePath=getServlet().getServletContext().getRealPath("/");
    //save file on the server
    if(!fileName.equals("")){
    System.out.println("Server path:= "+filePath);
    //create file
    File fileToCreate=new File(filePath,fileName);
    //if file does not exist create the file
    if(!fileToCreate.exists()){
    FileOutputStream fileOutputStream=new FileOutputStream(fileToCreate);
    fileOutputStream.write(myFile.getFileData());
    fileOutputStream.flush();
    fileOutputStream.close();
    //get form information
    String title1=(String)dForm.get("title1");
    String firstname1=(String)dForm.get("firstname1");
    String lastname1=(String)dForm.get("lastname1");
    String title2=(String)dForm.get("title2");
    String firstname2=(String)dForm.get("firstname2");
    String lastname2=(String)dForm.get("lastname2");
    String abstracttitle=(String)dForm.get("abstracttitle");
    //get AbstractUserInfoPojo from request
    Cookie[] cookies=request.getCookies();
    long id=Long.parseLong(cookies[0].getValue());
    AbstractUserInfoPojo abstractUserInfoPojo=(AbstractUserInfoPojo)session.get(AbstractUserInfoPojo.class,id);
    AbstractDetailsPojo abstractDetailsPojo=new AbstractDetailsPojo();
    abstractDetailsPojo.setId(id);
    abstractDetailsPojo.setTitle1(title1);
    abstractDetailsPojo.setFirstname1(firstname1);
    abstractDetailsPojo.setLastname1(lastname1);
    abstractDetailsPojo.setTitle2(title2);
    abstractDetailsPojo.setFirstname2(firstname2);
    abstractDetailsPojo.setLastname2(lastname2);
    abstractDetailsPojo.setAbstracttitle(abstracttitle);
    abstractDetailsPojo.setAbstractfilename(fileName);
    abstractDetailsPojo.setAbstractUserInfoPojo(abstractUserInfoPojo);
    abstractUserInfoPojo.setAbstractDetailsPojo(abstractDetailsPojo);
    //save information
    session.save(abstractDetailsPojo);
    session.update(abstractUserInfoPojo);
    //commit the changes
    transaction.commit();
    //pass abstractUserInfoPojo to request
    request.setAttribute("abstractUserInfo",abstractUserInfoPojo);
    }else{
    System.out.println("File already exists");
    }catch(IOException ioe){
    System.out.println("==========IOException :-=============");
    ioe.printStackTrace();
    System.out.println("================================================");
    }catch(SQLGrammarException sge){
    System.out.println("==========SQL Grammer Exception :-=============");
    System.out.println("1> SQL Query= "+sge.getSQL());
    System.out.println("2> Error Code= "+sge.getErrorCode());
    System.out.println("3> SQL State= "+sge.getSQLState());
    SQLException sqe=sge.getSQLException();
    System.out.println("4> Message= "+sqe.getMessage());
    sge.printStackTrace();
    System.out.println("================================================");
    catch (HibernateException e) {
    System.out.print("Hibernate Error");
    e.printStackTrace();
    } finally {
    session.close();
    }else{
    System.out.println("Not a Valid Micrsoft Word file");
    errors.add("Not a Word File",new ActionMessage("errors.abstractfilename"));
    saveErrors(request,errors);
    if(errors.isEmpty()){
    return mapping.findForward(SUCCESS);
    return mapping.findForward("failure");
    }

  • JSP for executing scripts

    Hi
    Is it possible for jsp to execute shell scripts which connects the remote host .
    For example if i have a script which first connect to remote host ,fetch data from the host and give result back.
    Simply want to know if jsp can execute these shell scripts also or not.
    Thanks

    I donot think so that my question make less sense .Yes i know that JSP is run on server side .Remote host (to explain you better) means another server.
    I have a script which connect another server whenever it is run .The script is running properly when run from command prompt .
    JSP page can run shell scripts(which contains simple commands like ls ,ps , so on....) But when this particular shell script which connect another server to get result ,is executed through JSP did not work.
    Hope this make sense to you

  • My compiled program will not execute on my PC.

    I am new to Java so is there anyone out there who can help me with a problem. I have a compiled Java program, the basic Hello World beginner's file. The file will compile, but not execute. It will execute on other computers, but not mine. Can anyone help me? I would greatly appreciate it. Oh yeah, I'm using jdk1.5.0_07. Thanks.

    Download JAVA Software Developement Kit (SDK previously JDK) from http://java.sun.com/javase/downloads/index.jsp
    Install the executable file just downloaded.
    Search for command.exe file inside C:\Windows\System32 and copy it to the 'bin' folder inside the jdk folder (say C:\Program Files\Java\jdk1.5.0_08\bin ).
    Now double click open the command.exe file and ( something like this will be displayed c:\PROGRA~1\.....\BIN>) type edit autoexec.bat
    Now type set path=%path%; c:\jdk..complete path (in my case set path=%path%;C:\Program Files\Java\jdk1.5.0_08\bin\autoexec.bat). For more info on setting path http://www.javacoffeebreak.com/tutorials/gettingstarted/part1b.html
    Save the file and exit.
    Thats it! Happy programming...
    -Madhu.
    Message was edited by:
    Madhu84

  • Include file not executing

    Hi guys,
    I have a strange problem using the jstl... An included file is not executing.
    My code
    main.jsp
    <%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
    <html>
         <head>
              <title><c:out value="${article.title}" /></title>
              <link rel="stylesheet" type="text/css" href="webber.css">
         </head>
         <body>
              <table width="100%" border="0">
                   <tr>
                        <td width="200">
                              <jsp:include page="navitem.jsp" flush="true"/>
                        </td>
                        <td>
                             <h3><c:out value="${article.title}" /></h3>
                             <c:out value="${article.text}" escapeXml="false" />
                        </td>
                   </tr>
              </table>
         </body>
    </html>navitem.jsp
    <table width="100%" border="0">
         <c:forEach var="nI" items="${navItem}">
         <tr>
              <td>
                   <a href="<c:out value="${nI.navToURL}" />"><c:out value="${nI.displayText}" /></a><br />
              </td>
         </tr>
         </c:forEach>
    </table>and the resultant html as seen in view source from the browser...
    <html>
         <head>
              <title>My First Test Article</title>
              <link rel="stylesheet" type="text/css" href="webber.css">
         </head>
         <body>
              <table width="100%" border="0">
                   <tr>
                        <td width="200">
                              <table width="100%" border="0">
         <c:forEach var="nI" items="${navItem}">
         <tr>
              <td>
                   <a href="<c:out value="${nI.navToURL} />"><c:out value="${nI.displayText}" /></a><br />
              </td>
         </tr>
         </c:forEach>
    </table>
                        </td>
                        <td>
                             <h3>My First Test</h3>
                             <p>It is the simplest of things.</p>
                        </td>
                   </tr>
              </table>
         </body>
    </html>As you can see, the code in main.jsp is executing fine, but not the code in navitem.jsp. Does anyone have any clues as to why this is happening?
    Thanks in advance
    Elija

    Whoops I think I missed
    <%@taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c" %>
    from navitem.jsp
    however putting that in and trying again results in
    org.apache.jasper.JasperException: javax/servlet/jsp/jstl/core/LoopTagSupport
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
         at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
         at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
         at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    javax.servlet.ServletException: javax/servlet/jsp/jstl/core/LoopTagSupport
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
         at org.apache.jsp.showarticle_jsp._jspService(showarticle_jsp.java:67)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at vss.servlets.ControllerServlet.forwardToJSP(ControllerServlet.java:64)
         at vss.servlets.ControllerServlet.doFind(ControllerServlet.java:59)
         at vss.servlets.ControllerServlet.doGet(ControllerServlet.java:38)
         at vss.servlets.ControllerServlet.doPost(ControllerServlet.java:32)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)Any clues as to what I'm doing wrong?
    Thanks in advance
    Elija

  • Shtml/servlet not executing in defaultFilename

    Has anyone encountered the case where a servlet tag (<servlet
    name=snoop>
    </servlet>) doe not execute inside a defaultFilename of index.shtml?
    Servlet Doesn't Execute
    If the the request URL is of the form http://www.domain.com, it does not
    work.
    Servlet Does Execute
    It does work if the full URL is used http://www.domain.com/index.shtml
    When it does not work, the default page is still getting served.
    However, the servlet has not executed and the servlet tags are still
    inside the html (see below). TIA.
    John Hogan
    Meetu.Com
    p.s. (index.shtml has been set as the defaultFilename in
    weblogic.properties)
    weblogic.httpd.initArgs.file=defaultFilename=index.shtml
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Testing</title>
    </head>
    <body>
    <servlet name=snoop>
    </servlet>
    </body>
    </html>
    [att1.html]

    I came up with a solution, but your options are something to consider, and probably more efficient too. Thank you for that.
    This might not be the best solution, but I left the include of the servlet in the jsp page, passed the request parameter to the servlet, servlet calls db, checks value, if no results, servlet sets a request attribute, retrieve attribute within the jsp, direct the page using a redirect in the jsp.
    Servlet example -
       //get request parameter
      String snr = request.getParameter("snr");
      //call database, query table
      if(!rs.next()) { //value not found
        request.setAttribute("valid","no");
      } else {
        //continue executing servlet methods
    //.... JSP example -
    //include servlet, pass request parameter "snr"
    //get request attribute, check value
    String valid = (String)request.getParameter("valid");
    if(valid.equals("no")) {
       response.sendRedirect("PageNotFound.jsp");
    } else {
      //continue processing page
    //...This works, but maybe I should look into ways (as you suggested) to improve it. In answer to your question, yes, the request parameter is always required. I will need to look into ServletFilter to learn more about that.
    Thank you for the reply and expertise.

  • BPM send step not executed in BPM (after Message split)

    Hello everybody,
    we use BPM:
    We have a paralell Block which should send the rows of a multiline element. In SXMB_BPE_MONI the send step is not executed?
    Any idea?
    Thanks  lot, regards Mario

    HI,
    Go to SXMB_MONI_BPE->and check the workflow log (technical details).and go to SXI_CACHE and check the return code of the Integration Process. It should be zero. If not try to activate the same
    If there is no error then go with like this-
    Also check the Syntax in Integration Repository with F7. Change the IP and activate it. If there is no syntax errors.
    Then reimport the IP into Directory and then test your scenario
    Regards,
    Moorthy

  • MS Office Report (Report Generation toolkit) is not executable​, Xnode broken?

    Hi, I am trying to generate an excel report, and I figured it would be easier to use the MS Office report VI, but I am getting the broken arrow saying the SubVI is not executable and that the library that defines the xnode is broken... here is a screensot attached, I already uninstall and reinstall the report generation toolkit and still the same... this is what I found on NI: "This error occurs when the library that defines the XNode you used is broken. To correct this error, reconfigure the XNode." but no idea how to reconfigure xnode
    Attachments:
    Error.png ‏67 KB

    What version of LabVIEW are you using?
    What is the nature of your Report?  What should it look like?  What kind of data should it contain?
    Can you show us some code that you've tried to use?  If so, include the code as either a Snippet or as a VI attachment (so we can plug it into our own LabVIEW installations and experiment with it).
    I generally find that the Report Generation Toolkit is a very easy way to generate Excel Workbooks.  I work primarily with LabVIEW 2012 and LabVIEW 2014.
    Bob Schor

Maybe you are looking for