This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Form Authentication of web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Form Authentication of web.xml" Watch "Form Authentication of web.xml" New topic

Form Authentication of web.xml

PrachiS Shah

Joined: Sep 02, 2010
Posts: 10
When I am using form authentication of web.xml...Then there is this issue that I am facing...
I have return the code as follows :


Now what happens is that when I refresh the page without filling in any details then also the page gets submitted and the errorMsg starts getting displayed. i.e. the form-error-page gets executed and the error message starts getting displayed. Any idea what is going wrong here?
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Nothing' wrong here. I believe your validator validates the values present in the form and adds the error messages, hence, you are seeing the error messages.

Not many get the right opportunity !
I agree. Here's the link:
subject: Form Authentication of web.xml
It's not a secret anymore!