call class function in jsp
Posted on 2003-12-05
Hi pretty new to jsp/java but hopefully someone will be so kind as to help.
I currently have a jsp file that imports in various class files from within a jar file ie
<%@ page import="java.util.*" %>
<%@ page import="com.webapp.loc.*" %>
Unfortunately I am unable to edit the class files due to licensing but would like to call one of the functions within a class file independtly, how would I go about doing this ?
The problem I have is that within the class file the function I want to run is within an if statement which again I have no control over so ideally would like to call the function independtly from the jsp page, the lis I would like to use is :
The above ius stored in a class file called : pageR.class this also import other class file to run the menu.midLevel etc
Thanks, off now to read up on jsp/java.