Solved

How can I declare a function in a JSP page

Posted on 2001-07-19
2
513 Views
Last Modified: 2012-06-21
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
Comment
Question by:b3cf
2 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 50 total points
Comment Utility
You could use a JSP declaration.
<%! returntype  yourfunction(){yourcode} %>
and you can call it with a JSP expression.
<%= yourfunction() %>
0
 

Author Comment

by:b3cf
Comment Utility
Thanx alot.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now