aspose file tools*
The moose likes Servlets and the fly likes Servlet to control a web-application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet to control a web-application" Watch "Servlet to control a web-application" New topic
Author

Servlet to control a web-application

John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

I need to develop a servlet which can keep the state of out-box web application. If someone has done similar stuff can you please throw some light.

thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I think you'll need to shed a little more light on what you're trying to do.

"Keep the state of an out of the box web application" doesn't tell us much.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

Thank you for the response. We have a third-party web application. We are trying to incoporate the web application in our portal by providing a url for the web-application, which shows-up in portal window as iframe. The problem is when we switch the tabs on the portal, the third-party web application logs out.

What we are trying to do is develop a servlet which can keep track of the state of the web-application and this servlet will talk to the portal.

But i do not have any idea how to architect this kind of a servelt. Can you please throw some light here.

Thank you for all the help.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Hmm, I have some theories as to what's going on but wouldn't be sure as the best way to do this...

If, after a day or so, you don't get a good answer here, let me know and I can move this to our Portals forum. Someone there may have run into this issue before.
Or.. if you like, I can move it now and a closed copy will remain in this forum.
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Thanks for the response. But please wait for a day and you can close.

But just in case you know (because i do not know). Is it possible to maintain state using servlet of a different web application with-out being inside a portal ? At this point i am don't even know whether it is possible or not ?

Any input , i would really appreciate it.

thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I know that, in the next version of the servlet spec, you will be able to share a session id across all applications running in a container.
You would have a separate session for each app but the IDs could would be the same.

What container are you using?
I know Tomcat has a "single signon feature".
Not sure if something like that would help you.

Is your portal using frames?
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

Thank you for the response. I am using iframe, to incorporate the webpage.


thanks
John Lincoln
Ranch Hand

Joined: Feb 11, 2003
Posts: 192
Hi,

Forgot to answe the container question. PortalServer is JBoss and Container is Tomcat.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet to control a web-application