Problem in forwarding to a JSP file

Here is my code. I'm not able to forward to another jsp when I click on the modify button. If I display anything using alert inside the modify function, it is displaying. But when I include the forward statement, the entire screen becomes blank. What could be the reason.
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*,com.gh.db.*" errorPage="Error.jsp" %>
<html>
<head>
<TITLE>Guest Houses of DOS</TITLE>
</head>
<%@ include file="StdValidations.js" %>
<script Language="text/JavaScript">
function ClearFields()
     document.UserAdmin.Ln.value = "";
     document.UserAdmin.Nm.value = "";
     document.UserAdmin.SecNm.value = "";
     document.UserAdmin.submit1.disabled=false;
     document.UserAdmin.submit2.disabled=false;
     document.UserAdmin.submit3.disabled=false;
     document.UserAdmin.submit4.disabled=true;
     document.UserAdmin.option1.value="";
     document.UserAdmin.option3.value="";
     document.UserAdmin.option2.value="";
function EnterTo()
          document.UserAdmin.option1.value ="Add";
          document.UserAdmin.submit1.disabled=true;
          document.UserAdmin.submit2.disabled=true;
          document.UserAdmin.submit3.disabled=true;
          document.UserAdmin.submit4.disabled=false;
          document.UserAdmin.submit;
function Save()
     alert(document.UserAdmin.option1.value);
     if ((document.UserAdmin.option1.value == "Add"))
if ((document.UserAdmin.Ln.value != "") &&(document.UserAdmin.Nm.value != "") && (document.UserAdmin.SecNm.value != ""))
     document.UserAdmin.option3.value = "Save";
     return true;
else
     alert("Input ALL Values");
     return false;
function valid(form)
     if (document.UserAdmin.option3.value == "")
          this.disabled=true;
          return false;
function Modify()
     <jsp:forward page="ModifyUser.jsp" />
</script>
<body>
<form name="UserAdmin" method="post" action="UserAdmin.jsp" onSubmit="return valid(this);">
<br><br><br>
<center>
<%
     String choice1="",choice3="";
     String Ln="",Nm="",SecNm="",Rl="";
     DBconnection pool = DBconnection.getInstance();
     Connection con = pool.getConnection();
     con.setAutoCommit(false);
     Statement st1 = con.createStatement();
     int NoofRows;
     choice1 = request.getParameter("option1");
     if (choice1 == null) choice1 = "";
     choice3 = request.getParameter("option3");
     if (choice3 == null) choice3 = "";
     if ((choice1.equals("Add")) && (choice3.equals("Save")))
     %>
          <script> alert("done");</script>
     <%
     Ln = request.getParameter("Ln");
     if (Ln == null) Ln = "";
     Nm = request.getParameter("Nm");
     if (Nm == null) Nm = "";
     SecNm = request.getParameter("SecNm");
     if (SecNm == null) SecNm = "";
     try
     st1.executeUpdate("insert into TableUser (LoginName,Name,SectionName,Password) values ('" + Ln + "', '" + Nm + "','" + SecNm + "','" + Ln + "')");
          choice1="";
          choice3="";
          con.commit();
     catch(Exception e)
     e.printStackTrace();
     %>
     <script> alert("Record Already Exists : <%= e %>"); </script>
     <%
     %>
     <script> ClearFields(); </script>
     <%
%>
<%      
     String LoginName= "";
     String Name= "";
     String SectionName= "";
     try
          LoginName = session.getAttribute("LoginName").toString();
          Name = session.getAttribute("Name").toString();
          SectionName = session.getAttribute("SectionName").toString();     
     catch(NullPointerException npe)
          %>
          <jsp:forward page="LoginHere.jsp" >
          <jsp:param name="SessionMode" value="Session Expired try again to log on" />
          </jsp:forward>
          <%
