Reputation: 255
I found this link...
Java:how to pass value from class/bean to servlet
I tried it and it works (thanks to BalusC) This was very helpful and answers all my questions that I've been researching for several days now.
However I'm trying to figure our how to pass the parameter from JSP to the sql query in DAO
if for example I want to create a jsp form to filter the result that the servlet will be producing...
Thanks in advance
Upvotes: 0
Views: 1698
Reputation: 7302
It depends on how do you want to invoke DAO methods, (please clarify it):
request.getParameter(paramName)
to get what user have filled in the inputs, then call the DAO methods, and set the result of DAO in request attributes.Upvotes: 1