using java beans in session scope to manage permissions

Hi everyone

I was thinking about using java beans in session scope at the top of each jsp page to manage user permissions.

I was wondering if anyone did anything like this.

If so can anyone provide an example ?

Or does everyone generally just check the session object at the top of each jsp page ?

Thanks

Stephen

[366 byte] By [stephensutherland] at [2007-9-26 4:44:26]
# 1
write a custom jsp to check this and include it at the top of each page
shubhrajit_c at 2007-6-29 18:32:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
This method works fine as long as you are in the SAME context. Sorry to yell, but I'm battling with this problem right now: http://forum.java.sun.com/thread.jsp?forum=45&thread=162336
joseph_schlecht at 2007-6-29 18:32:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

thanks very much for the input.

Goofy question #1 why would you want to have multiple web app ? is it just for load balancing ?

How many different apps do you have running ? and what are they running may I ask ?

question #2 -- i thought tomcat was just a reference implementation -- just a test version. I didn't realize tomcat 4 is available for commercial use.

Is my understanding correct that tomcat 4 is free and scalable for commercial purposes ?

Stephen

stephensutherland at 2007-6-29 18:32:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

> thanks very much for the input.

>

> Goofy question #1 why would you want to have

> multiple web app ? is it just for load balancing ?

Load balancing is not the issue. My organization (hospital) has an Intranet. This Intranet serves many, many purposes, everything from patient tracking to move requests. To have all of these purposes served by one giant web application would be rediculous. The goal is that when an employee comes to the intranet, they can signin once, generate a bean with personal information that various apps will need, and go to any application -- authenticated with personal data.

> How many different apps do you have running ? and what

> are they running may I ask ?

>

> question #2 -- i thought tomcat was just a reference

> implementation -- just a test version. I didn't

> realize tomcat 4 is available for commercial use.

>

> Is my understanding correct that tomcat 4 is free and

> scalable for commercial purposes ?

>

> Stephen

I would not use tomcat 4 in production yet.

joseph_schlecht at 2007-6-29 18:32:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
oh i see multiple web applications on 1 box right ?
stephensutherland at 2007-6-29 18:32:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...