当前位置: 首页 > news >正文

亚马逊欧洲站入口网址制造业erp系统软件有哪些

亚马逊欧洲站入口网址,制造业erp系统软件有哪些,如何利用网站赚钱,深圳多区最新通知Struts2中Action接收参数的方法主要有以下三种#xff1a;1.使用Action的属性接收参数#xff1a; a.定义#xff1a;在Action类中定义属性#xff0c;创建get和set方法#xff1b; b.接收#xff1a;通过属性接收参数#xff0c;如#xff1a;userName#xff… Struts2中Action接收参数的方法主要有以下三种1.使用Action的属性接收参数    a.定义在Action类中定义属性创建get和set方法    b.接收通过属性接收参数如userName    c.发送使用属性名传递参数如user1!add?userNameMagci2.使用DomainModel接收参数    a.定义定义Model类在Action中定义Model类的对象不需要new创建该对象的get和set方法    b.接收通过对象的属性接收参数如user.getUserName()    c.发送使用对象的属性传递参数如user2!add?user.userNameMGC3.使用ModelDriven接收参数    a.定义Action实现ModelDriven泛型接口定义Model类的对象必须new通过getModel方法返回该对象    b.接收通过对象的属性接收参数如user.getUserName()    c.发送直接使用属性名传递参数如user2!add?userNameMGC实例web.xml:Java代码 ?xml version1.0 encodingUTF-8?   web-app version2.5    xmlnshttp://java.sun.com/xml/ns/javaee    xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance    xsi:schemaLocationhttp://java.sun.com/xml/ns/javaee      http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd  welcome-file-list      welcome-filehello.jsp/welcome-file    /welcome-file-list    filter      filter-namestruts2/filter-name      filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class    /filter    filter-mapping      filter-namestruts2/filter-name      url-pattern/*/url-pattern    /filter-mapping   /web-app  [java]view plaincopy?xml version1.0 encodingUTF-8?  web-app version2.5    xmlnshttp://java.sun.com/xml/ns/javaee    xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance    xsi:schemaLocationhttp://java.sun.com/xml/ns/javaee    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd  welcome-file-list      welcome-filehello.jsp/welcome-file    /welcome-file-list    filter      filter-namestruts2/filter-name      filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class    /filter    filter-mapping      filter-namestruts2/filter-name      url-pattern/*/url-pattern    /filter-mapping  /web-app  struts.xml:写道?xml version1.0 encodingUTF-8 ?!DOCTYPE struts PUBLIC-//Apache Software Foundation//DTD Struts Configuration 2.0//ENhttp://struts.apache.org/dtds/struts-2.0.dtdstruts!-- constant namestruts.enable.DynamicMethodInvocation valuefalse /constant namestruts.devMode valuefalse /include fileexample.xml/package namedefault namespace/ extendsstruts-defaultdefault-action-ref nameindex /action nameindexresult typeredirectActionparam nameactionNameHelloWorld/paramparam namenamespace/example/param/result/action/package--!-- Add packages here --constant namestruts.devMode valuetrue /package nameuser namespace/ extendsstruts-defaultaction nameuser* classcn.edu.ahau.mgc.struts2.action.UserAction{1}result/addSuccess.jsp/result/action/package/strutsUser.java:Java代码 package cn.edu.ahau.mgc.struts2.mode;   publicclass User {   private String userName;   private String password;   public String getUserName() {   returnthis.userName;      }   publicvoid setUserName(String userName) {   this.userName userName;      }   public String getPassword() {   returnthis.password;      }   publicvoid setPassword(String password) {   this.password password;      }   }  [java]view plaincopypackage cn.edu.ahau.mgc.struts2.mode;  publicclass User {  private String userName;  private String password;  public String getUserName() {  returnthis.userName;      }  publicvoid setUserName(String userName) {  this.userName userName;      }  public String getPassword() {  returnthis.password;      }  publicvoid setPassword(String password) {  this.password password;      }  }  UserAction1.java:写道package cn.edu.ahau.mgc.struts2.action;import com.opensymphony.xwork2.ActionSupport;public class UserAction1 extends ActionSupport {private String userName;private String password;public String add() {System.out.println(userName: userName);System.out.println(password: password);return SUCCESS;}public String getUserName() {return this.userName;}public void setUserName(String userName) {this.userName userName;}public String getPassword() {return this.password;}public void setPassword(String password) {this.password password;}}UserAction2.java:写道package cn.edu.ahau.mgc.struts2.action;import com.opensymphony.xwork2.ActionSupport;import cn.edu.ahau.mgc.struts2.mode.User;public class UserAction2 extends ActionSupport {private User user;public String add() {System.out.println(userName: user.getUserName());System.out.println(password: user.getPassword());return SUCCESS;}public User getUser() {return this.user;}public void setUser(User user) {this.user user;}}UserAction3.java:写道package cn.edu.ahau.mgc.struts2.action;import cn.edu.ahau.mgc.struts2.mode.User;import com.opensymphony.xwork2.ActionSupport;import com.opensymphony.xwork2.ModelDriven;public class UserAction3 extends ActionSupport implements ModelDrivenUser {private User user new User();public String add() {System.out.println(userName: user.getUserName());System.out.print(password: user.getPassword());return SUCCESS;}public User getModel() {return this.user;}}index.jsp:写道% page languagejava importjava.util.* pageEncodingGB18030%%String path request.getContextPath();String basePath request.getScheme()://request.getServerName():request.getServerPort()path/;%!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//ENhtmlheadbase href%basePath%titleParam/titlemeta http-equivpragma contentno-cachemeta http-equivcache-control contentno-cachemeta http-equivexpires content0 meta http-equivkeywords contentkeyword1,keyword2,keyword3meta http-equivdescription contentThis is my page!--link relstylesheet typetext/css hrefstyles.css--/headbodya hrefuser1!add?userNameMagcipassword123456user1!add?userNameMagcipassword123456/abr /br /a hrefuser2!add?user.userNameMGCuser.passwordabcuser2!add?user.userNameMGCuser.passwordabc/abr /br /a hrefuser3!add?userNameMaGCpassword000000user3!add?userNameMaGCpassword000000/a/body/html addSuccess.jsp:Java代码 % page languagejavaimportjava.util.* pageEncodingGB18030%   %   String path request.getContextPath();   String basePath request.getScheme()://request.getServerName():request.getServerPort()path/;   %   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN   html    head      base href%basePath%      titleAddSuccess/title      meta http-equivpragma contentno-cache      meta http-equivcache-control contentno-cache      meta http-equivexpires content0          meta http-equivkeywords contentkeyword1,keyword2,keyword3      meta http-equivdescription contentThis is my page      !--      link relstylesheet typetext/css hrefstyles.css      --    /head    body      User Add Success! br    /body   /html   转载于:https://blog.51cto.com/lebron/1373552
http://www.pierceye.com/news/463014/

