View Single Post
03-25-2012, 05:41 AM
#5
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

  Old

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.

<%=func()%>

And you may define the function else where as

<%! String func(){
doSomething();
} %>

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