wang zheng hong change the page in jsp

[复制链接]
查看11 | 回复1 | 2008-7-10 15:21:54 | 显示全部楼层 |阅读模式
jsp:





index.jsp

[B]
WoLogViewer

">

[I]




the list show
logShow



[url=]next page[/url]

[/B]
how can i do ,
thatlike up' codecan run ??? please help!!!
downstairs is the servlet ,
maybe you modify the code, that can be run;
2:

换成
这个应该就ok了
3:
把web.xml 上面改为:

这样试一下
4:
css 是无关紧要的东西,只是用来修饰网页的, 是不是你的java 版本, 或者用的容器的问题,我用的是tomcat
5:这样改一下
int count = Integer.valueOf((String)request.getSession().getAttribute("count")).intValue(); 加一个intValue()
6:这样改:
="">
7:将55行java改为
response.sendRedirect("index.jsp?see")

回复

使用道具 举报

千问 | 2008-7-10 15:21:54 | 显示全部楼层
1.按了“searchlog”之后呢,就是The page cannot be found然后按后退,就发现在index.jsp有显示出第一页的东西,然后按nextpage,就是The page cannot be found了,看了你的代码,document.forms[0].action="/changedPage/page?made"; 这两个地方我是不是需要改一下,可是改成Test/ TestServlet也不行…2.http://localhost:9080/Test/index.jsp原来点了之后就到下面的地址htt
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行