貌似...遇到过~~
你把script放到input上面去看看
有没有可能使这个原因~~~
你把script放到input上面去看看
有没有可能使这个原因~~~
解决方案 »
- Struts2标签替换<% %>的java语句
- 严重: Error starting static Resources
- 空指针异常java.lang.NullPointerException
- JAVA SQL数据库操作问题
- JSP中,想把变量内容用javascript显示在文本框,但出错了,显示undined,救急!!!!!
- JSP服务器配置问题,请高手指点!
- Date()的问题?
- 谁有jxl.jar能给我一份吗?不甚感激. [email protected]
- 问一个很简单的问题:在JavaBean中怎样调用Session Bean?
- 微信公众号开发——提现怎么实现,有没有demo指导下
- 谁知道哪里有提供SQL Server数据库服务的空间提供商?
- SmartUpload的使用问题
//out.jsp
<%
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
<script LANGUAGE="JavaScript"〉是你拷错了还是写错了
<script LANGUAGE="JavaScript〉
function tc(){
<%
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
}
</script>
怎么可以?!!
<%
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
还没有生成客户端文件就已经执行了的!!
你要在执行退出的时候转到一个页面logout.jsp,其中包含
<%
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
就可以!!
新建一个退出页面tc_login.jsp
<%
String right=(String)session.getAttribute("right");
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
<input type="button" name="" onclick="tc()" value="退出"><script LANGUAGE="JavaScript">
function tc(){
<%
session.removeAttribute("right");
response.sendRedirect("index.jsp");
%>
}
</script>