Chris,

I have spent the last week trying to use a Java class in my JSP page, too.
Standard Java library classes work fine, but the one I wrote (which works
from the command line) gives me a 'method not found' error no matter what I
do. It found the class but not the method within it.

I finally changed my class into a Bean and accessed it with the Bean JSP
commands and it worked fine.

However, if there is a way to use Java classes instead of Beans, I'd be
interested, too.

Stephanie

-----Original Message-----
From: Chris Probert [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 28, 2000 5:37 AM
To: [EMAIL PROTECTED]
Subject: capturing standard out


JSP list,

Could anyone help me? I am attempting to run a java class (which
has a main method) from within a jsp page, and display the
output, which is being sent to System.out.println. Is this
possible, I feel that it should be, but my attempts have all
fallen flat.
If this is not simple to do with jsp, could anyone advise a
better way to run a java class and capture the output in a
browser? I have tried perl but can't seem to get hold of the
output.

TIA


Chris Probert
[EMAIL PROTECTED]

Electronic Trade Services
St. Alkmunds House
103 Belper Road
Derby
DE1 3ER

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to