thanks tom for your suggestion..

i perfomed an experiment by placing a string in the
session on a jsp page and then tried to access that
string from another page.  it worked perfectly.  so
now the question becomes:  how do i place something
into the session from a servlet so that a jsp can find
it?  could there be a config parameter that i am
missing?  could it be in the way i redirect to the
jsp?

i agree with Kit's advice and in fact i am working on
a bean implementation of this functionality.  but i
need to get this inelegant hack working asap.. ;-)

regards,
bradley mclain

--- Thomas Munro <[EMAIL PROTECTED]> wrote:
> Bradley,
> 
> I do this kind of thing in Orion (although it's JSP
> to JSP - should be the
> same though, as far as I know) and it works for me.
> It seems as though
> there must be some other problem, like maybe
> sessions are somehow being
> disabled (cookies are disabled?)  If you have access
> to a unix box you
> could try running Ethereal to watch the discussion
> between your web
> browser and Orion to make sure that the session id
> is being transmitted
> correctly in both directions maybe? 
> 
> Maybe you could try JSP -> JSP includes with
> <jsp:include> to see if that
> works?
> 
> Thomas Munro
> Software Engineer
> Grey Interactive Paris
> 
> On Wed, 12 Apr 2000, bradley mclain wrote:
> 
> > i must have learnt some bad habits from jrun..
> > 
> > i remain unable to get my session code working on
> > orion.  i have an authentication servlet that
> creates
> > a session and then binds a series of strings to
> it.
> > 
> > i have updated the servlet code so it reads:
> > session.setAttribute("userName",userId);
> > 
> > then the jsp i redirect to executes the following:
> > String userId = (String)
> > session.getAttribute("userName");
> > 
> > afaik, those statements are compliant with the 2.2
> > specification and should work.
> > 
> > so i must have another problem, because where i
> once
> > successfully transferred the information to the
> jsp,
> > now i do not.  i suspect that i must have been
> doing
> > it innappropriately before, and jrun allowed me
> to..
> > 
> > would anyone be willing to describe briefly how
> they
> > would pass information from a servlet to a jsp on
> > orion via the session object?
> > 
> > tia,
> > bradley mclain
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Send online invitations with Yahoo! Invites.
> > http://invites.yahoo.com
> > 
> > 
> 
> 

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

Reply via email to