<form action="./servlet/fw" method="post">
<input type="text" name="name"/>
<input type="submit" value="submit"/>
</form>
form页请求 点“.”表示当前路径
web.xml页配置
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>fw</servlet-name>
<servlet-class>com.zd.service.fw</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>fw</servlet-name>
<url-pattern>/servlet/fw</url-pattern>
</servlet-mapping>
action中的表达式值