Java Servlet: Specify start page wih @WebServlet annotation
问题 I work with Eclipse Java EE, I have tomcat 7.xx server and a Java Servlet. I need to specify in the Java Servlet as startpage "WebContent/mypage.html". How can I do that with the @WebServlet annotation? This is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <welcome-file