IN JAVA CODE IN JSP as below i m getting null value for field"noOfRecords".
if (request.getMethod().equalsIgnoreCase("POST")) {
try
{
noOfRecords=Integer.parseInt(request.getParameter("noOfRecords").trim());
}
catch(NumberFormatException e)
{
throw new Exception("No of records Field should be nume...
In my request Queryparameter="आकुर्डी". When I'm trying following
String strstring = request.getParameter("Queryparameter");
it gives "à¤à¤à¥à¤°à¥à¤¡à¥" while I want the string "आकुर्डी".
How to get it? What is the problem here?
...
Hi,
I noticed that my app is very slow sometimes, so I've done some tests.
It's a very simple web app. One servlet gets some parameters than stores them.
Everything's fine except one thing. It takes too long to get a parameter for the first time. It doesn't matter which parameter I try to get, but for the first time it is very slow. The...
The problem is that my servlet doesn't fetch the parameter "protocolversion" (see below) for my Python script for some odd reason. The getParameter call always returns null! Is perhaps the HTTP post request invalid? I use Tomcat 6 with default configuration. A strange thing I've noticed when logging with Wireshark is that Tomcat responds...
I can get a parameter('id' for example) by $request->getParameter('id');
but if I use a form to POST the id, how could I get its value? $request->getParameter('id'); doesn't work.
...