你的位置:首页 > Java教程

[Java教程]SSH实例


首先,配置struts.

<??><!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.objectFactory" value="spring" /><constant name="struts.enable.DynamicMethodInvocation" value="true" />  <constant name="struts.devMode" value="true" />  <constant name="struts.i18n.reload" value="true" />  <constant name="struts.configuration. value="true" />  <constant name="struts.custom.i18n.resources" value="globalMessages" />  <constant name="struts.url.includeParams" value="none" />  <constant name="struts.ui.theme" value="xhtml"></constant>  <package name="struts2" extends="struts-default">    <default-action-ref name="clasquery"></default-action-ref>    <action name="clasquery" class="clasQueryAction">      <result name="success">/query.jsp</result>      </action>      <action name="clas" class="clasAction">      <result name="success" type="redirect">/clasquery.action</result>      </action>    </package></struts>