This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Security Problem; 403 Forbidden Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Security Problem; 403 Forbidden Error" Watch "Security Problem; 403 Forbidden Error" New topic
Author

Security Problem; 403 Forbidden Error

mohan kumar nie
Greenhorn

Joined: Feb 05, 2002
Posts: 12
Hi,
I am using Weblogic6.1 server. It supports Servlets 2.3 Specification.
I am trying with the following Security specifications. When I try login page through browser(http://localhost:7001/login/logintest.jsp) it gave FORBIDDEN(403) Error. It is not redirecting to secured connection(https://localhost:7002/login/logintest.jsp)
If I give a request to (https://localhost:7002/login/logintest.jsp) it works fine.
What I want to do is, when client give a normal request, server has to redirect to Secured connection automatically.
Please help me to do it ?
<security-constraint>
<web-resource-collection>
<web-resource-name>LOGIN</web-resource-name>
<url-pattern>/login/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Thanks in advance
mohan
Tracy Woo
Ranch Hand

Joined: Jul 23, 2002
Posts: 113
You are calling rd.forward() or res.sendRedirect()?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Security Problem; 403 Forbidden Error