struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saul Q Yuan" <>
Subject RE: How to Redirect to a status Page on HTTP status 403
Date Tue, 11 Nov 2003 15:38:11 GMT
How about this:

response.sendError(HttpServletResponse.SC_FORBIDDEN, "some description
msg") in your action if the user is not in the role;


-----Original Message-----
From: alvin antony [] 
Sent: Tuesday, November 11, 2003 9:49 AM
To: Struts Users Mailing List
Subject: How to Redirect to a status Page on HTTP status 403

Hi there,

I have restricted the access to my actions with user Roles (in
struts-config.xml and WEB.xml) and it works fine.. Thanks to JAAS.

I couldn't't find the way to redirect user request to a status error
page, in case he is not in the Role for requesting a page. any help?

I am using...

Struts1.1 & Tomcat 4.1.27

any help would be appreciated!






Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and
more.Download now.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message