This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See you should not be submitting the form to a JSP. That's a really bad practice.

The form should submit to a servlet for processing.
Posts: 1843
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>And the path that is shows on top of the browser is

What is the url for the html page you are opening to submit the form from?

When you submit the form on your HTML page, it should try and load ccform.jsp which is in the same directory as the html page.
The fact that it ends up being a a file reference, indicates to me that you are loading the html page by double clicking it - ie opening it directly on your computer rather than through the server.

My suggestion would be to try the following URL: http://localhost:8080/myJSP/ccform.html

i.e. open the html file through Tomcat rather than directly on the browser.
Submitting the form from that URL should then invoke the tomcat server for the JSP.

Padmaksha Mukhopadhyay
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so so much Stephan Evans
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!