Container Managed authentication is your friend for this - you just configure your web.xml with security-constraints and roles, and the container will do it for you. Another option is to use a Filter, here's a OS filter that mimics CMA - http://securityfilter.sf.net.

HTH,

Matt

On Dec 18, 2003, at 3:08 PM, Nehal Dave wrote:

Hi again

Lets say before rendering each JSP page we need to check if the user has rights to access the jsp page. & much more logic needs to be executed before rendering that jsp. How would i able to achive it using taglib or javabean....

Please adivse.
Thanks
Dave.


From: "Gray, Cameron C." <[EMAIL PROTECTED]>
To: "Nehal Dave" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Subject: RE: [Struts-apps] Implementing Model in Struts
Date: Thu, 18 Dec 2003 22:04:32 -0000

Dave,

There isn't a direct translation in Struts. However the best workaround
would be to create a Bean or custom tag library to call at the top of
each JSP.


Best regards,

Cameron Gray
Operations Director, UltraSpeed UK Limited

Tel/Fax: 0800 689 9898 W: www.ultraspeed.co.uk

IBM: Incredibly Belligerent Merketing

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nehal Dave
Sent: 18 December 2003 21:33
To: [EMAIL PROTECTED]
Subject: [Struts-apps] Implementing Model in Struts

Hi Guys
I am using Sapient framework in current project & we want to migrate to
Struts.

I have a question regarding model part of the framework.

In our current framework we have "modeler" class like "Action" class in
struts which is mapped to JSP(s). Before jsp is executed each time this
modeler is executed & we have lot of pre rendering process in it. I am
looking for the equivalent or something on this line in Struts. But not
finding proper solution.
Can u pls enligten me ? :)

Thanks
Dave.

_________________________________________________________________
Make your home warm and cozy this winter with tips from MSN House &
Home.
http://special.msn.com/home/warmhome.armx



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for
IBM's Free Linux Tutorials. Learn everything from the bash shell to sys
admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps



_________________________________________________________________
Working moms: Find helpful tips here on managing kids, home, work — and yourself. http://special.msn.com/msnbc/workingmom.armx



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to