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.

vincentzhaovincentzhao 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

Answers

  • daniel_rdaniel_r Posts: 460Questions: 4Answers: 67
    Answer ✓

    It should work, inside your doGet or doPost you should use the req.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 the getParameterMap() , you can also inspect my yadcf showcase sources (java server side used) for more help (here is the relevant page from the showcase)

  • vincentzhaovincentzhao Posts: 2Questions: 1Answers: 0

    Thank you very much! I need to use request.getParameter("search[value]") to get global search input.

This discussion has been closed.