Reputation: 173
I am making a servlet program. It is working fine, but now I am trying to make a method other than doGet or doPost that get called from JSP. Is it possible?
Upvotes: 0
Views: 1094
Reputation: 1108722
No, it is not. If you want to have a single servlet which controls all requests and can invoke business actions depending on the request, then have a look at the front controller pattern.
If you actually want to invoke utility methods (public static
methods in a public final
class) during display, then you can make use of EL functions (something like as JSTL functions).
Upvotes: 1