Can you call a servlet with a link (i.e. link text
And possibly pass parameters to the request object by adding them to the querystring.
If not, I have seen this kind of thing:
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(/MyServlet);
dispatcher.include(request,response);
But how would I trigger this. For example if it was javascript code I could put it within a jquery click function, or if this was a servlet I would put it into a method.
But how do I call this code from within a jsp. As far as I know you can't call Java code with Javascript events.