I think my question title explains it all. It’s for an assignment for school I have to do, I have to program some sort of bulletinboard. I figured out the useBean part more or less, and that it is used to call set properties. Only what if I want to call another function on the servlet which isn’t a setter? How does that work?
Share
Only functions you can call from JSP to a Servlet are
doGet()ordoPost()as a result of a http request.You can submit the the request from the JSP as follows:
Or you can use a html
<form>:I would favor the second option if possible and try to avoid java code in your JSPs.