My html form contains an INPUT "text" element that accepts Date, i want to catch that date and want to query it using JSP?In short, how can i use that HTML form element with Prepared Statements in JSP?

Showing Answers 1 - 1 of 1 Answers

in jsp...

String s=request.getParameter(textfield)

  write the query like

String q=.....  where date=?    //s bz we r using prepared St

executeQuery(q);

-----------------

here we have get the date from text field and assign to local varible and execute........ using prepared statement

 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions