[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

How can I declare a function in a JSP page

Hi
   Could someone advice me whether I could declare a function in a JSP page and call it. If so how ?

Any help is appreciated.

Thanx

Dylan

0
b3cf
Asked:
b3cf
1 Solution
 
rrzCommented:
You could use a JSP declaration.
<%! returntype  yourfunction(){yourcode} %>
and you can call it with a JSP expression.
<%= yourfunction() %>
0
 
b3cfAuthor Commented:
Thanx alot.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now