Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The function of sRequest in JSP  RSS feed

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new in jsp. I want to ask any diff btw Request and sRequest in receiving the form-passing parameter. Since some of the chinese character in unicode 8 cannot be displayed in using sRequest but can in using request to get the form-pass value.
My code is as follow:
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="sRequest" %>
sRequest sReq = new sRequest(request);
String s_PageNum1 = sReq.getParameter("vDTT_PageNum");
String s_PageNum2 = request.getParameter("vDTT_PageNum");
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!