Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to call a constructor or a .class file using jsp?

843836Feb 10 2004 — edited Feb 11 2004
Beside 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();
%>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2004
Added on Feb 10 2004
6 comments
381 views