Oct 01

You need to build it manually from the ServletRequest.


StringBuilder sb = new StringBuilder("?");
for (Enumeration e = request.getParameterNames(); 
   e.hasMoreElements();)
{
      String param = (String) e.nextElement();
      sb.append(param)
        .append("=")
        .append(request.getParameter(param))
        .append("&");
}
String queryString = sb.toString().
   substring(0, sb.length() - 1); 

written by objects \\ tags: , ,


Leave a Reply

You must be logged in to post a comment.