<?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文件用于开发环境提示输入,开发环境配置添加本地映射

struts 2.1配置

ALT+ /出提示

 Action对应的class返回字符串sucess就会自动forword到sucess节对应的页面

JDBC的statement相当于.NET里面的 command

相关文章:

  • 2021-08-29
  • 2021-12-09
  • 2021-10-11
  • 2021-07-24
  • 2021-10-28
  • 2022-02-17
  • 2021-06-18
猜你喜欢
  • 2021-06-27
  • 2022-03-08
  • 2021-08-07
  • 2021-07-17
  • 2021-06-18
  • 2022-12-23
  • 2021-10-25
相关资源
相似解决方案