当前位置: 技术问答>java相关
请帮忙看看下面这段代码在jsp中怎么实现阿?
来源: 互联网 发布时间:2015-10-16
本文导语: 这是一段asp程序,我要把他改成jsp的,但是到这一段就没了思路 for each myItem in Request.QueryString if left(myItem, 3) = "my_" then my_hz = my_hz + "=" + esc(Request.QueryString.Item(myItem)) end if next 多谢 | ...
这是一段asp程序,我要把他改成jsp的,但是到这一段就没了思路
for each myItem in Request.QueryString
if left(myItem, 3) = "my_" then
my_hz = my_hz + "=" + esc(Request.QueryString.Item(myItem))
end if
next
多谢
for each myItem in Request.QueryString
if left(myItem, 3) = "my_" then
my_hz = my_hz + "=" + esc(Request.QueryString.Item(myItem))
end if
next
多谢
|
String name;
while(request.getParameterNames().hasMoreElements()){
name=request.getParameterNames().nextElement();
out.println(request.getParameter(name));
}
while(request.getParameterNames().hasMoreElements()){
name=request.getParameterNames().nextElement();
out.println(request.getParameter(name));
}
|
name=String.valueOf(request.getParameterNames().nextElement());