This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes cannot redirect to secure page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "cannot redirect to secure page" Watch "cannot redirect to secure page" New topic

cannot redirect to secure page

Grega Leskovšek
Ranch Hand

Joined: Nov 13, 2008
Posts: 75
I use Oracle JDeveloper to write servlets & JSP. I made subdirectory secure authorized and when I directly try to connect to servlet it tells me I am not authorized. That's OK.
But I want to come to this servlet from SecurePage.jsp. PLEASE look at the code below. PLEASE PLEASE tell me if I should post in another content.
I've added into web.xml:***
<!-- <user-data-constraint>
</user-data-constraint> -->
and my SecurePage.jsp is:***
<form action="j_security_check" method="POST">
User: <input name="j_username" type="text" />
is in love with a password: <input name="j_password" type="password" />
<input name="submit" type="submit" value="Go to secure page" />

The problem is SecurePage.jsp it never redirects to servlet.
What can be wrong? What can I do?

Thanks in advance!!

--Always, Grega from Peace refuge
Paul Campbell
Ranch Hand

Joined: Oct 06, 2007
Posts: 338
I think you're going to have more luck getting help in a different forum... this doesn't sound like an Oracle specific issue but more a servlet configuration issue.

I would pm Jeanne and ask her to move this to a forum where you can get more help.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32815

Originally posted by Paul Campbell:
I would pm Jeanne and ask her to move this to a forum where you can get more help.

Thanks. Moving to servlets.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Are you a Authorized user ??

If you want something you never had do something which you had never done
I agree. Here's the link:
subject: cannot redirect to secure page
It's not a secret anymore!