首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

新人求问个小白有关问题

2013-11-01 
新人求问个小白问题package leiwenjianimport java.io.IOExceptionimport javax.servlet.GenericServlet

新人求问个小白问题
package leiwenjian;

import java.io.IOException;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class demo1 extends GenericServlet {

public void service(ServletRequest arg0, ServletResponse arg1)
throws ServletException, IOException {
arg1.getOutputStream().write("hello world".getBytes());

}

}
Launcher$AppClassLoader(ClassLoader).defineTransformedClass(String, byte[], int, int, ProtectionDomain, ClassFormatError, String, boolean) line: 530
Launcher$AppClassLoader(ClassLoader).defineClassCond(String, byte[], int, int, ProtectionDomain, boolean) line: 634
Launcher$AppClassLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 615
Launcher$AppClassLoader(SecureClassLoader).defineClass(String, byte[], int, int, CodeSource) line: 141

</welcome-file-list>
<servlet>
<servlet-name>demo1</servlet-name>
<servlet-class>/class1.src/leiwenjian/demo1</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>demo1</servlet-name>
<url-pattern> /demo1</url-pattern>
</servlet-mapping>
新人求问个小白有关问题
求帮忙
[解决办法]
<servlet-class>leiwenjian.demo1</servlet-class>
[解决办法]
<servlet>
<servlet-name>demo1</servlet-name>
<servlet-class>leiwenjian.demo1</servlet-class>
</servlet>

热点排行