struts2 action 的问题 [问题点数:40分,结帖人nai598455803]

Bbs3
本版专家分:923
结帖率 100%
Bbs9
本版专家分:68004
版主
Blank
红花 2016年3月 Java大版内专家分月排行榜第一
2016年2月 Java大版内专家分月排行榜第一
2015年11月 Java大版内专家分月排行榜第一
2015年10月 Java大版内专家分月排行榜第一
2014年8月 Java大版内专家分月排行榜第一
2014年7月 Java大版内专家分月排行榜第一
2014年5月 Java大版内专家分月排行榜第一
Blank
黄花 2016年1月 Java大版内专家分月排行榜第二
2015年12月 Java大版内专家分月排行榜第二
2015年8月 Java大版内专家分月排行榜第二
2015年3月 Java大版内专家分月排行榜第二
2015年1月 Java大版内专家分月排行榜第二
2014年12月 Java大版内专家分月排行榜第二
2014年11月 Java大版内专家分月排行榜第二
2014年6月 Java大版内专家分月排行榜第二
2014年4月 Java大版内专家分月排行榜第二
2014年1月 Java大版内专家分月排行榜第二
2013年11月 Java大版内专家分月排行榜第二
Blank
蓝花 2015年9月 Java大版内专家分月排行榜第三
2015年6月 Java大版内专家分月排行榜第三
2015年5月 Java大版内专家分月排行榜第三
2015年2月 Java大版内专家分月排行榜第三
2014年3月 Java大版内专家分月排行榜第三
2013年12月 Java大版内专家分月排行榜第三
Bbs7
本版专家分:21721
版主
Blank
优秀版主 2016年10月优秀小版主
Blank
红花 2016年10月 Java大版内专家分月排行榜第一
2016年9月 Java大版内专家分月排行榜第一
2016年8月 Java大版内专家分月排行榜第一
2014年4月 Java大版内专家分月排行榜第一
Blank
黄花 2016年11月 Java大版内专家分月排行榜第二
Bbs2
本版专家分:440
Bbs3
本版专家分:923
Bbs3
本版专家分:923
Bbs1
本版专家分:0
Struts2 action路径问题
struts.xml中rnrnrn/views/clubbar/literaturebar.jsprnrnrn/views/clubbar/literaturepage.jsprnrnrn我想把上面literaturepage那个Action必须在:项目/postbar/literaturebar/literaturepage中才能访问到怎么解决?
struts2 action 获取参数问题
请求路径为: http://localhost:8080/SKPlatfrom/toEditCategory.<em>action</em>?category.id=1rnrn=========================================================================================rnpackage com.sk.systemInfo.<em>action</em>;rnrnimport java.util.Date;rnimport java.util.Map;rnrnimport com.opensymphony.xwork2.Action;rnimport com.opensymphony.xwork2.ActionContext;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.sk.systemInfo.domain.Category;rnimport com.sk.systemInfo.domain.SystemUser;rnimport com.sk.systemInfo.service.CategoryService;rnrnpublic class CategoryAction extends ActionSupport implements Action rn rn /**注入categoryService*/rn private CategoryService categoryService;rn public CategoryService getCategoryService() rn return categoryService;rn rnrn public void setCategoryService(CategoryService categoryService) rn this.categoryService = categoryService;rn rn rn rn private Category category;rn public Category getCategory() rn return category;rn rnrn public void setCategory(Category category) rn this.category = category;rn rn rnrn public String toEdit() rn //1.根据请求的编号查询类别信息rn category = categoryService.findById(category.getId());rn //2.获取sessionrn Map session = ActionContext.getContext().getSession();rn //3.保存到sessionrn session.put("category", category);rn return "toEdit";rn rnrn==========================================================================================================rnpackage com.sk.systemInfo.domain;rnrnimport java.sql.Timestamp;rnimport java.util.Date;rnrn/**rn * Category entity. @author MyEclipse Persistence Toolsrn */rnrnpublic class Category implements java.io.Serializable rnrn // Fieldsrn //org.extremecomponents.table.cell.FilterDroplistCellrn private Integer id;rn private String type1;rn private String type2;rn private String type3;rn private String flag;rn private String crtuser;rn private Date crtdate;rn private String upduser;rn private Date upddate;rnrn // Constructorsrnrn /** default constructor */rn public Category() rn rnrn /** full constructor */rn public Category(String type1, String type2, String type3, String flag,rn String crtuser, Timestamp crtdate, String upduser, Timestamp upddate) rn this.type1 = type1;rn this.type2 = type2;rn this.type3 = type3;rn this.flag = flag;rn this.crtuser = crtuser;rn this.crtdate = crtdate;rn this.upduser = upduser;rn this.upddate = upddate;rn rnrn // Property accessorsrnrn public Integer getId() rn return this.id;rn rnrn public void setId(Integer id) rn this.id = id;rn rnrn public String getType1() rn return this.type1;rn rnrn public void setType1(String type1) rn this.type1 = type1;rn rnrn public String getType2() rn return this.type2;rn rnrn public void setType2(String type2) rn this.type2 = type2;rn rnrn public String getType3() rn return this.type3;rn rnrn public void setType3(String type3) rn this.type3 = type3;rn rnrn public String getFlag() rn return this.flag;rn rnrn public void setFlag(String flag) rn this.flag = flag.trim();rn rnrn public String getCrtuser() rn return this.crtuser;rn rnrn public void setCrtuser(String crtuser) rn this.crtuser = crtuser;rn rnrn public Date getCrtdate() rn return this.crtdate;rn rnrn public void setCrtdate(Date crtdate) rn this.crtdate = crtdate;rn rnrn public String getUpduser() rn return this.upduser;rn rnrn public void setUpduser(String upduser) rn this.upduser = upduser;rn rnrn public Date getUpddate() rn return this.upddate;rn rnrn public void setUpddate(Date upddate) rn this.upddate = upddate;rn rnrnrn==========================================================================================================rnrn请求路径为: http://localhost:8080/SKPlatfrom/toEditCategory.<em>action</em>?category.id=1rn的时候 为什么在<em>action</em>中 category.getId() 为nullrnrnrnrnrnrnrn
struts2 action问题
若有一个对象rn[code=Java]public class ProductModelrnrn private Integer productid;rn private String productno;rn private String productname;rn private String productsize;rn private String producttype;rn private BigDecimal productweight;rn private String productstatus;rn private Set productunits = new HashSet(); //set集合rn rn //set get 略rn[/code]rnrn那么在<em>action</em>里面声明这个对象的get set 方法rnpublic class ProductAction extends ActionSupportrnrn /**rn * rn */rn private static final long serialVersionUID = 7018381666124151296L;rn private Integer productid;rn private ProductModel product;rn private ProductDao dao;rn private PageInfo pageInfo;rnrn public ProductModel getProduct()rn rn return product;rn rn rn public void setProduct(ProductModel product)rn rn this.product = product;rn rnrnrnrnrn那么怎么在页面上新增的时候,product里面productunits set集合,怎么标识,是不是想保存这个set,只能是在<em>action</em>里面加入productunits 的setget方法,然后再把这个set赋值给 product.productunits 啊,能不能在页面上直接product.productunits [1]这样搞啊
struts2 action配置的问题
我有两个<em>action</em> ,进的是同一个方法 ,然后想根据传入的一个type参数判断执行的代码块。rn<em>action</em>配置大概是这样《<em>action</em> name="testA" method="method"> 《<em>action</em> name="testB" method="method"> rn我想要的效果是 访问testA.<em>action</em>,在Action类中中得到type=A, 访问testB.<em>action</em>,得到type=B.rn也就是说不用在后面加?type=A 或者 type=B . ,而是通过访问的<em>action</em>不同来设置type的值rn大家有什么好的解决方案么。求指教!!rn谢谢
struts2action传递对象的问题
系统使用的是<em>struts2</em>+hibernaternrn jsp界面无法得到从<em>action</em>传来的对象,但是在<em>action</em> 中可以正确显示对象信息,对象实例化不为空.rnrnrn以下是部分日志文件:rnrn2008-05-30 02:46:14,537 DEBUG rnrn(org.apache.<em>struts2</em>.interceptor.FileUploadInterceptor:204) - Bypassing rnrn/admin/book/ Editrn2008-05-30 02:46:14,547 DEBUG rnrn(org.apache.<em>struts2</em>.interceptor.validation.AnnotationValidationInterceptor:134) rnrn- Validating /admin/book/Edit with method load.rn2008-05-30 02:46:14,597 DEBUG rnrn(org.hibernate.event.def.DefaultLoadEventListener:171) - loading entity: rnrn[com.han.domain.model.Book#7584/jkl]rn2008-05-30 02:46:14,607 DEBUG rnrn(org.hibernate.event.def.DefaultLoadEventListener:332) - attempting to resolve: rnrn[com.han.domain.model.Book#7584/jkl]rn2008-05-30 02:46:14,607 DEBUG rnrn(org.hibernate.event.def.DefaultLoadEventListener:349) - resolved object in rnrnsession cache: [com.han.domain.model.Book#7584/jkl]rn2008-05-30 02:46:14,617 DEBUG (org.hibernate.jdbc.JDBCContext:237) - after rnrnautocommitrn2008-05-30 02:46:14,617 DEBUG (org.hibernate.jdbc.ConnectionManager:404) - rnrnaggressively releasing JDBC connectionrn2008-05-30 02:46:14,617 DEBUG (org.hibernate.impl.SessionImpl:422) - after rnrntrans<em>action</em> completionrn//这是从<em>action</em> 中输出的信息rn[color=#FF0000]rnget a book :book 7584/jkl 计算机原理 韩 0.0 计算机数学rn[/color]rn2008-05-30 02:46:14,627 DEBUG (com.han.<em>action</em>.BookAction:58) - get a book rnrn:7584/jklrn2008-05-30 02:46:14,637 DEBUG rnrn(org.apache.<em>struts2</em>.dispatcher.ServletRedirectResult:150) - Redirecting to rnrnfinalLocation /bookshop/admin/book/TestValues.jsprn2008-05-30 02:46:14,637 DEBUG rnrn(org.apache.<em>struts2</em>.dispatcher.ActionContextCleanUp:122) - skipping cleanup rnrncounter=1rn2008-05-30 02:46:14,637 DEBUG (com.han.util.HibernateUtil:31) - 开始数据事务...rn2008-05-30 02:46:14,637 DEBUG (com.han.util.HibernateUtil:63) - begin rnrnTrans<em>action</em> tx......rn2008-05-30 02:46:14,647 DEBUG (org.hibernate.trans<em>action</em>.JDBCTrans<em>action</em>:54) - rnrnbeginrn2008-05-30 02:46:14,647 DEBUG (org.hibernate.jdbc.ConnectionManager:421) - rnrnopening JDBC connectionrn2008-05-30 02:46:14,647 DEBUG rnrn(org.hibernate.connection.DriverManagerConnectionProvider:93) - total checked-rnrnout connections: 0rn2008-05-30 02:46:14,647 DEBUG rnrn(org.hibernate.connection.DriverManagerConnectionProvider:99) - using pooled rnrnJDBC connection, pool size: 0rn2008-05-30 02:46:14,647 DEBUG (org.hibernate.trans<em>action</em>.JDBCTrans<em>action</em>:59) - rnrncurrent autocommit status: falsern2008-05-30 02:46:14,647 DEBUG (org.hibernate.jdbc.JDBCContext:214) - after rnrntrans<em>action</em> beginrnorg.apache.jasper.JasperException: An exception occurred processing JSP page rnrn/admin/book/TestValues.jsp at line 15rn[code=Java]rnrn12: rn13: rn18: rnrn[/code]rnrn[color=#FF0000]rnStacktrace:rn at org.apache.jasper.servlet.JspServletWrapper.handleJspExceptionrnrn(JspServletWrapper.java:505)rn at org.apache.jasper.servlet.JspServletWrapper.servicernrn(JspServletWrapper.java:416)rn at org.apache.jasper.servlet.JspServlet.serviceJspFilernrn(JspServlet.java:337)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterrnrn(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilterrnrn(ApplicationFilterChain.java:206)rn at com.han.util.HibernateFilter.doFilter(HibernateFilter.java:36)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterrnrn(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilterrnrn(ApplicationFilterChain.java:206)rn at org.apache.<em>struts2</em>.dispatcher.FilterDispatcher.doFilterrnrn(FilterDispatcher.java:413)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterrnrn(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilterrnrn(ApplicationFilterChain.java:206)rn at org.apache.<em>struts2</em>.dispatcher.ActionContextCleanUp.doFilterrnrn(ActionContextCleanUp.java:99)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterrnrn(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilterrnrn(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invokernrn(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invokernrn(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invokernrn(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invokernrn(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invokernrn(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.servicernrn(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.processrnrn(Http11Processor.java:844)rn at rnrnorg.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processrnrn(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.runrnrn(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.lang.NullPointerExceptionrn at org.apache.jsp.admin.book.TestValues_jsp._jspServicernrn(TestValues_jsp.java:69)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.servicernrn(JspServletWrapper.java:374)rn ... 24 morern[/color]rn2008-05-30 02:46:17,241 DEBUG (com.han.util.HibernateUtil:41) - 回滚事务rn2008-05-30 02:46:17,241 DEBUG (com.han.util.HibernateUtil:93) - rollback rnrntrans<em>action</em>rn2008-05-30 02:46:17,241 DEBUG (org.hibernate.trans<em>action</em>.JDBCTrans<em>action</em>:152) - rnrnrollbackrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.trans<em>action</em>.JDBCTrans<em>action</em>:163) - rnrnrolled back JDBC Connectionrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.jdbc.JDBCContext:219) - after rnrntrans<em>action</em> completionrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.jdbc.ConnectionManager:404) - rnrnaggressively releasing JDBC connectionrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.jdbc.ConnectionManager:441) - rnrnreleasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open rnrnResultSets: 0, globally: 0)]rn2008-05-30 02:46:17,552 DEBUG rnrn(org.hibernate.connection.DriverManagerConnectionProvider:129) - returning rnrnconnection to pool, pool size: 1rn2008-05-30 02:46:17,552 DEBUG (org.hibernate.impl.SessionImpl:422) - after rnrntrans<em>action</em> completionrn2008-05-30 02:46:17,552 DEBUG (com.han.util.HibernateUtil:51) - close sessionrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.impl.SessionImpl:273) - closing rnrnsessionrn2008-05-30 02:46:17,552 DEBUG (org.hibernate.jdbc.ConnectionManager:375) - rnrnconnection already null in cleanup : no <em>action</em>rn2008-5-30 2:46:17 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.NullPointerExceptionrn at org.apache.jsp.admin.book.TestValues_jsp._jspServicernrn(TestValues_jsp.java:69)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.servicernrnrn
struts2 action到页面传值问题
<em>action</em>有一个username 有get set方法rn登录后转向一个main.jsprnrn可是main.jsp 中用 下列三个都得不到值没显示啊,不对吗rn rn rn rnrn还有怎么传递list啊,也不行呢rnrn rn
struts2 s:action 问题
rn //abcrnrnrnrnrn@abc rn貌似这里只能传s:hidden 组件,不能传组件,我想把s:hidden value="赋新的值" 似乎不行...rn有什么组件还能传入s:<em>action</em>吗
struts2 action取值问题
我在<em>action</em>里定义了一下User类做为属性,在前台表单里的文本框里是rn但提交到<em>action</em>后,取User的时候怎么是这种形式呢 User$$EnhancerByCGLIB$$a379bb44
struts2 action 路径问题
之前发了个贴提问<em>action</em>找不到的<em>问题</em>nhttp://ask.csdn.net/questions/189946n大家说的也都没能解决n自己又折腾了好几天,感觉似乎是页面上去找<em>action</em>的路径不对,我点击登录后他找的<em>action</em>路径是pages文件夹下的,本来是否应当是找struts.xml这个文件的路径?n![图片说明](https://img-ask.csdn.net/upload/201506/23/1435027097_214271.png)nnn我的工程结构的话这个正确路径应当是什么n![图片说明](https://img-ask.csdn.net/upload/201506/23/1435027166_350480.png)n又应当怎么去写这个路径?nn![图片说明](https://img-ask.csdn.net/upload/201506/23/1435027210_875186.png)n![图片说明](https://img-ask.csdn.net/upload/201506/23/1435027252_375005.png)nn挺急的!希望有大牛来帮帮忙啊~感激不尽
struts2action问题
我们小组做了一个J2EE的HRrn在学校运行一切正常rn回到家里就不行了rnrn错误信息rnrnrn[code=Java]rnrnStruts Problem ReportrnStruts has detected an unhandled exception: rnrnMessages: There is no Action mapped for namespace /human and <em>action</em> name humanFileAction. rn rnrn[/code]rnrn是<em>action</em>找不到吧
struts2,Action和session的问题
就是我<em>action</em>处理请求rn然后设置了session 属性 比如是 userrn然后result跳转回页面rn在那个页面 user是能得到的 然后我在那个页面点了个超链接到其他页面rn再用session.getAttribute就为空了rnrn--------------我的Actionrnpackage com.manage.<em>action</em>;rnrnimport java.util.List;rnrnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpSession;rnrnimport org.apache.<em>struts2</em>.ServletActionContext;rnimport org.apache.<em>struts2</em>.interceptor.ServletRequestAware;rnrnimport com.manage.dao.IManageDAO;rnimport com.opensymphony.xwork2.ActionSupport;rnimport com.universalone.dao.IUniversaloneDAO;rnimport com.webhomework.po.Myuser;rnrnpublic class ManageAction extends ActionSupport implements ServletRequestAware rnrn private HttpServletRequest request;rn private HttpSession session;rnrn rn public ManageAction() rn // TODO Auto-generated constructor stubrn rnrn @Overridern public void setServletRequest(HttpServletRequest arg0) rn request=arg0;rn session=request.getSession(true);rnrn rnrn rn public String getMemberInfo() throws Exception rn Myuser myuser=(Myuser) session.getAttribute("myuser");rn System.out.println(myuser);rn rn IManageDAO imd=(IManageDAO) request.getAttribute("imanagedao");rn List list=imd.getMembersById(myuser, 1, 3);rn System.out.println(list.size());rn rn Myuser user=list.get(0);rn if(user!=null)rn session.setAttribute("myuser",user);rn rn rn return "success";rn rn rn elsern rn request.setAttribute("error","未找到");rn return "error";rn rn rn rnrnrnrn--------------已经测试过的方法rn1.得到session的两种方式 Aware借口和ActionContext都试过rn2.OGNL和JSTL还有EL表达式都使用过rn3.tomcat用过3个版本 MYECLIPSE用过了2个版本rn4.不同页面的session_id是一样的rnrnrn综上 <em>问题</em>就是我设置的session用起来就跟request一样 不会这个是<em>struts2</em>的BUG吧???rnrnrnrn
struts2 action返回值的问题
我看人家的源码。。 有的直接返回SUCCESS ,还有的返回Action.SUCCESS.rnrn这有什么区别吗? 分别用在什么情况
struts2 action问题
rnrnrn这个login!login.do 啥意思i
struts2action问题
rnrn在rn rn/MyJsp.jsprn/MyJsp.jsprnrnrn这样的条件下是能显示出来的,但是在经过了hello1.<em>action</em>后,就显示不出来了。rn如有这么一些配置文件rn rnhello1rnhello1rnrnrnrn/MyJsp.jsprn/MyJsp.jsprnrnrn当我在hello这个<em>action</em>里面产生了<em>action</em>error或者filederror之类的,怎么在hello1的MyJsp.jsp里面显示出来???rn当我访问hello.<em>action</em> 它产生了<em>action</em>error或者filederror之类的,然后跳转到hello1.<em>action</em>,这里怎么显示?rnrn我不知道我说明白我的意思了没
struts2问题 action怎么弄
如果有一个类是Product,而且他对应的<em>action</em>为ProductActionrn我在jsp页面中要对Product进行保存,首先是一个获取name等相关属性的表单。rn那是不是要再ProductAction中保存一个Product的引用啊?这样才能在ProductAction中接受表单的数据。。rn还有是不是<em>struts2</em>的<em>action</em>和jsp页面交互,则都要再<em>action</em>中保存一个对应的引用。或者把对象放到request里。。
struts2 action 跳转问题
跳转的界面rn
Struts2 Action参数问题
js代码:rn function ReloadList()rn rn var bParam = SqlIndex:23,UserId:2,PeriodId:1;rn window.location.href='LoadList.<em>action</em>?bParam=bParam;rn rn在<em>action</em>类中bParam是一个pojo类型的变量。上面的代码会报错。rn请问bParam在js中如何赋值?
请教Struts2的action问题
login.jsprn rn rn rn rn rn rn rn rnrnrnLogin.javarn private String username;rn private String password;rnrn public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rn通过在页面设定元素name属性和Action中变量名相同,就可以取得页面的值。rnrn<em>问题</em>是:这一部分是如何实现的,原理是什么?
struts2 泛型action问题
public class DataModelAction extends ActionSupport rn T dataModel;rn List dataList;rnrn public T getDataModel() rn return dataModel;rn rnrn public void setDataModel(T dataModel) rn this.dataModel = dataModel;rn rnrn public List getDataList() rn return dataList;rn rnrn public void setDataList(List dataList) rn this.dataList = dataList;rn rnrnrnpublic class TestAction extends DataModelAction rn private String successPath;rn rn public String getSuccessPath() rn return successPath;rn rn public void setSuccessPath(String successPath) rn this.successPath = successPath;rn rnrn public String test()rn System.out.println(dataModel.getName());rn successPath = "/success.jsp";rn return SUCCESS;rn rnrnrn rn rn rn rn rn rn rnrn报OGNL找不到setter方法。。rn救助
Struts2 Action 的生命周期 问题
Struts2 Action 的生命周期 <em>问题</em>rnrn我在项目中仅用了<em>struts2</em> + java + jsp rn其它的 没有用。rnrn比如现在在LoginAction的对象中有一个Conntion 的属性,我想自己管理这个LoginAction的生命周期,因为只要我一执行完这个LoginAction,我要关闭这个链接。请问我该怎么做呢?rnrn我是自己写了一个构造函数public LoginAction()..., 然后再重载了Object 的finalize()方法。行是行得通,但是这样做不好,因为Action 默认是延迟关闭的,Conntion 不能及时关闭,别的用户用不了...rn
struts2action问题
[发布信息]rnrnrn /iew/IndexTemp.jsprn /iew/IndexTemp.jsprn rn请问下 在infoAction类里为何先执行public void validateAdd()在执行public String Add()rn
jsp页面到struts2 action问题
[color=#FF0000]Action代码rn[/color][size=24px][/size]rnpublic class PaySearchAction extends ActionSupport rnrn /**rn * rn */rn private static final long serialVersionUID = 1L;rnrn public TOrderList tOrderList;// 订单rn public TOrderList gettOrderList() rn return tOrderList;rn rnrn public void settOrderList(TOrderList tOrderList) rn this.tOrderList = tOrderList;rn rn private List orderListList;// 用户列表rn @Autowiredrn private TOrderListInter tOrderListInter;rnrn /* 支付订单查询 */rn public String paySearch() rn System.out.println("----------------------------------");rn if (null == tOrderList) rn orderListList = tOrderListInter.orderList(DataUtilrn .getNowOrderListName(), tOrderList);rn else rn if (null == tOrderList.getId() || "".equals(tOrderList.getId())) rn orderListList = tOrderListInter.orderList(DataUtilrn .getNowOrderListName(), tOrderList);rn rn orderListList = tOrderListInter.orderList(DataUtilrn .getTOrderListName(tOrderList.getId()), tOrderList);rn rn return SUCCESS;rnrn rnrn rnrn public List getOrderListList() rn return orderListList;rn rnrn public void setOrderListList(List orderListList) rn this.orderListList = orderListList;rn rnrnrn[color=#FF0000]JSP代码[/color][size=24px][/size]rnrnrnrn rn rn 支付订单查询rn rn rn rn rn rnrn rn rnrnrn[color=#FF0000]当把<em>action</em> 中的public TOrderList tOrderList;// 订单 public 换成private 就会接收不到页面传进来的值 rn下面是抛错[/color][size=24px][/size]rnognl.OgnlException: target is null for setProperty(null, "tradestatus", [Ljava.lang.String;@1a7dec4)rn at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2239)rn at ognl.ASTProperty.setValueBody(ASTProperty.java:127)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.ASTChain.setValueBody(ASTChain.java:227)rn at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)rn at ognl.SimpleNode.setValue(SimpleNode.java:301)rn at ognl.Ognl.setValue(Ognl.java:737)rnrnrn..........rn[color=#FF0000]当form提交的时候抛的全是ognl的错误[/color][size=24px][/size]
Struts2 action result ->action?
[code=XML]rnrn zzz.<em>action</em>rnrn[/code]rn这样不可以?
Struts2 in action(struts2实战)
Struts2作为javaweb开发的三大框架之一,很有必要了解其使用以及原理
Struts2 In Action(Struts2 实战)
本书结合实例介绍了Struts 2框架,主要内容包括Action、Result、Interceptor等框架组件,基于注解的配置选项等新特征,Struts 2插件 FreeMarker,如何从Struts 1和WebWork 2迁移到Struts 2,Ajax标签、Spring框架集成等新特性。本书适合各层次Java开发人员阅读和参考
struts2 in Action
如果你想自学<em>struts2</em>,此文档是很好的自学宝典,经典<em>struts2</em> in Action,能帮你建立整体的<em>struts2</em>思想,你还在犹豫什么
Struts2 in Action
Struts2 in Action英文版和<em>struts2</em> in Action中文版(也叫Struts2实战)
struts2 in action
这本权威的struts的书就不用介绍了吧?反正网上评价很不错!
Struts2 In Action
<em>struts2</em> in Action完整版,购买原版英文书后获得电子版本,大家共享
Struts2 in action
Struts2 in <em>action</em> 中文版
struts2 action
刚刚接触<em>struts2</em>,看了一点例子,有的程序并没有用到.<em>action</em>,这样的程序属于与用到.<em>action</em>有什么本质的区别吗?
struts2 in action
<em>struts2</em> in <em>action</em> java开发必学的框架,提高对框架的理解,
Struts2 IN ACTION
<em>struts2</em> in <em>action</em>
struts2 actionaction之间传值的问题~~
我写了一个用户登陆的类~ 如果是管理员就登陆到管理页面,如果是普通用户就跳转到另一个<em>action</em>并用上一个<em>action</em>的参数查询出数据,但是<em>问题</em>就出在<em>action</em>传值上,我参考了很多网上的资料 并一一试了之后 还是得不到上一个<em>action</em>的参数。请大家帮忙看看我的代码. 我写了set/get方法 也用param传了参数, 也试了在session里面取 但是都没有成功,请问我的<em>问题</em>出在那里呢???rnrnstruts.xmlrnrnrn rn guerinfo.<em>action</em> rn / rn $school_idrn $passwordrn rn /main.jsprn /error.jsprn rnrn /guser.jsprn /error.jsprn rnLoginActionrnrnpublic class LoginAction extends ActionSupportrnrn private User user = new User();rn private String school_id;rn private String password;rn rn public String execute() throws Exception rn rn school_id=user.getSchool_id();rn password=user.getPassword();rn rn if(UserDao.CheckLogin(user.getSchool_id(), user.getPassword()).equals("admin"))rn ActionContext.getContext().getSession().put("school_id",user.getSchool_id());rn ActionContext.getContext().getSession().put("password",user.getPassword());rn return SUCCESS;rn else if(UserDao.CheckLogin(user.getSchool_id(), user.getPassword()).equals("user"))rn ActionContext.getContext().getSession().put("school_id",user.getSchool_id());rn ActionContext.getContext().getSession().put("password",user.getPassword());rn return INPUT;rn elsern rn return ERROR;rn rn rnrn public User getUser() rn return user;rn rnrn public void setUser(User user) rn this.user = user;rn rnrn public String getSchool_id() rn return school_id;rn rnrn public void setSchool_id(String school_id) rn this.school_id = school_id;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rnrnrnrnGuserInfoActionrnrnpublic class GuserInfoAction extends ActionSupportrn rn private List guserlist = null;rn private User user = new User();rn private String school_id;rn private String password;rnrn public String execute() rn tryrn school_id=user.getSchool_id();rn password=user.getPassword();rn rn System.out.println(school_id+password);rn rn guserlist = GuserDao.getGuserList(user.getSchool_id(), user.getPassword());rn Map map = ActionContext.getContext().getSession();rn this.setGuserlist(guserlist);rn map.put("guserlist", guserlist);rn rn catch (SQLException e) rn guserlist = null;rn e.printStackTrace();rn rn return SUCCESS;rn rnrn public User getUser() rn return user;rn rnrn public void setUser(User user) rn this.user = user;rn rnrn public List getGuserlist() rn return guserlist;rn rnrn public void setGuserlist(List guserlist) rn this.guserlist = guserlist;rn rnrn public String getSchool_id() rn return school_id;rn rnrn public void setSchool_id(String school_id) rn this.school_id = school_id;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rn
Struts2 action 跳转 到另一个 action 问题
如题 但是有点要求 例如: 前个页面有一个输入文本 ID 我想在另一个<em>action</em> 中 取到rnrn代码:rn rn addActionrn $userIDsrn rnrnrnuserIDs 取不到值
struts2 action跳转到action参数传递问题
r r r sitecolumnList.jspr r r r sitecolumnEdit.jspr r List.<em>action</em>?siteid=$siteidr r r r List.<em>action</em>?siteidEdit=$siteidEdit&siteid=$siteidr r r r r 我想知道List.<em>action</em>?siteid=$siteidr 中的siteid这个值是如何从上一个<em>action</em>传递过来的?麻烦大家给解释一下。
struts2action跳转action传值问题
struts配置文件中写法如下rn<em>action</em>1:rn rn /test2!m1?id=$id&status=$statusrn rnrn<em>action</em>2:rn rn index.jsp rn rnrnjava代码 <em>action</em>1:rn public String test()rn ...rn request.setAttribute("id" , 1);rn request.setAttribute("status" , 0);rn return suc1;rn rnrn <em>action</em>2:rnrn public String m1()rn ...rn int id = request.getParameter("id");rn int status = request.getParameter("status");rn rn<em>问题</em>是id和status都取不到值,是什么原因啊,还是哪里要设置了?rn
struts2action跳转action问题
<em>action</em>1:rn rn /test2!m1.<em>action</em>rn rnrn <em>action</em>2:rn rn index.jsp rn rnrnrnjava代码 <em>action</em>1:rn public String test()rn ...rn request.setAttribute("id" , 1);rn return suc1;rn rnrn <em>action</em>2:rnrn public String m1()rn ...rn int id = request.getParameter("id");rn rnrn我想在第二个<em>action</em>取到第一个<em>action</em>里面通过作用域保存的值,type值设置为redirect可以成功跳转,但是取不到request作用域里面的值,type值设置为chain又会出现找不到<em>action</em>的提示,这是什么原因啊,望高手解答,在此先谢过
struts2重定向action 到另一个action
在调用getCollect.<em>action</em>方法时,判断当没有登陆的时候则自动跳到登陆<em>action</em>类中的方法里如果登陆则跳到jsp 注解:  @Namespace("/user") public class LoginUserAction{ @Action(vlaue="login",results={@Result(location="doLogin.jsp")}) publi
struts2 action跳转action传参数
<em>action</em>跳转后的页面接收由上一个ACTION传过来的参数
struts2 action中默认值的问题
我在<em>action</em>中定义了rn private String loginid;rn private String pwd;rn private String name;rn private String email;rn private String phone;rn private int currentPage; rnrncurrentPage表单中是没有的rnint类型我打印的时候是0,但是如果是Integer类型则打印的是nullrnrn我想问的是在<em>struts2</em>中如果没有传递值过来,
Struts2 tomcat 访问action问题
Struts2 + tomcat Help!! 小弟刚刚学习<em>struts2</em> 不知道为什么当我刚刚开启tomcat的时候一切正常Action能正常访问,但是过上十几分钟之后就嗝屁了,再请求之前那个正常的Action时页面就一直处在加载状态,控制台也不报错.重启一下tomcat就又能访问了.rnrnrnrnwhile(1=1)rn 上面的情况;rnrn
Struts2的action标签问题,烦躁!
初学Struts2,感觉一碰到struts.xml文件就各种容易出些莫名其妙的<em>问题</em>。。。错误提示找不着北。。。rn下面这个<em>问题</em>一直解决不了:rnstruts.xml文件:rn[code=text]rnrnrnrn rn rn rn /exception.jsprn /login.jsprn /error.jsprn /welcome.jsprn rn rn /welcome.jsprn rn rnrn[/code]rnrn两个<em>action</em>文件LoginAction和TagAction是放在同一个包下的,没有什么功能,就是返回一下“success”、“error"这些。rnrn写了两个jsp文件,第一个是在form里调用了LoginAction:rn[code=html]rnrnrnrnrnrn rn rnrnrnrn rn rn rn rnrnrnrn[/code]rnrn这个没什么<em>问题</em>,正常调用了LoginAction。可是另外一个jsp文件仅仅是使用<em>action</em>标签调用TagAction,就一直提示:rn严重: Could not execute <em>action</em>: /tagrnThere is no Action mapped for <em>action</em> name tag. - [unknown location]rn没法正确执行。这个jsp文件很简单:rn[code=html]rnrnrnrnrnrn rn Struts2 Tagsrnrnrnrnrnrn[/code]rnrn检查半天没发现哪不对,我在第一个jsp文件里,直接把改成都是能正常调用到TagAction,产生相应的结果的,为什么到了<em>action</em>标签这就一直提示没有映射到tag的<em>action</em>呢?rn而且我在第二个jsp里吧<em>action</em>标签里的tag换成loginAction也提示一样的错误:没有映射到loginAction的<em>action</em>。rn另外,相应的文件的位置都是正确的。rnrn太奇怪了,实在是理解不了。。。大神们帮我看看到底是哪用错了?脆弱的struts.xml,折磨疯了
struts2问题-There is no Action mapped for namespace
这个是我的struts.xmlrnrnrnrn rn rn /result.jsprn rn rnrn这个是我的web.xmlrnrnrn rn rn <em>struts2</em>rn rn org.apache.<em>struts2</em>.dispatcher.FilterDispatcherrn rn rn rn rn <em>struts2</em>rn /*rn rnrn这是是我的bean文件rnpackage com.test.<em>action</em>;rnrnpublic class LoginAction rn private String username;rn private String password;rn rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rn rn public String execute() throws Exceptionrn return "success";rn rnrn这个是jsp文件:rnrn rn username:rn password:rn rn rn rn rn rn当我点submit时:报了这样一个错HTTP Status 404 - There is no Action mapped for namespace / and <em>action</em> name login,不知道是怎么回事。在网上查了好多,但是没有一个能解决的。希望高手来帮忙一下。
action"的问题">struts2中关于".action"的问题
我在struts.xml中的配置如下:rn[code=HTML]rn rn rn /1_2_success.jsprn rn rn[/code]rnrn请看:rnrn[code=HTML] rn学生添加rnrn[/code]rnrn像这样的话,我当我点击 [color=#0000FF]学生添加[/color] 这个超级链接的时候,不能访问 Student_add_success.jsp 文件。rnrn但是如果我的超级链接改成如下的话:rnrn学生添加rnrn就能顺利访问 Student_add_success.jsp 。rnrn我之前也看过一些教学视频,他们的是不用加".<em>action</em>" ,都能访问的。rnrn我想请问有经验的高手和朋友们,我的<em>问题</em>归根原因在哪里,导致有无.<em>action</em> 却出现不同的情况。rnrn请指教。祝愉快。rn
Struts2 的关于Action调用的问题
我配置好了一个Action,直接在URL访问http://localhost/test.<em>action</em>rn就会进入后台的Action java 程序。rn但是如果这个我把这个http://localhost/test.<em>action</em>rn放到一个图片的src属性中在画面显示的时候。rn像rnrn画面显示出来的效果 好像是对的,但后台Action java 程序设了断点,也没走进来。rn有高手知道吗?
Struts2的action后缀改写问题?
以前没有使用框架时,所有文件的后缀名都是*.jsprn但是现在使用<em>struts2</em>.0框架,所处理的后缀都是:*.<em>action</em>rn以前用urlrewirte3.0来重写url地址将.jsp改写成.html伪静态页很容易被搜索引擎收录.现在的用<em>struts2</em>.0写了,怎么来实现后缀改写啊.rn用urlrewirte来改写就要出错.rn有没有高手来帮忙解决.rn
初学struts2 action问题,,求教
![<em>action</em>配置](https://img-ask.csdn.net/upload/201604/14/1460613357_745508.jpg)n![类](https://img-ask.csdn.net/upload/201604/14/1460613398_887729.jpg)n输入http://localhost:8080/qiaoliang_demo/getBarcoden![错误](https://img-ask.csdn.net/upload/201604/14/1460613449_381227.jpg)n
Struts2 Action动态方法调用问题
刚接触Struts2,做个简单的程序,希望点击登入时使用execute方法,点击注册按钮时调用regist方法,然而使用login!regist注册按钮无法调用regist方法。希望有人能指点一下。rnlogin.jsp代码[code=java]rnrnrnrnrn rnrnrnrn rn rn rn rn rn rnrnrnrn[/code]rnAction代码[code=java]package lee;rnimport com.opensymphony.xwork2.ActionContext;rnimport com.opensymphony.xwork2.ActionSupport;rn/**rn * Created by Administrator on 2017/4/25 0025.rn */rnpublic class LoginAction extends ActionSupportrn private String username;rn private String password;rnrn public String getUsername() rn return username;rn rnrn public void setUsername(String username) rn this.username = username;rn rnrn public String getPassword() rn return password;rn rnrn public void setPassword(String password) rn this.password = password;rn rn public String regist() throws Exceptionrn ActionContext <em>action</em>Context=ActionContext.getContext();rn <em>action</em>Context.getSession().put("username",getUsername());rn <em>action</em>Context.put("tip","恭喜你"+getUsername()+"。注册成功!");rn return SUCCESS;rn rn @Overridern public String execute() throws Exception rn if (getUsername().equals("xiao")rn &getPassword().equals("123456"))rn ActionContext.getContext().getSession().put("user",getUsername());rn return SUCCESS;rn rn else rn return ERROR;rn rn rnrn[/code]rnstruts.xml代码rn[code=java]rnrnrnrn rn rn rn rn rn /login.jsprn /error.jsprn /welcome.jsprn rn rn /error.jsprn /welcome.jsprn rn rn[/code]
struts2 action中validate的问题
学习做一个用户注册页面,因为显示页面前要从数据库读取数据并放到select标签中,所以我做了两个函数,addView和addUser.rnAction实现了ActionSupport接口并重载了validate函数。rn<em>问题</em>来了:rn我是通过<em>action</em>_addView来读取数据然后return到注册页面,这时只是读取资料,无需执行validate的。但是还是被触发,被卡住了。造成页面只加载了一半。rn把validate函数注释掉就就十分正常。rn怎样才能控制addView不触发validate,addUser时才触发来校验用户输入呢?
struts2 action两次提交问题
我用的是<em>struts2</em>+spring2.5+ibatis 前端用的是velocity <em>action</em>会执行两次或三次 <em>问题</em>在于页面上的img元素 当$user.picUrl等于空字符串的时候,就会引起<em>action</em>方法调用多次!!! 我在model里判断,当picUrl==&quot;&quot;的时候,赋个非空字符串值就可以了 引用http://www.iteye.com/t...
spring aop struts2 action问题
我想用spring aop来切<em>struts2</em>中指定的方法 但不是知道为什么老报方法找不到错误 rn而且我用spring aop 来同时管理事务时 却很正常 dao层出错 service层方法能做到事务的处理 也能回滚rn但就是不能毁 <em>action</em>中的方法 老是NoSuchMethod .郁闷......rnrn我的spring的配置如下 rn[code=XML]rnrnrnrnrn rn rn rn rn rn rnrn[/code]rn[code=Java]rnpackage com.test.web.<em>action</em>;rnrnimport java.text.SimpleDateFormat;rnimport java.util.Calendar;rnrnimport javax.servlet.http.HttpServletRequest;rnrnimport org.apache.<em>struts2</em>.ServletActionContext;rnrnpublic class CheckAuthorAction //这是个strut2的 <em>action</em>类,验证成功就继续执行 rn //失败就返回登录页面rn private String from ;rn public String checkAuthority() //我想用这个方法处理我的切点 原意是想对用户身份做验证rn //测试时就简单点 用时间测试 rn rn Calendar cal = Calendar.getInstance();rn SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");rn HttpServletRequest request = ServletActionContext.getRequest();rn String time = sdf.format(cal.getTime());rn String[] times = time.split("-");rn if("10".equals(times[2])) rn rn String path = request.getContextPath();rn String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn String servletPath = request.getServletPath();rn rn from = basePath+servletPath ;rn System.out.println("aop 验证时,通过验证......................................................");rn return "checkAuthorPass" ;rn elsern request.setAttribute("error_message","aop 验证时,发现用户没有登录");rn System.out.println("aop 验证时,发现用户没有登录.....................................................");rn return "checkAuthorFail" ;rn rn rn public String getFrom() rn return from;rn rn public void setFrom(String from) rn this.from = from;rn rnrn[/code]rnrn[code=Java]rnpackage com.test.web.<em>action</em>;rnrnimport java.sql.Timestamp;rnimport java.util.List;rnrnimport org.apache.<em>struts2</em>.ServletActionContext;rnrnimport com.opensymphony.xwork2.ActionSupport;rnimport com.test.persistent.entity.Notice;rnimport com.test.service.iservice.NoticeService;rn //有网友说不要继承ActionSupport我也做了 不继承和继承我都试了 都不行呀rnrnpublic class NoticeAction rn private NoticeService noticeService;rn private int id;rn private String noticeTitle;rn private String noticeContent;rn private int noticeSort;rn private String ids;rn private int startRow;rn private String to_page;rn public String showNotices()rn tryrn List notices=noticeService.showNotices();rn ServletActionContext.getRequest().setAttribute("notices", notices);rn return to_page;rn catch(Exception e)rn rn return "error";rn rn rn public void setIds(String ids) rn this.ids = ids;rn rn public void setstartRow(int startRow) rn this.startRow = startRow;rn rn public void setId(int id) rn this.id = id;rn rn public void setNoticeContent(String noticeContent) rn this.noticeContent = noticeContent;rn rn public void setNoticeService(NoticeService noticeService) rn this.noticeService = noticeService;rn rn public void setNoticeSort(int noticeSort) rn this.noticeSort = noticeSort;rn rn public void setNoticeTitle(String noticeTitle) rn this.noticeTitle = noticeTitle;rn rnrnrn[/code]rn rnrn2009-9-10 9:55:04 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet default threw exceptionrnjava.lang.NoSuchMethodException: $Proxy41.showNotices()rn at java.lang.Class.getMethod(Unknown Source)rn at org.apache.<em>struts2</em>.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:55)rn at org.apache.<em>struts2</em>.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:41)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)rn ...
struts2 action中属性的问题
a.jsprn....rn"/>rn...rn这个typefig 没进一次页面就会有不同的值rnrn<em>action</em>rnprivate String typefig;rn有get和set的方法rn rn请问rntypefig 什么时候会给它值?rn是a。jsp 进<em>action</em>就赋值一次吗?rnrn我遇见的<em>问题</em>是当运行添加的方法时候就会给它赋值rn而删除方法中就没有赋值这是怎么回事?rn
Struts2中action路径问题
如果我的jsp文件结构如下:rn[img=http://img.my.csdn.net/uploads/201206/08/1339146696_3334.png][/img]rn我在test.jsp文件中有一个链接,点击该链接,会触发addmodel.<em>action</em>,然后会跳转到model/addmodel.jsp页面。rn因为是测试,addmodel.jsp页面中只有如下内容:rn[code=HTML][/code]rn我的struts.xml内容如下:rn[code=XML]rn rn rn rn /model/tree/addmodel.jsprn rn rn [/code]rn我的<em>问题</em>是这样的:当我test.jsp页面链接地址写成添加模型,则addmodel.jsp页面的图片加载失败,看了一下图片地址是:http://127.0.0.1:8000/images/huitailang.gif这个地址缺少了我的项目名(myJavaEE),自然是不对的,但是我该写成什么地址才是对的呢?这个<em>问题</em>困扰我很久了,以前就睁一只眼闭一只眼过去了,这次真的想把这个<em>问题</em>弄清楚。求助各位。
华为“网络工程师”培训专用教程下载
华为内部培训资料 高清完整中文版 500+页的内部资料 更多免费资源 请加关注 相关下载链接:[url=//download.csdn.net/download/baiyu9821179/4265667?utm_source=bbsseo]//download.csdn.net/download/baiyu9821179/4265667?utm_source=bbsseo[/url]
模糊空间信息分析(王新洲)下载
模糊集和模糊逻辑[43]概念起源于1965年,它是由美国控制论专家L.A. Zadeh首先提出的. 模糊集合论是经典集合论通过引入所谓隶属函数的概念发展起来的,目前已经建立起一系列有关模糊数学的基础理论和应用方法[51-54]. 其基本思想是利用数学语言来描述并解释具有不确定性(模糊性)的自然语言、自然现象以及不能或很难建立其精确的数学模型的物理过程,使之被纳入到定量分析理论中,再利用数学理论和工具去解决这些问题,达到更加符合实际的目的. 由于较之分明集合,模糊集合能更好地反映、描述和刻划客观实际问题,自它诞生之日起,不仅得到了数学工作者、理论分析家的推崇,而且也得到应用专家的钟爱. 随着计算 相关下载链接:[url=//download.csdn.net/download/woshidenghong/2695628?utm_source=bbsseo]//download.csdn.net/download/woshidenghong/2695628?utm_source=bbsseo[/url]
VHDL语言对8051芯片描述和仿真的应用下载
VHDL语言对8051芯片描述和仿真的应用VHDL语言对8051芯片描述和仿真的应用 相关下载链接:[url=//download.csdn.net/download/ggvs15/3379502?utm_source=bbsseo]//download.csdn.net/download/ggvs15/3379502?utm_source=bbsseo[/url]
我们是很有底线的