%>
     <table width="80%" bgcolor="#F6F8C4">
          <tr >
          <td align="center">
               <img src="Images/Title.gif">
               <img src="Images/gh1.jpg" ></br>
          </td>
          </tr>
          </tr>
                    <tr>
                    <td>
                    </td>
                    <td align="right">
                         <font face="Times New Roman, Times, serif" size="+1">Logout</font>
                    </td>
          </tr>
     </table>
     <table width="80%" bgcolor="#B6C7E5">
     <tr >
     <td align="center">
          <font face="Comic Sans MS" color="6D3C1E" size="+1">User Addition</font>
     </td>
     </tr>
     </table>
     <table width="80%" bgcolor="#B6C7E5">
          <tr >
          <td >
          <font face="Times New Roman, Times, serif" size="+1">Name:  <%= Name %></font>
          </td>
          <td align="right">
               <font face="Times New Roman, Times, serif" size="+1">SectionName:  <%= SectionName %></font>               
          </td>
          </tr>
     </table>
          <table width="80%" bgcolor="#B6C7E5">
          <tr>
          <td align="center">
          <INPUT name="img" type="Image" value="Assign Role" src="Images/Role.jpg">
          </td>
          <td>
          <table width="80%" bgcolor="#B6C7E5">
               <tr>
               <td width="60%" align="right">
               <P >     Login Name :     <INPUT id=text1 name=Ln> </P >
               <P >     User Name :     <INPUT id=text2 name=Nm> </P>
               <P >     Section Name :    <INPUT id=text3 name=SecNm> </P>
               <p>
               <INPUT name="submit2" type="button" value="Modify" onclick="Modify();">
               <INPUT name="submit1" type="button" value="Add" onclick="EnterTo();">                                                  
               <INPUT name="submit3" type="button" value="Delete" onclick="Delete();"></p>
               </td>
               <td align="left">
               <INPUT name="submit4" class="Button" type="submit" value="Save" disabled="true" onclick="Save();" ></br></br>
               <INPUT name="reset1" type="reset" value="Clear" onClick="ClearFields()" > </br>
               </td>
               </tr>
               </table>
          </td>
          </tr>
          </table>
          <table width="80%" bgcolor="#B6C7E5">
          <tr>
          <td align="center">
               </br>
               <img src="Images/Home.jpg">
          </td>
          </tr>
          </table>     
          <input type=hidden name= "option1"> <br>
          <input type=hidden name= "option3"> <br>
          <input type=hidden name= "option2"> <br>
          <% if (st1 != null) st1.close();
               if (con != null)
                    con.rollback();
                    con.setAutoCommit(true);
                    pool.returnConnection(con);
          }     %>
</table>
</center>
<input name="HomePage" type="hidden">
</form>
</body>
</html>

Hi snma,
This is probably happening because you commited the response twice. Maybe you�ve used the ActionForward object, to forward the response and after forward it, you�ve tried to re-forward using the jsp tag.
the HttpServletResponse has a isCommited() method that can check if the response was commited .

