If you're using a web framework like spring mvn or struts, you have a controller class that is executed before the actual jsp. This can have a method
ResultSet getResult()
This method will be available as ${result} within your jsp.
If you're not using any of these frameworks you can still use jsp usebean and bind a javaclass to a variable (check usebean documentation). If you usebean to a variable of myBean you access it with ${myBean.result}
Lastly you can also bind the result to the request parameters "somewhere else". In this case you address it as ${param.result}