Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Idea: Deploy a simple Java servlet (no JSP) to Tomcat 7

I tried following the tutorial here to deploy a servlet but that only works if you specify a JSP file. The problem is that without the JSP, I don't know what to set the Startup Page in the Tomcat Run/Debug configuration. So any idea what to do?

Thanks!

like image 211
Vlad Avatar asked Feb 05 '12 17:02

Vlad


1 Answers

You should define a servlet-mapping in the web.xml like this:

URL pattern

Then add the url-pattern to the server root URL:

URL to open

like image 113
CrazyCoder Avatar answered Sep 21 '22 11:09

CrazyCoder