Originally posted by Yogender Butola:
Can we create methods in a JSP page? If yes then how?
In a JSP, you can include normal
Java code by enclosing it in the
<% %> tags. For example, if you wish to have a method insode your JSP page, then you can have it the following way:
Once you have a method, you can call it from anywhere (that is, after the method implementation ofcourse) with the following syntax: