I have been looking through the JSP files for all the WebMathematica examples; trying to find an example where Mathematica functions are defined outside of the JSP file.
I want to:
1) define an outside function (for example 'getMyVars') in a server based .m file, etc.
2) Load the server based file into the JSP
3) Be able to call functions from the file within the JSP page.
It would really help my effort to keep view code (JSP) from my model code (.m or .nb files).
Is there an example, that does this, that I missed?