This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes multi application login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multi application login" Watch "multi application login" New topic

multi application login

Gran Roguismo
Ranch Hand

Joined: Mar 10, 2005
Posts: 77
So I have a website of my own right now where i am plugging in several different projects to be accessed from a main "portal" type application.
How can I login for the "global" application and pass that valid user down to the sub applications?

On another question, this one dealing specifically with struts. Can I call an action in a struts application (with or without another struts application), without having a fully qualified name, ie: using

rather than:

or something of that sort

Ranch Hand

Joined: Oct 03, 2003
Posts: 40
Passing login information to sub applications might be a tricky one. Portal servers typically offer this feature. But if your main application is not a Portal server you probably don't have this option. Is it possible for you to deploy the sub applications as modules of the main application? That way as far as struts is concerned it will be one big appliaction with different modules and the login information will be maintained across modules. Just a thought...

For your second question, you could do that when you are in the same application/module.
Gran Roguismo
Ranch Hand

Joined: Mar 10, 2005
Posts: 77
well going with the thought of a module. Sounds like a great idea to me. I can build bundle the backend logic and class files into thejir own JAR. is this what you mean by creating a module?
The JSPs would then need to be added on their own, but since it's the view layer, that kind of makes sense anyway I suppose.
Is there another way to do this?
It is sorta covered in the JavaRanch Style Guide.
subject: multi application login
jQuery in Action, 3rd edition