JSP form values lost upon servlet request (RequestDispatcher)

Hello,
I have a query screen (jsp) that calls a servlet and gets results. However, although the results or errors display just fine (I do a setAttribute for them), I lose the initial values in the query form (values that the user input - which are stored in the request object). Shouldn't those values be maintained and displayed, since I'm using the RequestDispatcher and thus, I should have the same request object? Thank you, C Turner
*****My JSP (the related code)*****
<jsp:useBean id="form" class="com.foo.ActivityBean" scope="session">
<jsp:setProperty name="form" property="*"
</jsp:useBean>
<HTML>
<BODY>
<FORM ACTION="ActivityFormHandler" METHOD="POST">
<P><B>From Date</B>
<INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="fromDate"/>">
<P><B>To Date</B>
<INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="toDate"/>">
*****Java from my HttpServlet, ActivityFormHandler (acting as a formhandler)*****
if (errors.size() == 0) {
ActivityBean myActivityBean = new ActivityBean();
myActivityBean.setBeanQueryValues(acctNumber, department, fromDate, toDate);
Vector resultsVector = null;
try {
resultsVector = myActivityBean.executeQuery();
} catch (CreateException ce) {
errors.add("There was a problem retrieving the requested data from the database.");
request.setAttribute("results", resultsVector);
} else {
//Data is not okay.
String[] errorArray = (String[])errors.toArray(new String[errors.size()]);
request.setAttribute("errors", errorArray);
RequestDispatcher rd;
rd = getServletContext().getRequestDispatcher("/public_html/ActivityQuery.jsp");
//rd.forward(request, response);
rd.include(request, response);

For those interested in my question, here's what I figured out.
Instead of:
<INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="fromDate"/>">
Use:
<INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<%out.print(request.getParameter("fromDate"));%>">
This allows the input field to persist the query value instead of blanking it out when the results are displayed. -ct

Similar Messages

  • Passing form values to a Servlet

    I am trying to pass form value to a servlet once the user presses the submit button. How can I get access to the form values?
    Thanks

    Try this in your servlet.
    HttpSession session = request.getSession(true);     
    System.out.println(request.getParameter("xxxxx").toString());
    xxxx is the parameter name..
    Doesn't this work?

  • Problem in passing  HTML form values to a servlet in NetBean IDE

    hi there,
    When i click the submit button of the HTML File(with two textFields with values) the value received in the corresponding servlet is null , I used the get method to pass value so i was able to see the values in the URL but when i print the value in the Servlet it display null. I have verfied the web.xml to cheak the servlet mapping is right .Servlet mapping are perfect but i am not getting the value in the next page. Kindly give your suggestions.
    Thanks in advace

    Try this in your servlet.
    HttpSession session = request.getSession(true);     
    System.out.println(request.getParameter("xxxxx").toString());
    xxxx is the parameter name..
    Doesn't this work?

  • JSP form value use

    I have a simple JSP form that gets three values. I need to use one of these values in a query before I hit the Form SUBMIT button. Is there a way to do this?

    Do you mean to say you need the values in the form fields entered by user before submitting the page..?
    In that case you can call a javascript function on click of the button and retrieve the values and after that submit the button.
    Hope this helps.
    Regards,
    Anupama

  • Entered data in form is lost upon export to excel? Help.

    Dear forum members,
    I have a need to deliver a user fillable form to customers on a thumb drive. I created the form from an existing excel spreadsheet. The customers need to enter (numerical) orders for products and return the drive to me. I can get the data entered by the customer to save in the pdf form,but when I export back to excel the entered data from the pdf form is missing. Any help or suggestions would be appreciated.

    Ah, ok, this is for regular PDF files, not for form contents (which are entirely separate). Use TOOLS > Forms > More Form Options > Manage form data. Various export formats are available.

  • Front Panel values lost upon save

    I am just taking my first steps with Labview. I have created a couple of VIs and have managed to get I2C communication happening through a third party DAQ box. The problem I am having is fairly simple, I am trying to save VIs but they are not retaining the values I have entered in the Front Panel.
    I have a top level VI and a couple of subVIs that contain lower level functionality for sending I2C messages. The top level VI has a couple of value controls that let me enter device addresses, etc. It also has groups of toggle switches that I am using to set bits that I later combine into bytes of data that I can send.
    But whenever I save a VI the front panel settings are defaulting to some other value. I dont understand it, I just want the value box to hold the number I entered. And more importantly in this case I need the array of toggle switches to stay where I set them so when I run it again the same bytes are transmitted. But each time I open the VI, the toggle switches are all greyed out and set to 0.
    Is this normal? How do I get controls to retain there values? Is there a design reason they do not?
    Thanks for any advice.
    Solved!
    Go to Solution.

    You may also consider initializing these values from a file. There are lots of posts which go into details about how you can do this. This is a much more flexible and maintainable approach then relying on the default value of a control.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Internal Order value check upon CM request entry

    Hi,
    We would like to receive an error message when the amount input in the sales order exceeds the available value of the assigned Internal Order (in the account assignment tab).  Is this possible?
    Currently, this happens only when we do the billing, where an FI document is generated.
    Pls advise any user exit if any..

    Hi Kailash ,
    What kind of value check are you talking about... Are you concerned wether budget is exceeding limit or not...
    For doing that.. you can use SAP standard functionality using tolerance limit for avialibility control...
    Check the SAP IBM Guide -> Internal Order -> Order Master Data -> Budgetary Control..
    Kindly revert back for any further clarifications
    Regards
    Sarada

  • Multiple servlet actions from jsp forms

    Hi all ,
    how can i do muliple actions from a jsp form, i need to do an action when user clicks on a column and a different action when user clicks on cell in a row .
    i need to read and store the attribute from the column to pass back to the webservice to request that the service sorts the reults by that column either as desecending or as asending.
    also i need to get the value from a cell that is clicked on and pass that through as a parameter to the webservice to request some further data for the specific id.
    how can i do this?
    currently i have a form which has as part of the row an onclick event that captures the value of cell clicked - but what i need to do is change the cell value to a href and if this is clicked capture the value of the href and submitt this to the form action and regonise that the href has been clicked (how do i do that?) and thus do soemething specific for that in the servlet and if the column with its ascending or descending image is clicked capture the asc or desc value and regonise that the column asc or desc has been clicked (how do i do that?) and thus do soemething specific for that in the servlet.
    <tr onclick="selectPatCareRec(this)">
    <td><netui:label value="{container.item.perId}"/></td> rest of form is :-
    you dont need to pay attention to rest of stuff except that which columnHeader field was clicked and in which order (ie ascending or desc)
    also if a cell is clicked to pass the values as part of a submit to the action and regonise that a herf click was done and value of that cell - i have the javascript that is used to find the cell value once the row is clicked.
    <netui:form action="refresh">
          <rpb:repeaterBlock name="contacts" filter="<%=filter%>"
          ascendingImage='<%=request.getContextPath()+"/resources/images/up-arrow.gif"%>'
          descendingImage='<%=request.getContextPath()+"/resources/images/down-arrow.gif"%>'>
          <netui-data:repeater dataSource="{pageFlow.carerGpListResults}">
         <netui-data:repeaterHeader>
           <table class="tablebody" border="0">
             <tr>
               <th><rpb:columnHeader field="SYSTEMREF"></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TITLE"><i18n:getMessage messageName="title"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="GIVENNAME"><i18n:getMessage messageName="given_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="FAMILYNAME"><i18n:getMessage messageName="family_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ADDRESS"><i18n:getMessage messageName="address"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="POSTCODE"><i18n:getMessage messageName="post_code"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="DOB"><i18n:getMessage messageName="dob"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ORGANISATION"><i18n:getMessage messageName="organisation"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TYPE"><i18n:getMessage messageName="type"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="QUESTION"><i18n:getMessage messageName="question"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ANSWER"><i18n:getMessage messageName="answer"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="PER_ID"><i18n:getMessage messageName="patientid"/></rpb:columnHeader></th>
             </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
             <tr onclick="selectPatCareRec(this)">
               <!-- do an on click event to trigger another action to get all the patient list (ie. link it to the patientCasesList jsp) of cases and keep refresh to get sorting -->
              <td><netui:hidden dataInput="{container.item.SYSTEMREF}"dataSource="{actionForm.systemref}"/></td>
              <td><netui:label value="{container.item.TITLE}"/></td>
              <td><netui:label value="{container.item.GIVENNAME}"/></td>
              <td><netui:label value="{container.item.FAMILYNAME}"/></td> 
              <td><netui:label value="{container.item.ADDRESS}"/></td>
             <td><netui:label value="{container.item.POSTCODE}"/></td>
            <td><netui:label value="{container.item.DOB}"/></td>
            <td><netui:label value="{container.item.ORGANISATION}"/></td>
            <td><netui:label value="{container.item.TYPE}"/></td>
            <td><netui:label value="{container.item.QUESTION}"/></td>
           <td><netui:label value="{container.item.ANSWER}"/></td> 
              <td><netui:label value="{container.item.perId}"/></td> 
            </tr>
           </netui-data:repeaterItem>
           <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
         </netui-data:repeater>
         <br />
         <rpb:firstPage label="First"/>
         <rpb:previousPage label="Previous"/>
         <rpb:nextPage label="Next"/>
         <rpb:pageNumber/>
          </rpb:repeaterBlock>
            <div>
            <netui:hidden tagId="selectedPatientId" dataSource="{actionForm.selectedPatientId}" dataInput="{actionForm.selectedPatientId}" />
            </div>
        </netui:form>thanks for any / all help.

    You can modify your connection pool management servlet so you can set the 'connection pool object' as an attribute of the request. Then forward the request to your jsp page.
    Example:
    in your service method of your sevlet, add something like
    public void service (HttpServletRequest request, HttpServletResponse response) {
    ConnectionPool pool= new ConnectionPool();
    request.setAttribute("mypool", pool);
    // forward the request to a jsp page.
    RequestDispatcher dispatcher = request.getRequestDispatcher("jsp/myjsp.jsp");
    dispatcher.forward(request, response);
    }then in your myjsp.jsp, you can access the connection pool object using the 'mypool' attribute.

  • Making a JSP Form read only based on the form value present in DB

    I need suggestions/examples as i am newbie into java stream.
    I have two JSP pages 'Add Page' and 'Edit Page' .
    Add Page -> In add Page,I have many text boxes,select drop-downs options. In one select drop-down I have values as Locked and open .I can save this page contents in DB by entering those form values.
    Edit Page -> In eidtPage,once saved in DB, based on 'select drop-down- Locked and open' If it is locked i have to make all the fields (text boxes and select drop downs) as read only and if it is open i have to make it editable.
    I am taking all the values from DB,setting to 'form bean' and then setting up the values in session and forwarding it to JSP page to populate there .I am using beehive net UI tages in JSP. Please help me out.

    Not sure I'm following what you want, but this might help:
    In your select tag, put something like an 'onchange' event that calls a javascript function. In the javascript function it you add code to enable or disable your other fields based on the item selected from the drop down box.
    To determine what item was selected in a select tag, you write something like the following. I'm not sure of the exact syntax. You can look it up in a javascript book:
    var optionSelected = document.forms[0].selectTagName.options[document.forms[0].selectTagName.selectedIndex].value;
    To enable or disable a textfield, search for this in google:
    'jquery disable input'

  • How to upload files through a servlet/jsp form?

    anyone know basically how to do this?
    i need to write a simple jsp form the can browse for a file on my machine, then upload it to a server in the usual html form manner.
    is this done with an i/o stream?
    thanks for any help!
    robSmyth
    [email protected]

    jspSmart has a free upload component you can use for HTTP file uploading. (http://www.jspsmart.com )
    Also, O'Reilly has an open source package you can use. (http://www.oreilly.com or http://www.servlets.com )
    Another option is dotJ, which has an upload tag in its tag library. Benefit of this library is that it has a much more compehensive set of JSP tags. (http://www.dotjonline.com )

  • How to Disable a entire JSP form based on single value

    Hi,
    My requirement is I have to disbale a JSP form based on getting single value from the drop down box. Please suggust me some ideas.
    Highly aprreciated
    Thanks In advance
    Anbr19

    Well as said by my fellow it could be easily acheived by javscript
    say i'm assuming the dropdown has set of value under a form named SampleForm..
    here is how you do using javascript
    <script language="javascript">
    function disable(txt){
       if(txt == '<Condition Value>'){
           for(var i =0 ; i < document.SampleForm.length ;i++)         
               document.SampleForm.elements.disabled = true;
    </script>
    <form name="SampleForm">
    <select name="dropdown" onchage="disable(this.value)">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </form>
    hope this might help :)
    REGARDS,
    RaHuL

  • Form values null.

    Hi,
    I am having a form field in my jsp page and on sumit I am passing the request to a servlet but in the servlet the form values are null even though i have entered the values in the field. Can any one please help me.
    I am posting my jsp and servlet.
    My jsp page <body>
    <body>
            <form action="LoginHandler" method="post" onsubmit="return ValidateForm(this)">
                <p><label> Login ID</label> <br />
                <input type="text" name="Username" size="10" /><br />
                </p>
                <p><label>Password</label> <br />
                <input type="password" name="Password" size="10" /></p>
                <p><input type="submit" value="Submit" class="textfont" /></p>
            </form>
        </body>
    My servlet
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import communication.ServerComm;
    public class LoginHandler extends HttpServlet {
        ServerComm server;
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
            server = new ServerComm();
          public void destroy() {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            server.openConnection();
          //gets null value here
            String username = (String)request.getAttribute("Username");
            String password = (String)request.getAttribute("Password");
            /*other expressions*/
       protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        public String getServletInfo() {
            return "Short description";
    }Thank you.

    You are calling request.getAttribute().
    You should be calling request.getParameter().
    Attributes vs Parameters
    A parameter is a name/value pair sent with a request - they are always Strings. They are read only - ie can only getParameter()
    An Attribute is a java object you want to save. Attributes can be at the page, request, session or application level. They can be any java object type. You have both get/set attribute calls.
    Cheers,
    evnafets

  • Multiple submit buttons in a jsp form?

    I've been doing some research and found out that multiple buttons in a JSP form are possible by two ways:
    - We can obtain the value of the submit button to know which one was clicked in the parameters of the request using the name of the buttons (which should be the same for all the submit buttons).
    - We can change the submit destination using Javascript (Horrible solution since I want my web site to be safe to be used even if Javascript isn't active in clients browsers. I will use it of course since we can do amazing things with it but I want my website to be able to work without it also)
    WHAT annoys me is the fact that the value of a submit button is also his text, so if I change the text of the submit button, I will always have to check the servlet to do the corresponding change.
    Is there a third choice to be able to use multiple buttons?
    Olivier Voutat

    It seem rather convoluted at first but it's really good. I've not worked with JSF so I've no idea how that compares but from what I know, Craig McClanahan, who came up with Struts, worked on JSF also, so I guess it could only improve on Struts.
    EDIT: Here's a search result on Google'ing his name: http://www.theserverside.com/news/thread.tss?thread_id=29068
    But like I said, you don't have to use Struts ( which only uses standard JSP/ Servlets stuff anyway ), you simply use one of the ideas from it.
    For example; you have a properties file, say "/WEB-INF/properties/myProps.properties" with these entries:
    #USERS MODULE
    users.button.save=Save User
    users.button.search=Search User By Name
    users.button.delete=Delete UserThis would be a key: users.button.save to the value Save User
    Now, in your JSP, you use JSTL <fmt> tags:
    <fmt:setBundle basename="properties.myProps"/>
    //set the resource bundle you want to use
    //and create buttons with the proper values
    <input name="myButton" type="submit"><fmt:message key="users.button.save"/></input>
    <input name="myButton" type="submit"><fmt:message key="users.button.search"/></input>This would create buttons with text "Save User" and "Search User By Name" respectively
    Now, finally, in your servlet:
    //create a map of the properties,
    //possibly on app startup using a ServletContextListener
    //and put it in the servlet context for access everywhere
    HashMap myProps = (HashMap)getServletContext.getAttribute("myPropertiesMap");
    String buttonClicked = request.getParameter("myButton");
    if ( buttonClicked.equals((String)myProps.get("users.button.save")) )
    //perform save action
    else if ( buttonClicked.equals((String)myProps.get("users.button.search")) )
    //perform search action
    //etcYou'll obviously want to optimize this. Perhaps make a method that handles the comparison so you can have neater if conditions. But you get the idea, right?
    Edited by: nogoodatcoding on Oct 4, 2007 8:12 PM

  • How to capture the data from a JSP form

    Hi
    I have a JSP form, My task is to capture the data from a JSP and submit to Data Base. for example I have the field like
    Enter Table name to be created in data base: The table name is to be captured by a servlet and by that table name, table should be created in the data base.
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????
    Edited by: Reddy_Prasad on ?? ?????, ???? ?:?? ???????

    Get the entered value from the jsp into servlet using request.getParameter("enteredTableName"). it will return the String,pass this table name to execute query using JDBC connection and statement objects.
    -cheers Ram

  • Jsp form help

    Hello everyone out there'
    I am a computer science teacher in a private high school in Nigeria and have some experience in java programming language and also new to the JSP tech .I want to introduce the school into using web applications in managing their infomation like registration,staff info,accounts e.t.c .They have asked me to make a presentation in two days time on web appllications ,i have decided to use JSP tech to demonstrate a web application .I have also downloaded the TOMCAT server install and configured it ,set the enviroment varible and is working well when itried invoking a html form.I have even install the j2sdk 1.5.
    The problem now is on my JSP form i want to link to an Access database the code is provided below:
    <%@page contentType="text/html" import="java.sql.*" %>
    <%@page pageEncoding="UTF-8"%>
    <html>
    <head><title>JSP Page</title></head>
    <body bgcolor='palegoldenrod'>
    <img src ='Apps/Japp/logo.jpg ' height="100" width="100"/><hr/>
    <center ><form method="POST" action="/Apps/Japp/TEST.jsp" >
    <table bgcolor='navyblue'>
    <tr><td><font Color="yellow" size="5"><b>Student Number :</b> </font></td>
    <td><input Type ="text" name= "number" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>First Name :</b> </font></td>
    <td><input Type ="text" name= "fname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Middle Name :</b> </font></td>
    <td><input Type ="text" name= "mname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Last Name :</b> </font></td>
    <td><input Type ="text" name= "lname" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Subject :</b> </font></td>
    <td><input Type ="text" name= "sub" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Grade :</b> </font></td>
    <td><input Type ="text" name= "grade" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Exam Type :</b> </font></td>
    <td><input Type ="text" name= "etype" size="30"/></td></tr>
    <tr><td><font Color="yellow" size="5"><b>Number In Group:</b> </font></td>
    <td><input Type ="text" name= "ngroup" size="30"/></td></tr>
    </table>
    <font Color="yellow" size="5"><b>Teachers Comments </b> </font>
    <textarea name= "comment" rows="8" cols=50/></textarea>>
    <input type="submit" value="Submit your Entries" />
    <input type="reset" value="Clear Entries" /></form>
    </center >
    <hr/>
    <%
    Connection conn;
    Statement stat;
    String studentNumber = request.getParameter( "num");
    String firstName= request.getParameter(" fname");
    String middleName= request.getParameter("mname" );
    String lastName = request.getParameter( "lname") ;
    String subject= request.getParameter( "sub") ;
    String grade= request.getParameter("grade") ;
    String numInGroup= request.getParameter("ngroup") ;
    String coment = request.getParameter("comment" ) ;
    String examType= request.getParameter("etype" ) ;
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn = DriverManager.getConnection("jdbc:odbc:Tester","bart","college");
    stat = conn.createStatement();
    stat.executeUpdate( "INSERT INTO REPORT " +
    "VALUES (studentNumber,firstName , middleName,lastName ," +
    "subject,grade,numInGroup,coment,examType" );
    stat.close();
    conn.close();
    catch (Exception e)
    e.printStackTrace();
    %>
    </body>
    </html>
    i am recieving the error message below when I sumit my entry from the form.Can anyone tell me what to do tosolve this problem and do ineed to configure an xml file i n the web module for this iam using NETBEANS IDE
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /Japp/TEST.jsp(6,1) Illegal value of scope attribute: PAGE (must be one of "page", "request", "session", or "application")
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:186)
         org.apache.jasper.compiler.JspUtil.checkScope(JspUtil.java:252)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:536)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1133)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:485)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1518)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
    note The full stack trace of the root cause is available in the Tomcat logs.
    Apache Tomcat/5.0.19

    org.apache.jasper.JasperException: /Japp/TEST.jsp(6,1)
        "Illegal value of scope attribute": "PAGE" (must be one of "page", "request", "session", or "application")The error says it all. In your TEST.jsp you have a JSP tag that uses the scope attribute. You have it written as: scope="PAGE".
    Keep in mind that JSP is Java, and Java is case sensitive. Re-read the error message and see if you can't locate and fix the problem.
    PS: This occurs because you are writing code without following any sort of coding standards. It makes for errors in JSPs, but also real hard to read HTML. Create a set of rules for yourself and follow them. It will make it a lot easier to manage later on. Some example rules:
    1) Name all pages with capital letters to start the name, and to deliminate words. Use lower case letters the rest of the time. Example:
    "Test.jsp" "StudentMailAddressForm.html" ...
    2) Use only lower case letters for tags except when required not to:
    <td ...> <body ...> <jsp:useBean...>
    3) All tag attribute names should be lower case except when required not to:
    < ... color="..." > <... name="... >
    4) Put all tag attributes in double quotes.
    <... name="address" ...> < ... size="15" ... > <... src="images/ThePic.jpg" ...>
    5) Allattribute values should be lower case except:
    a. To distinquish words <... name="hamSandwich" ...>
    b. The value will be displayed to the user <... value="Submit Form" ...>
    c. The value is a proper noun <... user="Steve Luke" ... >
    d. When required to be case sensitive like looking up info in a DB...
    These are just examples, but if you think about the rules when you make them you will be writing good XHTML code in no-time, and the transition to JSP, with its case-sensitivity will be easy.

Maybe you are looking for