• Post Reply Bookmark Topic Watch Topic
  • New Topic

FORM type security implementation problem?  RSS feed

yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to implement FORM security according to the Hanumanth Deshmuck book.
in web.xml I made entries like below


formlogin.html is

<h4> please login: </h4>
<form method="POST" action="j_security_check">
<input type="text" name="j_username">
<input type="password" name="j_password">
<input type="submit" value="OK">

I also created a simple form-error-page html.

Now when I executed http://localhost:8080/myapp/
HTTP status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
error occurred.

According to my idea http://localhost:8080/myapp/ has to take me to formlogin.html and after pressing submit button servlet container has to validate and has to give proper message. is it not the functionality.

I kept formlogin.html in <welcome-page-list> then execution of http://localhost:8080/myapp/ shown the html form after pressing submit button then it gave 404 error like resource not found "/myapp/j_security_check"

Thanks in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!