JSP app display and SSO

Hello,

I'm attempting to connect to a JSP/Servlet application running on a

separate server from the portal. I have no problems using URLScraper to

display the app on one of the tabs, what I need to do is a little more

complicated. My two questions are:

1. How can I get the Session, SessionID object to my servlet? I've

used the portal API's in my servlet, and called the servlet through the

URLScraper and through a custom provider using getContent(), but I get

an error referring to the platform.conf file. The path is unknown, and

the object is never instantiated. I intend on pulling out user

information from the Profile object so I can login the user

automatically.

2. How can I keep the serlvet/JSP application HTML confined to a

channel on the portal without it taking over all the browser real

estate?

Any hints or suggestions would be greatly appreciated.

Thanks,

John

[997 byte] By [708778] at [2007-11-25 4:28:31]
# 1

John Lukan wrote:

>

> Hello,

>

> I'm attempting to connect to a JSP/Servlet application running on a

> separate server from the portal. I have no problems using URLScraper to

> display the app on one of the tabs, what I need to do is a little more

> complicated. My two questions are:

>

> 1. How can I get the Session, SessionID object to my servlet? I've

> used the portal API's in my servlet, and called the servlet through the

> URLScraper and through a custom provider using getContent(), but I get

> an error referring to the platform.conf file. The path is unknown, and

> the object is never instantiated. I intend on pulling out user

> information from the Profile object so I can login the user

> automatically.

When using the URLScraperProvider to bring in the content, there is an

attribute on the policy profile page that can be used to determine what

cookies are forwarded to your application. Either add a "*" to this list

(to forward all cookies) or add the name of the iPS cookie that is defined

in the platform.conf file (iPlanetPortalServer by default). This will

cause your application to receive the cookie when the content is scraped.

You can then use the SessionID and Session classes in your application

to get information about the user.

>

> 2. How can I keep the serlvet/JSP application HTML confined to a

> channel on the portal without it taking over all the browser real

> estate?

To do this, all URLs generated by the application would need to refer to the DesktopServlet on the iPS rather than to the application. You can use the DesktopURL class to create these types of URLs. The iPS does not currently have the ability to automatically rewrite those URLs as they pass through the URLScraperProvider.

Tom

>

> Any hints or suggestions would be greatly appreciated.

>

> Thanks,

>

> John

708778 at 2007-6-29 2:30:33 > top of Java-index,Web & Directory Servers,Portal Servers...