I don't know how to......,please help me!

xinxing 2001-09-26 07:05:44
part of my myquery.jsp file:
<% out.println("查询字符串: " + request.getQueryString()); %>
my jsp container is Resin2.0.
when I input "http://localhost:port/myquery.jsp?I am a student"in IE's address bank.In my view,it should output:
查询字符串: I am a student
in fact it is:"查询字符串:I%20am%20a%20student".Please tell me how can I get what I wan to get---"查询字符串: I am a student".
Thanks!
...全文
46 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
greed 2001-09-28
hao
回复
czb 2001-09-27
用request.getParameter可以解决,示例:
输入myquery.jsp?desc=I am a student
jsp文件:
out.println("查询字符串: " + request.getParameter("desc"));
回复
xinxing 2001-09-26
Where is elite?
回复
xinxing 2001-09-26
sos!!!!!
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2001-09-26 07:05
社区公告
暂无公告