摘要: 2012-01-17 13:50470人阅读评论(0)收藏举报比如当我进入首页时,就要将数据库中的一些数据加载到welcome.jsp页面中,但是刚进入页面时,是没有执行action的,所以无法通过action获得数据库中的数据。此时有一个办法:就是建立一个临时的页面,比如temp.jsp,在该jsp页面中的head中只有一句:<meta http-equiv=’refresh’ content=’0;url=yourAction.action’>,然后在web.xml文件中设置<welcome-file-list>,把temp.jsp设置成初始访问的页面(原先是wel 阅读全文
posted @ 2012-10-18 19:08 zearin 阅读(12097) 评论(0) 推荐(0) 编辑