相关文章:

  • 网站开发软件系统安徽通皖建设工程有限公司网站
  • 意派网站开发新手篇做平面常用的网站
  • 广州网站设计费用深圳室内设计师网
  • 有什么可以做兼职的网站吗建设网站的需求分析
  • 专门做进口产品的网站6wordpress赚钱方法
  • 长兴网站建设公司郫县城乡规划建设管理局网站
  • 天津建设工程信息网站搜索引擎推广是什么工作
  • 网站的系统建设方式网站建设报价表格
  • 商城展示网站建设我劝大家不要学android
  • 官网的建站过程云南网站建设营销
  • 那个网站上有打码的任务做台州做网站的公司
  • 做公司网站 需要注意什么汕尾市住房和城建设局网站
  • 建立音乐网站网络媒体设计是什么
  • html网站怎么进入后台网站建设完成之后要索取哪些
  • 做炭化料的网站国外可以做非法网站吗
  • 厦门 网站建设 网站开发 未来网络做百科专用参考链接的网站
  • 手机网站友情链接怎么做网站轮播图
  • 网站做支付宝花呗分期设计师联盟网是谁创建的
  • 辽宁手机版建站系统开发高平市规建设局网站
  • 免费电子商务网站建设个人网站心得
  • 2003 iis网站发布网站c2g的代表性电商平台
  • 用asp做网站的可行性分析哪个网站做美食视频
  • 瓷砖网站模板建设网站虚拟主机
  • 陇西哪里能学做网站百度识图网页版在线使用
  • 如果自己弄网站书签制作 小学生 一等奖
  • 连江网站建设wordpress页面文章列表
  • 国外jquery特效网站网站建设的英语
  • 建立网站最好的模板夜蝶直播app下载安装
  • 重庆学校网站建设wordpress 模版安装
  • 公司要招个做网站的人商标设计网站猪八戒