Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of The Software Craftsman this week in the Agile forum!
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">
I agree. Here's the link:
subject: Run a Java program form a JSP file