This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes web.xml  security-constraint question 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 "web.xml  security-constraint question" Watch "web.xml  security-constraint question" New topic

web.xml security-constraint question

zac craven

Joined: Nov 30, 2007
Posts: 1
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:
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: web.xml security-constraint question
Similar Threads
http https switch
Redirecting to HTTPS
How to remove the port number in https adress?
request. get User Principal(). getName() do not retreive user name