打印

[求助] 求助一个JSP跳转代码。请求高手指点

0

求助一个JSP跳转代码。请求高手指点

想知道下JSP跳转回复页面的最简单方式。比如说回帖。我发表的回帖按降序会排列在最后。
我设置的page是一页显示10条。请问下我如何跳转到我刚回复的那个页面。我如何知道我发的回帖page会是几?
是不是非要查询数据库一共有多少条回复帖子然后除于我一页显示的10.如果等于几page就是几。如果是整就-1这个方法才能办到?

TOP

0
如果楼主是刚刚回复的话, 那当然是最后一页了.   最后一页直接点最后一页就可以了呀.  而且知道自己的回复在哪里有什么意义呢? 认真回帖就好了.

TOP

0

回复 2楼 的帖子

2楼的大哥。我想知道的是代码如何实现。求助啊~请看清楚我的贴子在数落我啊。谢谢了。

TOP

当前时区 GMT+8, 现在时间是 2024-9-13 06:21

Fatal error: Uncaught RedisException: OOM command not allowed when used memory > 'maxmemory'. in /home/wwwroot/sis/public_html/forum/include/dRedis.class.php:57 Stack trace: #0 /home/wwwroot/sis/public_html/forum/include/dRedis.class.php(57): Redis->rPush() #1 /home/wwwroot/sis/public_html/forum/include/statistics.inc.php(378): dRedis::rpush() #2 /home/wwwroot/sis/public_html/forum/include/statistics.inc.php(289): matomoStatistics() #3 /home/wwwroot/sis/public_html/forum/include/global.func.php(490): dstatistics() #4 /home/wwwroot/sis/public_html/forum/forumdata/templates/22_footer.tpl.php(41): output() #5 /home/wwwroot/sis/public_html/forum/forumdata/templates/22_viewthread.tpl.php(559): include('/home/wwwroot/s...') #6 /home/wwwroot/sis/public_html/forum/viewthread.php(440): include('/home/wwwroot/s...') #7 {main} thrown in /home/wwwroot/sis/public_html/forum/include/dRedis.class.php on line 57