<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<constant name="struts.devMode" value="true"/>
<package name="default" namespace="/" extends="struts-default">
<action name="queryentry">
<param name="entryid"></param>
<result name="success" type="dispatcher">
<param name="location">/showentry.jsp</param>
<param name="parse">false</param>
</result></action>
</package>
</struts>
http://struts.apache.org/dtds/struts-2.1.dtd文件用于开发环境提示输入,开发环境配置添加本地映射
ALT+ /出提示
Action对应的class返回字符串sucess就会自动forword到sucess节对应的页面
JDBC的statement相当于.NET里面的 command