Search code examples
windowstomcatmozilla

Servlet on Tomcat is not accessible from my browser


I've installed Tomcat 5.5 in windows Xp, but when I try to run my servlet by typing for instance localhost:8081\Servlet\Servlet1 in Mozilla browser, I'm getting blank page . I already uninstalled, and then reinstalled it, but it didn't work. I've to keep refresh the page, to make my servlet run. What's the reason of not running Tomcat properly?


Solution

  • Use forward slash in your URL,

    localhost:8081/Servlet/Servlet1