How to get search input in java? I tried request.getParameter("search"), which is useless.
How to get search input in java? I tried request.getParameter("search"), which is useless.
vincentzhao
Posts: 2Questions: 1Answers: 0
How to get search input in java? I tried request.getParameter("search"), which is useless.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It should work, inside your
doGet
ordoPost
you should use thereq.getParameter("search");
You can also inspect your browser (chorme) dev tools network tab and see all the names of the request params (you can do the same in your servlet by looking at thegetParameterMap()
, you can also inspect my yadcf showcase sources (java server side used) for more help (here is the relevant page from the showcase)Thank you very much! I need to use request.getParameter("search[value]") to get global search input.