Solved

How can I declare a function in a JSP page

Posted on 2001-07-19
2
515 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
ID: 6298706
You could use a JSP declaration.
<%! returntype  yourfunction(){yourcode} %>
and you can call it with a JSP expression.
<%= yourfunction() %>
0
 

Author Comment

by:b3cf
ID: 6298798
Thanx alot.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

773 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