摘要:
阅读全文
posted @ 2012-06-14 22:51
feiling
阅读(109)
评论(0)
推荐(0)
摘要:
访问链接是http://localhost:8080/Struts2_0700_ActionAttrParamInput/user/user!add?name=a&age=8 时在UserAction extends ActionSupport这个类中是通过setName()和setAge()方法将参数设定好的,与类中的属性无关红色部分是一一对应的 阅读全文
posted @ 2012-06-14 22:22
feiling
阅读(117)
评论(0)
推荐(0)
摘要:
在jsp中添加用户如果点击这个链接,则会跳转到http://localhost:8080/user/userAdd这个地址这是因为/user/userAdd中"/"代表tomcat web 应用程序的根路径即:http://localhost:8080,故会出现上述情况解决方法: 获取当前web应用程序的contextpath,然后加在前面,如下所示/user/userAdd">添加用户 阅读全文
posted @ 2012-06-14 21:30
feiling
阅读(167)
评论(0)
推荐(0)
浙公网安备 33010602011771号