java.net.URLEncoder.encode( "%" );
先编码一下
然后传递过去

解决方案 »

  1.   

    同意楼上说法,本人也碰到过,有时也会碰到中文问题,jive论坛就存在这些问题
    update.jsp
    <%@page contentType="text/html; charSet=gb2312"%>
    <%@page import="java.net.*"%>
    <%
    String _str=URLEncoder.encode("%");
    String _strcondition="where id like '"+_str+"+id+"+_str+"'";
    %>
    <html>
    <head>
    </head>
    <body>
    <form name=ok method="POST" action="execute.jsp?SQL=<%=_strcondition%>">
    <input type=submit name="update" value="update">
    </form>
    </body>
    </html>在引用java.net.URLDecoder
    URLDecoder.decode(request.getParameter("SQL"));
    就可以了!
      

  2.   

    在引用java.net.URLDecoder
    URLDecoder.decode(request.getParameter("SQL"));
    就可以了!