Sorry to keep this going Scott.... I guess I am really lost now. I am not 
sure what you mean when you talk about javascript and API together. Are you 
talking about Jetspeed itself? I guess I am back to square one here trying 
to understand how I would have MY own portlet content in the browser call 
back directly to a url on MY app that returns a specific html snippet or xml 
(not via portal rendering). Is this even possible right now?

After thinking about this more, it occurs to me that I would never have 
access to the same session from the portal if I call my app directly without 
going through the portal. So it seems as though there has to be some 
jetspeed url that maps to my app without rendering a complete portal page 
(so that jetspeed can pass the session and parms, etc.).

Sorry to keep this going, but if I can get this to work I will gladly write 
up some docs and a tutorial so that others can avoid figuring this out on 
their own.

Thanks,
Chris

On 6/30/05, Scott T Weaver <[EMAIL PROTECTED]> wrote:
> 
> Hi Chris,
> 
> I think I would need to modify the javascript portion of the API to append
> the JESSIONID. I will try to take a look at it today or tomorrow.
> 
> -Scott
> 
> > -----Original Message-----
> > From: Chris Custine [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 30, 2005 10:21 AM
> > To: Jetspeed Users List
> > Subject: Re: J2 - Ajax from portlet / need request.getUserPrincipal, 
> etc.
> >
> > Hi Scott,
> > How should I be accessing the URL for my app? Would I be by-passing the
> > portal url entirely and accessing the web app url for my portlet app? Or
> > is
> > there a special portal URL that dispatches to my app and carries the
> > portal
> > sesion with it? I guess I may be stumbling on something even more 
> basic...
> >
> > Thanks,
> > Chris
> >
> > On 6/30/05, Scott T Weaver <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Hmmmm, I think we need to append the JSESSION_ID to the url since I
> > doubt
> > > the Ajax requests carry any cookies with them.
> > >
> > > -Scott
> > >
> > > > -----Original Message-----
> > > > From: Chris Custine [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, June 29, 2005 8:09 PM
> > > > To: Jetspeed Users Mailing List
> > > > Subject: J2 - Ajax from portlet / need request.getUserPrincipal, 
> etc.
> > > >
> > > > OK, I am having a quick go at doing some Ajax interactions from
> > browser
> > > to
> > > > my portlet app. Everything looks good so far as long as I don't need
> > > > access
> > > > to session data (which will almost always be necessary). In my 
> normal
> > > > portlet usage I use request.getUserPrincipal() for userid and I will
> > > also
> > > > need access to session info. When I map the calls directly to the 
> web
> > > app
> > > > via its URL it creates a new session and the userprincipal is null.
> > Has
> > > > anyone else experimented with something like this yet and can offer
> > any
> > > > pointers?
> > > >
> > > > Thanks,
> > > > Chris
> > >
> > >
> 
>

Reply via email to