摘要: 1.关于RelativeLayout设置layout_height = "wrap_content"的时候,Button动态设置的RelativeLayout.ALIGN_PARRENT_BOTTOM会撑破容器;2.如果设置一个初始在XML文件中ID为iniBut的Button的属性Visially="gone"的时候,动态添加的button以它为参考,设置(RelativeLayout.ALIGN_BOTTOM,R.id.iniBut)不会生效;3.每个RelativeLayout.LayoutParams只能对应一个Button!!(或者是Layou 阅读全文
posted @ 2012-06-03 00:16 I'm Hurley 阅读(5710) 评论(0) 推荐(0)
摘要: 编写接口,别写接口的实现类,接着写action的代码,jsp里面的提交form里面的action怎么写具体看jsp页面里面的action要写struts.xml里面的action名字。struts.xml里面的每个action里面的class="loginAction"这里的loginAction不再是以前的真正的类的映射!因为要交给spring管理,所以这里的loginAction 必须 要与 applicationContext.xml 中的<bean id="loginAction" class="org.lmxzz.struts2 阅读全文
posted @ 2012-06-03 00:15 I'm Hurley 阅读(178) 评论(0) 推荐(0)