So heres my index page.
<form action="worker.jsp">
<input type="text" name="count"></input>
</form>
and heres my worker.jsp.
<jsp:useBean id="ff" class="my.dbController" scope="page"/>
String count = (request.getParameter("count"));
ff.queryTest(count)
and heres the java dbController file.
String query = "Select * from table limit ?"
PreparedStatement ps = conn.prepareStatement(query);
ps.setString(1, x);
ps.executeUpdate();
Would this be possible? I've been trying it this way but it keeps returning 0 data.
Edit: I was able to fix it, i had one error in my .jsp files. Thanks anyway