How to call a constructor or a .class file using jsp?
843836Feb 10 2004 — edited Feb 11 2004Beside asking the servlet to do to calling of constructors or class files for me, how can I call the constructors or class file directly using jsp? This is because I have a jsp page which needs to call a class file name GetInfo. So how can I call the GetInfo class and get it to generate and return the info back to jsp.
I tried the following method but it failed.....
<%
GetInfo Info = new GetInfo();
Info.setElement("DATA");
Info.startXML();
String data = Info.ReturnDATA();
%>