当前位置: 技术问答>java相关
一个连接的问题
来源: 互联网 发布时间:2017-03-24
本文导语: 请问下面这段代码question_submit.jsp?type=是不是不允许这样写?可是我要传递type这个参数,还有什么办法么? if(member.isLogin() == false) {response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type="); -------- retur...
请问下面这段代码question_submit.jsp?type=是不是不允许这样写?可是我要传递type这个参数,还有什么办法么?
if(member.isLogin() == false)
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type=");
--------
return;}
if(member.isLogin() == false)
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type=");
--------
return;}
|
试试这样:
if(member.isLogin() == false)
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type=" + type);
--------
return;}
if(member.isLogin() == false)
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type=" + type);
--------
return;}
|
if(member.isLogin() == false)
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type="+type);
{response.sendRedirect("question_signin.jsp?link_url=question_submit.jsp?type="+type);