Jump to content

deepthot

Members
  • Posts

    7
  • Joined

  • Last visited

deepthot's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I just try to be self sufficient. btw. I tried deploying a JSP page, but it just shows the source code.
  2. though servlets seem easier, i guess i'll just have to use JSP.
  3. is there any way for me to deploy directly?
  4. I am trying to run a simple java servlet. I know that I am hosted on Jonny, and that I have java. My servlet is in the "public_html/WEB-INF/classes/tests" directory and is named test.class. My "public_html/WEB-INF/web.xml" file reads &--#60;?xml version="1.0" encoding="ISO-8859-1"?&--#62; &--#60;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"&--#62; &--#60;web-app&--#62; &--#60;servlet&--#62; &--#60;servlet-name&--#62;t&--#60;/servlet-name&--#62; &--#60;servlet-class&--#62;tests.test&--#60;/servlet-class&--#62; &--#60;/servlet&--#62; &--#60;servlet-mapping&--#62; &--#60;servlet-name&--#62;t&--#60;/servlet-name&--#62; &--#60;url-pattern&--#62;/testservlet&--#60;/url-pattern&--#62; &--#60;/servlet-mapping&--#62; &--#60;/web-app&--#62; when i go to "http://spacehitchhiker42.heliohost.org/testservlet" I get a 404 error. does anyone know how to use servlets correctly on heliohost?
  5. I have written a simple java servlet (test.class) and placed it in WEB-INF/classes I have also placed a web.xml file in WEB-INF with the following contents <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>test</servlet-name> <servlet-class>test</servlet-class> </servlet> <servlet-mapping> <servlet-name>test</servlet-name> <url-pattern>test</url-pattern> </servlet-mapping> </web-app> However when i go to http://spacehitchhiker42.heliohost.org/test, i get an HTTP 404 error. what am I doing wrong?
×
×
  • Create New...