Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 95220 invoked from network); 2 Jun 2000 18:17:05 -0000 Received: from unknown (HELO hmhost.horacemann.com) (208.130.69.194) by locus.apache.org with SMTP; 2 Jun 2000 18:17:05 -0000 Received: from hmhost.horacemann.com (root@localhost) by hmhost.horacemann.com with ESMTP id NAA28463 for ; Fri, 2 Jun 2000 13:31:42 -0500 (CDT) Received: from horacemann.com ([10.3.9.16]) by hmhost.horacemann.com with ESMTP id NAA28459 for ; Fri, 2 Jun 2000 13:31:42 -0500 (CDT) Message-ID: <3937F89D.A8D67184@horacemann.com> Date: Fri, 02 Jun 2000 13:10:37 -0500 From: Chris Heinemann X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: jakarta Subject: JSP file not finding object Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi everybody, I have a slight problem. With a servlet I create a Vector filled with Strings (error messages). I add that to the session. After that I redirect to a JSP. The JSP can't get the value back out of the session. Here is the relivant code: try{ System.out.println ((String)req.getParameter ("ANSWER")); p.setAnswer ( (String)req.getParameter ("ANSWER")); }catch (Exception e){ ok=false; errors.add (e.getMessage ()); } try{ System.out.println ((String)req.getParameter ("PASS1")); System.out.println ((String)req.getParameter ("PASS2")); String pass1 = (String)req.getParameter ("PASS1"); String pass2 = (String)req.getParameter ("PASS2"); if (pass1.equals (pass2)){ p.setPassword ( (String)req.getParameter ("SSN")); }else{ p.setPassword (null); } }catch (Exception e){ ok=false; errors.add (e.getMessage ()); } for (int i=0;i Please complete the form to create your account.

<% Vector errors = (Vector) session.getAttribute ("errors"); if (errors != null){ //session.removeValue("errors"); if (errors.size() > 0){ %>
    <% for (int i=0;i
  • <%=(String)errors.elementAt(i) %> <% } %>
<% }else{%>blah<%} }else{ %><%=(String)session.getAttribute ("TIME")%><% } %>
Please complete all fields.
Your social security number :
The password you would like :
Your password again :
Your email address :
Your hint question:
Your hint answer :
Your account number :
  
Any help is appreciated.... Thanks, Chris Heinemann