摘要: 1:namespace必须用斜杠开头,你的namespace是什么,你访问的时候工程名后要跟什么。然后再跟对应的action解释:package中namespace属性是可以不写的,等用于“namespace=""”,等空意味着只要你在url中输入action的name,不管是“http://localhost:8080/aaa/bbb/index”还是“http://localhost:8080/struts2/index”,aaa和bbb都是乱敲的,效果都一样,都可以访问这个action。即:namespace=""的package囊括了其他pack 阅读全文
posted @ 2013-03-20 16:02 歌颂者 阅读(407) 评论(0) 推荐(0) 编辑
摘要: By VOA18 March, 2013From VOA Learning English, this is theTechnology Reportin Special English.这里是来自VOA英语的科技报导From New Delhi to Beijing, commuters spend a lot of time stuck in traffic. In the United States, Los Angeles and San Francisco tie for second place for having the worst traffic problems. Wash 阅读全文
posted @ 2013-03-20 14:06 歌颂者 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1:拷贝jar包:如图,注意的是,别人用的是struts2.1.6,不用导入javassist-3.9.0.GA.jar和commons-lang3-3.1.jar。但是我用的是struts2-core-2.3.12.jar,必须要导入javassist-3.9.0.GA.jar和commons-lang3-3.1.jar才行,不然报错。2:配置web.xml:3:配置struts.xml4:编写jsp页面,放在WebRoot下面,工程名是struts25:访问:http://localhost:8080/struts2/hello(或者http://localhost:8080/struts 阅读全文
posted @ 2013-03-20 11:34 歌颂者 阅读(297) 评论(0) 推荐(0) 编辑