Hi, The starting point of the app is the user uploading a zip file the file is processed and a summary of the results displayed (in the form I spoke of).
It's basically a form that doesn't have any parameters but displays a button that goes to the report.jsp page when pushed (at least on my local system) The report.jsp page is supposed to get the array, and 2 vectors from the form page and print out further details in a report format. By putting in a few statement I found out the report.jsp is returning true to the session.isNew() function - I suppose that's why it can't see the variables. The session timeout is set to 1800 seconds. I have not been using URL rewriting and assumed it was using cookies but I have not set up anything to make this explicit -sounds like this might be my problem - can you point me to some documentation that I could refer to? There is no user login - it's basically upload a zip file and it processes it and displays your results if your zip file contents are in the correct format. Thanks! Kimberly On Wed, May 28, 2008 at 1:18 PM, Christopher Schultz < [EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kimberly, > > > Kimberly Begley wrote: > | Hi, > | I have a jsp form that sets session attributes as such: > | session.setAttribute("totals",totals); > | session.setAttribute("failures",failures); > | session.setAttribute("skips",skips); > | > | and then the form directs to the report.jsp page as follows: > | <form name="resultreport" action="report.jsp" method=post> > | > | where the values are supposed to be retrieved like this: > | > | String[] totals = (String[])session.getAttribute("totals"); > | Vector<String> failures = > (Vector<String>)session.getAttribute("failures"); > | Vector<String> skips = (Vector<String>)session.getAttribute("skips"); > | > | > | I have tried using getAttribute, setAtrribute as well as setValue, > getValue > | --- the setValue, getValue work fine from my local copy but when moved > onto > | a server with the same linux version and tomcat version (5 that is) it is > | returning null values for the 3 variables. > > FYI getValue and setValue should be mapped to getAttribute and > setAttribute (with the latter being the preferred form). > > This really has nothing to do with the form, right? You just have data > in the session and you want to pull it out someplace. > > Are you using cookie-based session-id-passing or url-rewriting. > > - -chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkg8zwIACgkQ9CaO5/Lv0PBaeACcCivFvzaEN0yRIWLq3swazgaA > J10AnjmNPASWyl7jLZuXkG4qHh2jixfL > =rlvC > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Kimberly Begley