View Single Post
03-25-2012, 05:41 AM
badams77 is offline badams77
Status: I'm new around here
Join date: Mar 2012
Location: London
Expertise: Java Programmer
Software: Linux
Posts: 1
iTrader: 0 / 0%

badams77 is on a distinguished road


You can place any expression within the <%= %> tags and it will be evaluated and displayed as either a String or a numeric type. If you want to call at function that is easy.


And you may define the function else where as

<%! String func(){
} %>

Note the explaination mark to indicate that the code is to be placed into the servlet object, and not into straight into the doRequest method.

Reply With Quote