File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes help required on access managment of jsp pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "help required on access managment of jsp pages" Watch "help required on access managment of jsp pages" New topic

help required on access managment of jsp pages

sajjad ahmad
Ranch Hand

Joined: Jan 23, 2003
Posts: 78
we are developing J2ee application in which we have many Jsp pages , these jsp pages are accessed by different clients in different modes (i.e if administrator is watching a page then all the facilities in page will be available to him but if any other user is watching the same page then he will not be able to use all of it's functionalaty ).
Now problem comes if many user (let say 100-200) user accessing same page (in different modes) i.e single source is beeing accessed by multiple clients ...then performance issue will accour here coz we are not managing this resource properly(Like we do pooling of database connections if we know that many user will access the database and they will need database many connections ...tis way only 10 connection objects can handel 100 clients accessing the database).
one of out team members has given the idea of putting same jsps(with same logic but different name)in different for addministrator we will have administrator folder in which we put all those jsps that he can access then again for any other class of users let say clerk we will have a folder named clerk having all thos pages which he may need(note that there may be same pages with different names in last two folders)....this way only the page for clerk class is loaded(from clerk folder) and if administrator wants to access the same page it will be loaded from his directory.......
but i am not satisfied with this approach as there should any better approach for resource managment of jsps and doing reaserch on it ......
If any one on this forum has any idea about that then plz help me
thanx in advance
sajjad ahmed paracha
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
see my answer in the Sun forums .

I agree. Here's the link:
subject: help required on access managment of jsp pages
It's not a secret anymore!