摘要:
JSP: 页面: 序号 书号 书名 用户 " > action:类: public class BookAction{ private Long bookId; /** 此处的bookId必须和jsp页面的要传向Action的 值的name 值相同 */ public Long getBookId() { return bookId; } public void setBookId(Long bookId) { this.bookId = bookId; } pub... 阅读全文
posted @ 2013-07-27 19:25
忍性而为
阅读(301)
评论(0)
推荐(0)
摘要:
1,struts2的form表单里面和url里面的传值以及Action所继承的父类都可以自动set属性注入action中,及继承的action中。2,凡是url和form表单传值,在action方法中,取值都要用到 request.getParameter(),才能取得到值。用request取值,主要是看list1.action?where=0& hhString=t'还是list1.jsp?where=0&hhString=t'。就在jsp和action中这个页面用request 可以取到值。action方法最终是找到action对应的类,所以在对应的类及继承 阅读全文
posted @ 2013-07-27 19:14
忍性而为
阅读(280)
评论(0)
推荐(0)

浙公网安备 33010602011771号