This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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">
I agree. Here's the link:
subject: Run a Java program form a JSP file