社区
Web 开发
帖子详情
大家给看看jsp中写java如何跳转另一个jsp页面
passer_ming
2008-07-04 10:12:54
if (!title.equals(EMPTY) && content.equals(EMPTY)) {
response.sendRedirect("sendMsg.jsp?checkDate=" + 2);
return;
}
现在不想用response.sendRedirect("sendMsg.jsp?checkDate=" + 2);
也不用<jsp:forward>
还有别的实现方式吗
...全文
327
7
打赏
收藏
大家给看看jsp中写java如何跳转另一个jsp页面
if (!title.equals(EMPTY) && content.equals(EMPTY)) { response.sendRedirect("sendMsg.jsp?checkDate=" + 2); return; } 现在不想用response.sendRedirect("sendMsg.jsp?checkDate=" + 2); 也不用 还有别的实现方式吗
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
passer_ming
2008-07-04
打赏
举报
回复
window.location.href = '你的页面';
用了之后没有反应阿
<script type="text/javascript">
window.location.href = "sendMsg.jsp?checkDate=" + 1;
</script>
duzhonghua
2008-07-04
打赏
举报
回复
[Quote=引用 4 楼 cowboy0101 的回复:]
使用javascript window.location.href = '你的页面';
[/Quote]
passer_ming
2008-07-04
打赏
举报
回复
up
cowboy0101
2008-07-04
打赏
举报
回复
使用javascript window.location.href = '你的页面';
passer_ming
2008-07-04
打赏
举报
回复
用的是jsp+servlet
现在就是想在jsp中如何实现跳转
不用response.sendRedirect("sendMsg.jsp?checkDate=" + 2);
也不用 <jsp:forward>
jiatai416
2008-07-04
打赏
举报
回复
struts可以解决
JSP
--从
一个
jsp
页面
通过按钮
跳转
到另
一个
jsp
页面
JSP
按钮
跳转
页面的方法 一句代码实现
jsp
页面
跳转
! 在初始的index.
jsp
页面
中,给按钮添加
一个
点击事件(onclick) οnclick="window.location.href=‘register.
jsp
’;" 通过单引号引住的部分是我们要
跳转
到的那个
jsp
页面
<%-- Created by IntelliJ IDEA. User: 杨小冥 Date: 2020/11/11 Time: 18:32 To change this template use File |
如何从
一个
JSP
页面
跳转
到其他页面
方法一:在
jsp
页面
中内嵌
java
代码(转发) <% pageContext.forward("pages/login.
jsp
"); %> 方法二:使用
jsp
的转发标签(转发) <
jsp
:forward page="pages/login.
jsp
"> <
jsp
:param name="data" value="XXX"></
jsp
:p...
JSP
写
一个
简单的登录界面
jsp
的简单登录功能实现
jsp
页面
中如何获取另
一个
jsp
页面
提交的信息
比如index.html页面的表单中有
一个
姓名文本框。 <form method="post" action="out.
jsp
"> 姓名: <input type= "text" name="uname"/><br /> <input type="submit" name="submit" value="提交"/> </form>...
JSP
实现登陆页面(表单提交、连接数据库、实现页面
跳转
)
JSP
实现登陆页面(表单提交、连接数据库、实现页面
跳转
) 1.数据库设计 2.主页面展示 3.代码展示: index.
jsp
<%@ page language="
java
" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/
Web 开发
81,110
社区成员
341,727
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章