mysql获取当前时间 now()
java获取时间戳System.currentTimeMillis() 返回格式为long
在jsp单独按键触发事件
<form action="${pageContext.request.contextPath}/jsp/forum.do" method="post"> <input type="submit" name="r1button1" value="上一页" /> <input type="submit" name="r1button2" value="下一页" /> </form>
if (req.getParameter("button1") != null) { 点击按键1运行。。。 } else if (req.getParameter("button2") != null) { 点击按键2运行。。。 }