Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP configuration in web.xml

 
anindya halder
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a HTML page......simple one...a form with a input text field and a submit button.
<form action="Login" method="post">

when I submit the form I want my Login.jsp file to be called.

I have not done any configuration in web.xml because as far as i know the jsp file will be automatically converted to a servlet.

But when I am running the application...its giving error like..

type Status report

message /LoginJSPDemo/Login

description The requested resource is not available.


Please help.
 
Niraj Jha
Ranch Hand
Posts: 63
Java Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the action write "Login.jsp".If you write Login then it looks for similar url mapping from web.xml as what we are doing in case of servlet
 
anindya halder
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Niraj Jha wrote:in the action write "Login.jsp".If you write Login then it looks for similar url mapping from web.xml as what we are doing in case of servlet


Thanks a ton :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic