I am getting null value when I use request.getParameter("fieldname");.
I checked for the value in Javascript on button and it reaching there.
below is my code
public
String pageHTML()
{
strBuffer.append("<form method=\"POST\" enctype=\"multipart/form-data\" action=\"");
strBuffer.append(getFormAction(request));
strBuffer.append("\" name =\"solution\" id = \"solution\">");
strBuffer.append("<span><input id=\"txtUserId\" name=\"UserId\" size=\"5\" maxlength=\"4\" tabindex=\"6\" ></input></span>\n");
strBuffer.append("<span><input id=\"txtUserId\" type=\"text\" name=\"UserId\" size=\"5\" maxlength=\"4\" tabindex=\"6\" ></input></span>\n");
strBuffer.append("<input type=\"button\" name=\"btnSendFeedbacks\" value=\"Send Feedback\" inclick=\"fn_SendFeedback();\" >");
strBuffer.append("</form>");
return strBuffer.toString();
This page is calling result.jsp
<html>
<%
String strSS = request.getParameter("UserId");
out.println("the request parameter is : " + strSS);
%>
<body>
<br>
<%=strSS%>
</body>
</htm >>>
Any help is appreciated.