在servlet中:
whereString= "where name like '%20%'";
setAttribute("conditionstr",whereString);
在JSP中:
<a href="/jproject/query?whereString=<%=request.getAttribute"conditionstr")%>>详细</a>我想问一下,这时详细的链接成了 /jproject/query?whereString=where name like ' %' 好象%20在url重写时代表一个空格请问怎么能解决这个问题。
whereString= "where name like '%20%'";
setAttribute("conditionstr",whereString);
在JSP中:
<a href="/jproject/query?whereString=<%=request.getAttribute"conditionstr")%>>详细</a>我想问一下,这时详细的链接成了 /jproject/query?whereString=where name like ' %' 好象%20在url重写时代表一个空格请问怎么能解决这个问题。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货