Help required in jsp forward page

here i made four page in the first page i get the username and password and move it into second page in the second page it evaluates if username equals dineshkumar and password equals dinesh it shows third page else it shows fourth page here the problem is when username is dineshkumar and password is dinesh it goes to success page if wrong password entered it remains in the login page itself
index.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body><form action="second.jsp" method="POST">
enter the username <input type="text" name="t1" value="" size="20" />
enter the password <input type="text" name="t2" value="" size="20" />
<input type="submit" value="submit" />
<input type="reset" value="cancel" />
</form>
</body>
</html>
secondpage.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body><form action="second.jsp" method="POST">
enter the username <input type="text" name="t1" value="" size="20" />
enter the password <input type="text" name="t2" value="" size="20" />
<input type="submit" value="submit" />
<input type="reset" value="cancel" />
</form>
</body>
</html>
thirdpage.jsp
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body><form action="second.jsp" method="POST">
enter the username <input type="text" name="t1" value="" size="20" />
enter the password <input type="text" name="t2" value="" size="20" />
<input type="submit" value="submit" />
<input type="reset" value="cancel" />
</form>
</body>
</html>
fourth page
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>JSP Page</h1>
this is an error page
</body>
</html>

i am sorry i retifed it i am extremly sorry guys

Similar Messages

  • Can a .jsp contain more then one jsp:forward page

    Can a .jsp contain more then one jsp:forward page if it's conditional.
    ie. if condition true
    forward to pageA
    else
    forward to pageB?
    Thank you.

    gimbal2,
    Thanks for the response. I did try it and I got a
    compile error. I just realized that the error was
    regarding a different issue.
    JJIn that case, it would have been appropriate to post the actual problem.

  • Which jar file is required for jsp dynpro page programming ?

    Hi all:
       I use NWDS wizard to create one small jsp dynpro page application. However the project has some errors, it said "
    This compilation unit indirectly references the missing type com.sapportals.htmlb.page.DynPage (typically some required class file is referencing a type outside the classpath)     Test1.java     NewParProject1/src.core/com/xinao/test     line 0
    " However, I found the class DynPage is not found in current project.
    I have already added com.sap.portal.htmlb_api.jar into my project.
    Where can I locate and find that jar file (which include the DynPage class ) ?

    Hi,
      Refer the following link content. It has answer to your question.
      class path incomplete at first portal component project
    Rds,
    Shanthakumar.
    points r welcome.

  • Help required in jsp

    hi guys i have a problem in jsp here in my code i get input from first html and pass th second jsp an d my jsp is connected to usebean
    welcome.html
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <form action="usedbean.jsp" method="POST">
    <table border="1">
    <tbody>
    <tr>
    <td> <input type="radio" name="a1" value="add" />addition</td>
    </tr>
    <tr>
    <td><input type="radio" name="a1" value="sub" />subration</td>
    </tr>
    <tr>
    <td><input type="radio" name="a1" value="div" />division</td>
    </tr>
    </tbody>
    </table>
    input two number <input type="text" name="t1" value="" size="20" />
    <input type="submit" value="submit" />
    <input type="reset" value="cancel" />
    </form>
    </body>
    </html>
    usebean.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <jsp:useBean id="tag" scope="page" class="test.optionbean" />
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    String str =request.getParameter("r1");
    String str1 = request.getParameter("t1");
    //String str2 = request.getParameter("t2");
    int n1 = Integer.parseInt(str1);
    // int n2 = Integer.parseInt(str2);
    int N3 = 0;
    optionbean.setstr(str);
    optionbean.setN3(n1);
    %>
    thus the output      <%=optionbean.getN3()%>
    </body>
    </html>
    and optionbean.java
    * optionbean.java
    * Created on September 1, 2007, 5:06 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package test;
    import java.io.*;
    * @author d
    public class optionbean implements Serializable {
    public String str ;
    public int N3;
    String final_output="" ;
    public int getN3() {
    return N3;
    public void setN3(int n1 ) {
                   if(str.equals("add")){
    N3 = n1+10;
    final_output="addition";
    if(str.equals("sub")){
    N3 = n1-10;
    final_output="subration";
    if(str.equals("add")){
    N3 = n1/10;
    final_output="division";
    public String getStr() {
    return str;
    public void setStr(String str) {
    this.str = str;
    th error it shows is
    C:\Documents and Settings\d\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\WebApplication11\org\apache\jsp\usedbean_jsp.java:75: cannot find symbol
    symbol : variable optionbean
    location: class org.apache.jsp.usedbean_jsp
    optionbean.setstr(str);
    ^
    C:\Documents and Settings\d\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\WebApplication11\org\apache\jsp\usedbean_jsp.java:76: cannot find symbol
    symbol : variable optionbean
    location: class org.apache.jsp.usedbean_jsp
    optionbean.setN3(n1);
    ^
    C:\Documents and Settings\d\.netbeans\5.5\apache-tomcat-5.5.17_base\work\Catalina\localhost\WebApplication11\org\apache\jsp\usedbean_jsp.java:84: cannot find symbol
    symbol : variable optionbean
    location: class org.apache.jsp.usedbean_jsp
    out.print(optionbean.getN3());
    ^
    3 errors

    ya i corrected that error to
    now the problem is that is not excuting
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    The taglib directive below imports the JSTL library. If you uncomment it,
    you must also add the JSTL library to the project. The Add Library... action
    on Libraries node in Projects view can be used to add the JSTL 1.1 library.
    --%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <jsp:useBean id="optionbean" scope="page" class="test.optionbean" />
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <%
    String data =request.getParameter("r1");
    String str1 = request.getParameter("t1");
    //String str2 = request.getParameter("t2");
    int n1 = Integer.parseInt(str1);
    // int n2 = Integer.parseInt(str2);
    optionbean.setdata(data);
    optionbean.setN3(n1);
    %>
    thus the output      <%=optionbean.getN3()%>
    </body>
    </html>
    an my bean class optionbean is
    * optionbean.java
    * Created on September 1, 2007, 5:06 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package test;
    import java.io.*;
    * @author d
    public class optionbean implements Serializable {
    private String data ;
    public int N3;
    String final_output="" ;
    public int getN3() {
    return N3;
    public void setN3(int n1 ) {
                   if(data.equals("add")){
    N3 = n1+10;
    final_output="addition";
    if(data.equals("sub")){
    N3 = n1-10;
    final_output="subration";
    if(data.equals("div")){
    N3 = n1/10;
    final_output="division";
    public String getdata() {
    return data;
    public void setdata(String data) {
    this.data = data;
    the error it shows
    rg.apache.jasper.JasperException: Exception in JSP: /usedbean.jsp:33
    30:
    31:
    32: optionbean.setdata(data);
    33: optionbean.setN3(n1);
    34:
    35:
    36:
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    java.lang.NullPointerException
         test.optionbean.setN3(optionbean.java:28)
         org.apache.jsp.usedbean_jsp._jspService(usedbean_jsp.java:77)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)

  • Help required In JsP :emergency...

    i want to display a set of data in a jsp page . on one jsp page , i select one date
    this date is present in a form, nd it is passed onto a servlet file from where, a database query is accessed
    this query compares the date entered by user, and that date present in a database table
    then, selects other relevant data, and is stored in a bean
    this bean is now added to an ArrayList from this ArrayList, using a for loop, i display those data in the next
    page.
    But I can't do this ..please let me know..what is the exact procedure..........this is an emergency situation for
    me...so i will be looking for a quick reply...
    Thanks & regards

    you mean getting the data from the beans and iterate it to the jsp? http://www.engineeringserver.com/blog/2008/01/30/coding-nasty-works-arounds-every-programmer-should-to-that-atleast-once/

  • Why the jsp tag jsp:forward page="page.jsp" / works when i work with web server iPlanet in a Solaris machine and doesn't work with the same web server, in a Windows 2000 machine ?

    The request parameters don't go to the "page.jsp"...

    If someone else runs into this, here is how I solved the problem -
              If you create a PrintWriter object with the autoflush option, it
              doesn't flush the underlying buffer till you call println on it. I
              looked through the generated code for the servlet, and it was doing a
              JSPWriter.print() to output information.
              So, I changed the ResponseWrapper to keep a handle to the PrintWriter
              object, and then flush it in the filter, and that works.
              Why the same code behaves differently in JRun & Weblogic, I'm not sure
              --Sridhar
              

  • Help required with JSP and JMF

    Hi
    Please check the following thread and let me know if JSP and JMF can be combined together
    http://forum.java.sun.com/thread.jspa?threadID=5161428&tstart=0
    ~Aman

    take a look at the Java Upload bean and it's examples
    http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html

  • Help required with locking of pages!!

    Hi,
    We have two different instances of HTML DB , when we export the application from one instance to another and install it there , the page locks donot seem to get carried ...is it designed to be this way or are we missing out something here...
    Regards
    Naveen

    Naveen - The page lock info stays with the development environment and does not go with the application.
    Scott

  • Help!!!why the flag " jsp:forward" don't work?

    the code like this:
    <%@page buffer="none" autoFlush="true" %> //attention: buffer="none"
    <%
    long i=0;
    for(i=0;i<10;i++)
    out.println("@@@@@@@@@@@@@@@@@");
    %>
    <jsp:forward page="test.jsp" />
    but it not turn to the page "test.jsp".Why?

    but it not turn to the page "test.jsp".Why? because of your page buffer being none.
    According to the API:
    forward should be called before the response has been committed to the client (before response body output has been flushed). If the response already has been committed, this method throws an IllegalStateException. Uncommitted output in the response buffer is automatically cleared before the forward.
    Having a buffer of "none" means that any output you do is sent immediately, and is committed. So you can't forward/redirect after you start output.
    Solution: give the page a buffer. Remove that page directive, and it should work.
    Cheers,
    evnafets

  • Plz Help to forward pages

    Hello Techies,
    I m New to JSP . I need to forward pages according to the if condition. I worked out the code as
    <%@ page language="java" %>
    <%@ page session="true" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select * from Login");
    while(rs.next())
    String str3=rs.getString(1);
    String str4=rs.getString(2);
    if(str1==str3)
    out.println("Connection Succeded");
    %>
    <jsp:forward page="try.jsp" />
    <%
    break;
    %>
    <TABLE border=2>
    <%
    while(rs.next())
    %>
    <TR>
    <TD><%=rs.getString(1) %></TD>
    <TD><%=rs.getString(2) %></TD>
    </TR>
    <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    catch(Exception d)
    out.println(d.getMessage());
    %>
    </body>
    </html>
    Here i m have created DSN namely Login and i m also having respected datas in database. It work fine showing me the results but it is not forwarding to the First.jsp file. I m having that file in the same folder
    Here i m using Tomcat web container 4.1. Plz give me a suggestion. All suggestions are welcomed.
    Thanks in advance
    Aski
    [email protected]

    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
        Statement stmt=con.createStatement();
        ResultSet rs=stmt.executeQuery("select * from Login");
        while(rs.next()) {
            String str3=rs.getString(1);
            String str4=rs.getString(2);
            // need --> if(str1.equals(str3) {
            if(str1==str3) {
                out.println("Connection Succeded");
    %>
            <jsp:forward page="try.jsp" />
    <%
            break;
    %>
    <TABLE border=2>
        <%
        while(rs.next()) {
        %>
        <TR>
            <TD><%=rs.getString(1) %></TD>
            <TD><%=rs.getString(2) %></TD>
        </TR>
        <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    } catch(Exception d) {
        out.println(d.getMessage());
    %>also i think it may be skipping to exception is it ?
    beacuse you calling
            <TD><%=rs.getString(1) %></TD>
            <TD><%=rs.getString(2) %></TD>after you called rs.getString(1) & (2) earlier, try grabbing a reference to them outside of try instantiate them on first call and reuse that reference for the second time you want
    them
    like
    <%
    Connection con=null;
    String str1=request.getParameter("user");
    String str2=request.getParameter("password");
    String _str3 = null;
    String _str4 = null;
    try {
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        con=DriverManager.getConnection("jdbc:odbc:Login","sa","");
        Statement stmt=con.createStatement();
        ResultSet rs=stmt.executeQuery("select * from Login");
        while(rs.next()) {
            _str3=rs.getString(1);
            _str4=rs.getString(2);
            // need --> if(str1.equals(str3) {
            if(str1==str3) {
                out.println("Connection Succeded");
    %>
            <jsp:forward page="try.jsp" />
    <%
            break;
    %>
    <TABLE border=2>
        <%
        while(rs.next()) {
        %>
        <TR>
            <TD><%= _str3 %></TD>
            <TD><%= _str4 %></TD>
        </TR>
        <%
    %>
    </TABLE>
    <%-- <jsp:forward page="First.jsp"/> --%>
    <%
    } catch(Exception d) {
        out.println(d.getMessage());
    %>hth
    g00fy

  • Help with JSP Forward !!!

    I have 3 pages ...1) index.jsp 2) Forward.jsp 3) welcome.jsp
    I have 2 fields in the index.jsp once upon filling & hit submit it has to to go Forward.jsp page...in the Forward.jsp..i have coded only one tag with
    <jsp:forward page="welcome.jsp" />
    I have one question...once the page comes to Forward page...will it display the contents of the Welcome .jsp in the same page itself...or it will go to Welcome.jsp page..
    As i saw it will display the contents of Welcome.jsp page in itself...
    Please let me know...
    Regards
    Gnanesh

    I understand your question only because I have a set up totally identical to yours. The thread Matt suggested does explain the situation (i.e. the server passed control to another page but the client doesn't know that), but doesn't necessarily give a good solution a problem that you may have, and that I do have:
    If the user sees the welcome page, and for some reason decides to "reload", the forward page is re-executed, even though it has done its job. This could be a problem for session management if you specifically don't want that job being done twice in a session. Now you could hack around that, but I'd really rather see a neat solution. Is there one?

  • Jsp:forward problem, help appreciated

    hi all,
    The following piece of code from a jsp page is giving the following error
    "java.lang.IllegalStateException: Error: Attempt to clear a buffer that's already been flushed".
    updateToCompAccount is a button on the previous page
    <%
    if(request.getParameter("updateToCompAccount")!=null){
    %>
    <jsp:forward page="UpdateToCompAccount.jhtml" />
    <% } %>
    here is the stack trace:
    java.lang.IllegalStateException: Error: Attempt to clear a buffer that's already been flushed
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:376)
    at org.apache.jsp.adminUserProfileUpdate_jhtml._jspService(adminUserProfileUpdate_jhtml.java:474)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
    at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:409)
    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:528)
    at java.lang.Thread.run(Thread.java:595)
    Anybody have any ideas?
    Thanks.

    Well, the simplest way to do this would be:
    public class MyClass extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response) {
           String buttonName = request.getParameter("myButtonRequestVariable");
           if ("update".equals(buttonName)) {
               request.getRequestDispatcher("UpdateToCompAccount.jhtml").
                             forward(request, response)
             } else if ("delete".equals(buttonName)) {
                  request.getRequestDispatcher("DeleteCompAccount.jhtml").
                            forward(request, response)
             } else {
                  request.getRequestDispatcher("ErrorPage.jhtml").
                      forward(request, response)
      public void doPost(HttpServletRequest request,
    } But that can get unwieldy if you've loads of buttons. Have you studied the concept of Model View Controller (MVC)?

  • Is the jsp forward tag fails in iplanet application server sp2?

    11/Feb/2002 17:55:41:2] error: Exception: SERVLET-compile_failed: Failed in compiling template: /EinsWebTool/QueryScreen.jsp, Parse error in JSP parser. Missing endtag: /jsp:forward
    Exception Stack Trace:
    java.lang.Exception: Parse error in JSP parser. Missing endtag: /jsp:forward
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parseReqDisp(Unknown Source)
    at com.netscape.jsp.JSP.parseTag(Compiled Code)
    at com.netscape.jsp.JSP.parseNext(Compiled Code)
    at com.netscape.jsp.JSP.parseBlock(Compiled Code)
    at com.netscape.jsp.JSP.parse(Unknown Source)
    at com.netscape.jsp.JSP.compile(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.JSPtoJava(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Compiled Code)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.jsp.PageContextImpl.forward(Unknown Source)
    at jsp.APPS.EinsWebTool.Login._jspService(Compiled Code)
    at jsp.APPS.EinsWebTool.Login.service(Login.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown Source)
    at com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.applogic.AppLogic.execute(Compiled Code)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)

    Hi,
    Yes, I was able to code this sucessfully and got it working. Here is the code I used...
    <%
    String fortune = (String) request.getAttribute("fortune_string");
    %>
    <HTML>
    <HEAD><TITLE>Fortune Sample Application</TITLE></HEAD>
    <BODY BGCOLOR=#FFFFFF>
    <H2>The Oracular Servlet greets you!</H2>
    <p>
    Your fortune is...
    <%= fortune%>
    <p>
    <p>
    <hr size=0>
    <p>
    <FONT SIZE=2>Sample Applications
    <jsp:forward page="/ias-samples/index.html">
    </jsp:forward>
    </BODY>
    </HTML>
    and I got it working. I believe the code is missing some tag, which I tried, but got error in KJS like...
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    [15/Feb/2002 11:23:49:7] info: jsp.APPS.fortune.fortune: init
    [15/Feb/2002 11:23:49:7] info: --------------------------------------
    Null text data??
    2002-02-15 11:24:16 - error-the file '\fortune.jsp' generated the following pars
    e exception: org.apache.jasper.compiler.ParseException: C:\iplanet\ias6\ias\APPS
    \fortune\fortune\fortune.jsp(17,0) Expected "param" tag with "name" and "value"
    attributes after the "params" tag.
    In your case, I suspect, either the parser is not able to convert the .jsp file appropriately, or some inappropriate tag. If this doesn't help please send me your code & I can help you on this regard.
    Regards
    Raj
    [email protected]

  • How to use TARGET in jsp:forward ???

    In a link I can use TARGET to display the page in another frame like this:
    <a href="http://localhost:8080/cars/Menu.jsp TARGET=FrameRight>Counties</A>
    Is it possible to do something similar when forwarding a page with the jsp:forward standard action??
    <jsp:forward page=SomePage" /">Would help me out if it was possible.</a>

    No. It is not possible, '<jsp:forward' is not meant for opening the page in a said location. It simply forwards the request to the target jsp. Then your taget JSP will take care of resonding to the request.
    If you want to open the page (jsp) in another frame, just stick on to the anchor tag and append your query string to the target jsp.
    <% String query = "?name=xxx&age=30&dept=22"; %>
    <a href="Target.jsp<%=query%> target="frameright">Counties</a>
    Sudha

  • Problem in jsp:forward

    hi,
    i have a jsp page from where i have to call my servlet.but it is mapped in xml by other name.so what should i do?can i call that servlet using named mapped into the xml.
    can i do this?
    <jsp:forward page="/servlet/web.xml mapping"></jsp:forward>
    it's urgent.
    so please help me.
    kamlesh solanki

    hey man,
    how u doin?
    your problem is quite funny. here in servlet configuration in the xml file there is what we call servlet mapping<servlet-mapping>.
    here is how we map a servlet to a kind of url:
    <servlet-mapping>
    <servlet-name>
    havet
    <servlet-name>
    <url-pattern>
    /havva.jspa
    </url-pattern>
    </servlet-mapping>
    nbow when calling this servlet using this url pattern it now behaves as if its in the main application directory just like where jsps are so u will forward to it like a jsp.
    thats the shizzy.
    ok call it like this now
    <jsp:forward page="havva.jspa" />
    or
    <jsp:forward page="havva.jspa"></jsp:forward>
    since u may be used to this style of calling the tag.
    stay cool and let me know if u had any problems.

Maybe you are looking for

  • HT1369 when syncing ipod, receiving blue screen error WDF_Violation

    When syncing ipod, receiving blue screen error WDF_Violation

  • MaxDB 7.5 does not clear logarea after full backup

    Hi all, We have MaxDB 7.5, turned on the auto-log-backup and are running full data-backups every night. The problem is that the log-area is not cleared as I expected, so the log-area is filling up at 300 MB per day. Was I wrong to expect the log-area

  • Link to url, "_self" is opening a new page...

    I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code? my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void {     naviga

  • Time Machine Text Disappearing?

    I was wondering if anyone else experienced this or knows how to fix it. Sometimes, when I go to open Time Machine, the text on the two bottom buttons, "Cancel" and "Restore" isn't there. Everything else is fine - the file name text, the dates on the

  • Dotnet iviews

    Hi all, While running dotnet iviews on the ep ,I m getting an error saying 'could not find file com.sap.portal.common.commonservices'. Can anyone tell me how to fix this problem or where to find this file. thanx, Rohit