File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Run a Java program form a JSP file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Run a Java program form a JSP file" Watch "Run a Java program form a JSP file" New topic

Run a Java program form a JSP file

Revathi Reddy

Joined: Oct 20, 2003
Posts: 3
I need to run a Java Program from a JSP file. How to call the Java class and its methods?
Thanks in Advance,
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Moving to the JSP forum.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
You want to execute the class on client or server side ?
On server side simply call the class where your main method is.
jyothsna kumari
Ranch Hand

Joined: Jul 21, 2003
Posts: 108
to run the java class, submit the the jsp page and mention the class which u want to run in form tag.
<form name=frm1 method="post" action="class">
Don't get me started about those stupid light bulbs.
subject: Run a Java program form a JSP file
Similar Threads
i have to call c# file/program from java program how to do it ?
java program that can run a .class file in msdos, is this possible?
Executing JSP programmatically
unable to compile class for JSP