aspose file tools*
The moose likes Servlets and the fly likes Security constaint in J2ee 1.3 container  - Web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Security constaint in J2ee 1.3 container  - Web.xml " Watch "Security constaint in J2ee 1.3 container  - Web.xml " New topic
Author

Security constaint in J2ee 1.3 container - Web.xml

Ram Gokul
Ranch Hand

Joined: Oct 07, 2005
Posts: 85
hi,
I can access my URL in both http and https .
1) http://myURL.com
2) https://myURL.com:4444

But I want this logic to be contained in Web.xml where in only for some resource , I need to use https. I put the following in Web.xml ...But it is not working . As soons as i hit welcome.jsp , IE is trying to download the page to my Harddrive.( ???) .

following is code in web.xml
========
<security-constraint>
<web-resource-collection>
<web-resource-name>
test
</web-resource-name>
<url-pattern>/Welcome.jsp</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
====

what is wrong with this code ?

PLUS I cannot access the site as https://myURL.com with out port number . I always have to append 4444 . Is there any way to autmatically add the port .


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security constaint in J2ee 1.3 container - Web.xml
 
Similar Threads
transport-guarantee problem
password authentication causes 403 error
Basic authentication using custom Login Module in WAS 6.1
Urgent!! How can I forward from http to https by using ActionForward in Struts?
Force URL redirect from http to https?