Similar Messages

  • The best way to solve  problem with the site containing  JSP Files java co

    I am getting NullPointerException pointing at some java file but I have the same JSP file of that name.
    and which line it is pointing it is not there in that file means file has 500 lines and it ponting to 700.
    I got this information from log file but I cannot get the exact line where the error is coming from.
    Can I arrange all code of site according to Netbeans, so that I can complile and run everything to get the problems solved.
    I don't know how to proceed?
    And one more thing the results on web sites are comimg very slow , any suggetions to improve the performance
    I am working on a undocumented code left inbetween by some one and new in real time coding.

    JSP pages compile dynamically into Servlets when requested. The error line number you got corresponds to line number of this dynamically generated Servlet not the jsp page. If you are using Apache Tomcat, these dynamically generated files should be located somewhere inside Work Folder. Anyway, you need to debug your jsp page. some line in this particular jsp page is throwing NullPointerException.

  • Problem in forwarding to a jsp page

    Hi everyBody,
    I m forwarding a jsp to another jsp page and i m using
    " <jsp:forward page = "searchForm.jsp"/>"
    it printing statement that i have written jst before that.
    but when it comes to that statement it is giving
    "Servlet Exception :Cannot forward after response has been committed "
    why so?
    can any one help me?
    i m also using struts.
    thanks in advance
    shobhit

    Hi snma,
    This is probably happening because you commited the response twice. Maybe you�ve used the ActionForward object, to forward the response and after forward it, you�ve tried to re-forward using the jsp tag.
    the HttpServletResponse has a isCommited() method that can check if the response was commited .

  • Problem with forward method of jsp

    am having problem with the requestDispatcher.forward method in my jsp + wml , the forward method gets executed but the new page is not displayed in the wap browser,
    code snippet
    small.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" %>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util.Properties "%>
    <%
    System.out.println("in small");
    RequestDispatcher rd = request.getRequestDispatcher("small1.jsp");
    rd.forward(request,response);
    %>
    small1.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" autoFlush="false"%>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.net.*,java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util .Properties"%>
    <%
    String sm = "small1";
    System.out.println("in small1");
    %>
    <wml>
    <card id="two">
    <p>
    <small><%=sm%></small>
    </p>
    </card>
    </wml>
    i get the following output in the log
    in small
    in small1
    but i dont get to see the small1.jsp' content , also the response.sendRedirect method works fine ,,
    pls give me the soln
    Thnk u in advance

    thank u very for the repl this is the message which i get in the nokia wap browser...
    cannot load small1.jsp(HTTP Error 500 Server Error)
    and i use IBM WebSphere as the web server....
    and i have found that using response.reset in the small2.jsp overcomes this problem but the card title and the anchor tag is not displayed !!!!
    what could be this problem?

  • Problem for ResourceBundle calling from jsp file

    Hi, I am using WebLogic 5.1 in Solaris 8
              I use java.util.resourceBundle to get the information from a .properties
              file
              I put the properties file in /opt/weblogic/myserver/serverclasses
              When I call the properties file from EJB, It seems to be OK
              But when I call the properties file from JSP using the same script, It said
              the properties files not found
              The Error message is:
              <ServletContext-General> Servlet fail
              ed with Exception
              java.util.MissingResourceException: Can't find bundle for base name
              test.dbini,
              locale zh_TW
              at
              java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
              .java:707)
              at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
              at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
              at
              jsp_servlet._test._global_95_variable._jspService(_global_95_variable
              .java:85)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              PLease Help!!
              Regards,
              Fannie
              

    Hi,
    open dataset file for input in text mode.
    check sy-subrc = 0.
    while sy-subrc = 0.
      read dataset file into wa.
      if sy-subrc = 0.
      append wa to itab.
      else.
        exit.
      endif.
    endwhile.
    close dataset file.
    regards
    Siggi
    PS: check also the F1-help for open, read and close statements!

  • IE 6 giving the problems while downloading content from JSP File

    Hi,
    I am trying to download the file JSP, Blwo is the test code
    <%
    response.setContentType("application/csv");
    response.setHeader("Content-Disposition", "filename=commissionData.csv;");
    %>
    This     is     test
    This     is     test1
    This     is     test2
    When I try to load this file in IE 6, The error message comes like below
    "Internet Explorer cannot download MyJsp.jsp from localhost.
    Internet Explorer was not able to open this Internet site. The
    requested site is either unavailable or cannot be found. Please try
    again later."
    Can anyone help me in this regards.
    Thanks in advance
    Shailesh S Deshpande

    works fine for me on Tomcat 4.
    What server are you using?
    Is it running? Try restarting it.

  • Problem in configuring my Laptop to run JSP files

    I am having problem in testing my finished JSP files in my laptop. Everytime I run my JSP, it continues requesting for internet connections. It cannot run in an offline modus. I am using Mindows 2000, JDeveloper 3.2.3 and Oracle 9i database.I installed IIS(Internet Information Server). I need urgent help because of my school presentation.

    Hi,
    Please check this link and follow the guide to configure exchange online account to your IPhone:
    https://support.office.com/en-SG/Article/Set-up-email-on-Apple-iPhone-iPad-and-iPod-Touch-b2de2161-cc1d-49ef-9ef9-81acd1c8e234
    Since this forum is for general questions and feedback related to Office for windows, if you need further assistance on this issue, you can post in the following forum:
    https://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicesexchange
    The reason why we recommend posting appropriately is you will get the most
    qualified pool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Error in executing JSP files

    hi there,
    I have a problem when a I execute JSP files. This is the message that I encounter everytime I executing JSP files:
    " Java System Application Server Execution Note: make sure that the j2ee module or application has been deployed before using execution."
    It seems that Application Server can not be started and I don't khow what I must do.
    Best Regards.
    Zolfaghar

    hi friend
    u just restart the application or deploy again on server.
    i hope u won't get any error.
    [email protected]

  • Example J2EE_QuickCarRental: not forwarding to a jsp

    Hello,
    i cannot make a forward to the jsp file; always the path will be "QuickCarRental/servlet/quickCarRentalView.jsp" at the server.
    My web.xml-file:
    <web-app>
        <display-name>Rent-A-Car</display-name>
        <description>Web resources for Car Rental example</description>
        <servlet>
            <servlet-name>quickCarRentalView.jsp</servlet-name>
            <jsp-file>/quickCarRentalView.jsp</jsp-file>
        </servlet>
        <servlet>
            <servlet-name>QuickReservationServlet</servlet-name>
            <servlet-class>com.sap.examples.quickcarrental.servlet.QuickReservationServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>quickCarRentalView.jsp</servlet-name>
            <url-pattern>/view</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>QuickReservationServlet</servlet-name>
            <url-pattern>/</url-pattern>
        </servlet-mapping>
        <ejb-local-ref>
            <ejb-ref-name>ejb/QuickOrderProcessorBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <local-home>com.sap.examples.quickcarrental.QuickOrderProcessorLocalHome</local-home>
            <local>com.sap.examples.quickcarrental.QuickOrderProcessorLocal</local>
            <ejb-link>QuickCarRentalEjb.jar#QuickOrderProcessorBean</ejb-link>
        </ejb-local-ref>
    </web-app>
    code in servlet:
    RequestDispatcher dispatcher = request.getRequestDispatcher("/view");
    message from server:
    Application error occurred during the request procession.
    Details: javax.servlet.ServletException: Requested resource ( QuickCarRental/servlet/quickCarRentalView.jsp ) not found.
         at com.sap.examples.quickcarrental.servlet.QuickReservationServlet.doWork(QuickReservationServlet.java:63)
    After deployment on server the jsp-file will be in the root-folder.
    Thanks,
    Frank

    try removing the forward slash before your jsp:
    <servlet>
    <servlet-name>quickCarRentalView.jsp</servlet-name>
    <jsp-file>quickCarRentalView.jsp</jsp-file>
    </servlet>

  • Problem in loading few jsp files

    Hi,
    I am facing problem in loading very few jsp pages. The situation is something like this.
    Server: WebSphere
    I have a top frame and bottom frame.
    When the user keep on clicking the same link in the top frame, not giving time to get loaded in bottom frame,
    on the server the error "Servlet Error: Connection reset by peer: socket write error: java.net.SocketException: Connection reset by peer: socket write error" was coming.
    My bother is not on the server-side. but on the client side.
    On the client side, the html of two requests are getting overlapped and displaying(see at the end for sample output of html). In this HTML, if you observe, you can find the line "Error 500: Connection reset by peer: socket write error
    ". Above to this is the half-content of the previous request and bellow is the actual page need to be loaded. And the output was a merge of actual page with the code of the previous request.
    Is it the problem of Websphere or coding?
    Can you help me resolving this problem?
    thanks
    naveen
    Output HTML (for example):
         Contract Name:</td>
         <td class="Label" ><input type="text" id="contractName"
    size="25" maxlength = "100"></td>
         <td class="Label" >Owner:</td>
         <td class="Label" colspan="2"><select id="owner" class="Label"
    size="1" style="WIDTH:200px">
         <option value="_______________">_____________</option>
         </select></td>
                   </td>
    Error 500: Connection reset by peer: socket write error
    <html>
    <head>
    <title> welcome </title>
    <link rel="STYLESHEET" type="text/css" href="Scripts/SSheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- This .js script files contains all components, which is used -->
    .... and so on
    </html>

    Hi
    I have Observed that "java.net.SocketException: Connection reset by peer" is caused due to manual malfunction performed by the user in the browser like sending multiple request to the server stopping, moving forward, moving backward when a request is placed to the server and waiting for it to get it done.
    More clearly if the User Selected an option from the browser and send a request to the server and followed by sending another request immediately to the server and by this time Server is processed the first request and is started writing the result to the JSP/Browser (Same client), by this time the 2nd reqest from the same Browser/Client is interrupted the first one and ohhhhhhh..... problem , you got an error "java.net.SocketException: Connection reset by peer".
    If any one could figure out more Please update me too appreciate !
    [email protected]
    Sr. Software Architect

  • JSP file not found. server.xml/web.xml problem?

    Hi there,
    I have a login.jsp that accepts username and password. Once login is approve, it calls main.jsp file as follows using <jsp:forwards>:
    if (login != null){
    out.println("Login Successful!");
    session.setAttribute("sessionUsername", username);
    session.setAttribute("sessionPassword", password);
    out.println("session started!");%>
    <jsp:forward page="main.jsp" />
    Problem is that the server returns "file not found", when I'm sure the main.jsp is right there! I suspect there is some configuration problem with the Tomcat, but I donno what. Do I need to edit the server.xml or web.xml, coz I didn't?

    please check that the jsp file to which you are forwarding the request exist at the same location where forwarding jsp exists.

  • Exception while forwarding request to another jsp file.

    Hi
    I am getting following exception when I try to forward request from one jsp file to another using <jsp:forward> . I am using tomcat 5.5.9.
    thanks in advance
    org.apache.jasper.JasperException
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:66)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:81)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:293)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
    at org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:65)
    at org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:647)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:645)
    at org.apache.jsp.mseries.SpareCheckSend_jsp._jspService(org.apache.jsp.mseries.SpareCheckSend_jsp:141)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
    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:856)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    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)

    I believe you will need to more clearly describe what you are trying to do and what the problem is that you are having before you get a reply to your question.

  • 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/

  • Problem with jsp file on Mac running windows 7 thru bootcamp

    I'm running Windows 7 64 bit on a Mac.  Install went fine.  Problem is that I cannot launch a jsp file (that then launches Citrix).  Instead I get a message that it wants to save the file, or search the web for the program to open it. 
    I downloaded and installed Java (from Java website), but still have the same problem.  Any ideas?  Thanks!

    It does not work in Windows, "I'm running Windows 7 64 bit" that is why I suggested to check your "Windows" file associations and to look into a Windows forum. The issue has to do with Windows. Are you trying to view a jsp page with a browser? If so, what is the url? Are you trying to serve jsp pages? If so have you correctly configured a server with a srvlet container such as Tomcat?
    jsp pages are opened with a browser.

  • Ergent problem with the jsp file access in tomcat. HELP...

    I use tomcat as my server, I have one JSP file located in :
    webapps\abc\war\WEB-INF\jsp\index.jsp
    You see my project name is abc, I want to access the index.jsp file, I define another jsp file in the path: webapps\abc callled outside.jsp. I want to use outside.jsp to invoke the index.jsp.
    Inside outside.jsp it is :
    <html>
    <head>
    <title>index</title>
    </head>
    <body>
    <%@ include file="war/WEB-INF/jsp/index.jsp" %/>
    </body>
    </html>
    When I open the browser, and access, http://localhost:8080/abc/outside.jsp , the content of index.jsp was shown as expect. But, all the link pages of the index.jsp can not shown (PS: the link pages is located in the same path as index.jsp, they are all jsp files). I guess the problem may be that the <%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file. Is there any method to make all the link pages of index.jsp can be shown when call from outside.jsp???HELP
    Message was edited by:
    Mellon
    Message was edited by:
    Mellon

    I don't know why your links can't be shown, but I can tell you that your suspect:
    I guess the problem may be that the <%@ include file="war/WEB-INF/jsp/index.jsp" %/> inside outside.jsp include the index.jsp as a static file.is wrong, because included jsp is dynamic, not static.

