-----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]

Reply via email to