日期:2014-05-17  浏览次数:20623 次

关于取地址栏参数的问题
地址栏参数如下:
http://localhost:8080/szyj/tutorialPage.jsp?tfilename=install
代码如下:
Java code

<%@ taglib uri="isomorphic" prefix="isomorphic" %>
<%@ page contentType="text/html; charset=GBK"%>
<%
   String tutorialFileName = request.getParameter( "tfilename" );
%>
<HTML><HEAD>
<isomorphic:loadISC skin="SilverWave"/>
</HEAD>
<BODY CLASS="pageBackground" STYLE="overflow:hidden">

<SCRIPT>
alert("111");
var _fileName=<%=request.getParameter( "tfilename" )%>;
[color=#FF0000]alert(_fileName);[/color]
[color=#FF0000]alert(tutorialFileName);[/color]
</SCRIPT>

</BODY></HTML>



alert(_fileName);和alert(tutorialFileName);都没有反应
请问怎么才能取到该参数

------解决方案--------------------
错了,我也重发一次:
JScript code
var _fileName='<%=request.getParameter( "tfilename" )%>';