A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
web.xml security-constraint question
zac craven
Greenhorn
Joined: Nov 30, 2007
Posts: 1
posted
Nov 30, 2007 00:24:00
0
I want to make a kind of inverted security constraint. I want to ALLOW access to a specific page over HTTP. All other pages should be HTTPS.
Is that possible???
(Sorry if this is in wrong forum, I'm fairly new to
java
.)
The kind of code I am talking abuot is like this:
<security-constraint> <web-resource-collection> <web-resource-name>all-except-attachments</web-resource-name> <url-pattern>*.js</url-pattern> <url-pattern>*.jsp</url-pattern> <url-pattern>*.jspa</url-pattern> <url-pattern>*.css</url-pattern> <url-pattern>/browse/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Nov 30, 2007 04:30:00
0
Originally posted by zac craven:
(Sorry if this is in wrong forum, I'm fairly new to java.)
No need to be sorry.
I'm going to move this to our
servlets
forum because security constraints are covered in the
servlet
specification. This forum covers the
JSP
, and JSTL specs.
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
I agree. Here's the link:
http://aspose.com/file-tools
subject: web.xml security-constraint question
Similar Threads
Redirecting to HTTPS
http https switch
response.sendRedirect(Url)
How to remove the port number in https adress?
request. get User Principal(). getName() do not retreive user name
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter