I have a web app running in jetty and in the JSP I e.g insert some values to my DB the following way:
 <% 
if(request.getParameter("id") != null && request.getParameter("value") != null){
int poiId = Integer.parseInt(request.getParameter("id"));
int value = Integer.parseInt(request.getParameter("value")); 
FirstExample.insertReading(value, id);   // here I 
}
%>
Is there a reason why I should not do method calling like this? I could have performed this useing JTSL i think its called?
 
     
    