----- Original Message -----
From: bradley mclain <[EMAIL PROTECTED]>


> then the jsp i redirect to executes the following:
> String userId = (String)
> session.getAttribute("userName");
>
> would anyone be willing to describe briefly how they
> would pass information from a servlet to a jsp on
> orion via the session object?

I would think that the way you did it would work too, but the way I do it is
using jsp:useBean. It might make sense for you to package all your strings
up into a bean and then pass that along to your jsp. In my case, I have a
user object, where userid is one of the strings in the object:

<jsp:useBean id="user" class="my.package.UserBean" scope="session"/>
<html>
    The user logged in is: <jsp:getProperty name="user" property="userId"/>.
</html>

You may have to do a little rework, but I think it's a little more elegant
in your jsp.

Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com


Reply via email to