J
JAVA Rookie
Hi, all:
I have a sample servlet in Windows-XP and Linux, below is the modified section
in web.xml:
<servlet>
<servlet-name>
hi
</servlet-name>
<servlet-class>
<servlet-mapping>
<servlet-name>
hi
</servlet-name>
<url-pattern>
/hello.html
</url-pattern>
</servlet-mapping>
When I typed http://localhost:8080/hello.html in Windows-XP, I can got correct
page, but HTTP Status 404 - /hello.html under Linux? They do have same web.xml
and same configuration.
So what I need to do in Linux to make servlets working? And should I need to use
JSP instead of servlet? because I am learning servlet now and soon will be JSP.
Thanks in advance.
I have a sample servlet in Windows-XP and Linux, below is the modified section
in web.xml:
<servlet>
<servlet-name>
hi
</servlet-name>
<servlet-class>
<servlet-mapping>
<servlet-name>
hi
</servlet-name>
<url-pattern>
/hello.html
</url-pattern>
</servlet-mapping>
When I typed http://localhost:8080/hello.html in Windows-XP, I can got correct
page, but HTTP Status 404 - /hello.html under Linux? They do have same web.xml
and same configuration.
So what I need to do in Linux to make servlets working? And should I need to use
JSP instead of servlet? because I am learning servlet now and soon will be JSP.
Thanks in advance.