Issue
I need your help in this particular issue I want to pass the value of a hidden input type in a .jsp program to a servlet program
what I am doing is basically this
<input type="hidden" name="articleId" id="articleId" value=" <%request.getParameter("articleId");%>"/>
and from the servlet I am getting the value
String articleId = request.getParameter("message");
PrintWriter out = response.getWriter();
out.println(articleId);
It doesn't print any think . the jsp form method is post and the servlet method is doPost
any Ideas why it doesn't pass the parameter?
Solution
You used wrong parameter, should do as following:
String articleId = request.getParameter("articleId");
PrintWriter out = response.getWriter();
out.println(articleId);
Answered By - Pau Kiat Wee