jsp怎么调用servlet
来源:百度知道 编辑:UC知道 时间:2024/05/23 00:22:56
在你的WEB-INF目录下的web.xml
添加类似信息
<?xml version="1.0" encoding="ISO-8859-1"?>
<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">
<!-- JSPC servlet mappings start -->
<servlet>
<servlet-name>test.myfirst_jsp</servlet-name>
<servlet-class>test.myfirst_jsp</servlet-class><