Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp and servlet linkage errror  RSS feed

 
Tsepo Mphongoa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried to make a jsp log in and made its servlet to get data from a form and verify the log in through the use of a java bean but  it always says file not found..     so how can i link my jsp login form with its servlet file?
 
Tim Moores
Saloon Keeper
Posts: 3564
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the entire error message as well as the URL you're trying to access, and the relevant mapping of the servlet from the web.xml file.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your form action URL is likely wrong. Be sure you are using server-relative addressing that starts with the context path.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!