Hi All,
I have a
JSP where in I populate a tree structure by retrieving values from the database. I also have a search option(text-box and a submit button) wherein I type a search criteria. When ever I search for something I want to make the search criteria as the root and populate the tree structure accordingly. For this I have to retrieve the primary key of the search criteria. How do I go about doing this? To retrieve the search criteria i have used request.getParameter("searchCriteria"). I am using Javascript to populate the tree structure and I am using JSONObject to get the id, parentid and the title fields from the database.The tree structure is populated using the title field. id field is the primary key in my database.
Thank you.