Hi, I compiled a class myClass and saved it into directory: C\jrun\servlet How can I declare an object of the type myClass in my jsp file. my jsp file is stored in C:\JRun\jsm-default\services\jws\htdocs\myJsp.jsp Every time,I try to see this myJsp.jsp in browser, I get an error: unknown type myNode How to fix this? How to config class path for JSP files?
Hi, You question is a little ambiguous. If you want to create an instance of your class and use it's method, then other than an import, here is another approach. Suppose the name of your file is OptionValues.java Then in jsp page if you want to use this class and it's methods, then you should code, <%OptionValues op = new OptionValues(); op.callMethod(); %> Between <% and %> you can use any Java code. Hope it helps. Raj