Maybe you are looking for

  • Multiple copies in Aperture Photo Stream

    I use one photostream for two iPhone 4Ss, an iPad 2, Apple TV, and on two MacBooks (both running Lion, one using Aperture 3 and one using iPhoto '11). I have Aperture running on my Late 2009 13" Unibody MacBook Pro automatically import photostream ph

  • 7.1.1 iTunes Fails to Launch (No Error Message, Pretty Weird)

    After downloading iTunes 7.1.1, I installed iTunes. The installation went well and everything was installed. I had no problem with installation. However, after installing, I tried opening iTunes. However it fails to launch and I don't receive an erro

  • ....dead iPod nano 2nd gen.. seriously...

    I have a big problem... this morning my iPod was fine, and I went to work (with my iPod in my pocket), and went on with my day... and when i got home, my ipod wouldnt turn on, and it has a fuly charged battery ... and when i try the "5 Rs" they dont

  • Missing Mailbox

    I am missing a Mailbox in Mail. It has not been used for at least a year. When I tried to access it today, I got the message "Email needs to be downloaded. Take this account online." for each message in the mailbox. These emails were years old and ha

  • My computer continues to say xvi.dll was not found. Reinstalling may fix the problem what to do?

    my computer continues to say xvi.dll was not found. Reinstalling may fix the problem what to ?