This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

Run a Java program form a JSP file

Revathi Reddy
Greenhorn

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

Joined: May 17, 2001
Posts: 2823
Moving to the JSP forum.
Anonymous
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
hai
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: http://aspose.com/file-tools
 
subject: Run a Java program form a JSP file
 
Similar Threads
Executing JSP programmatically
unable to compile class for JSP
i have to call c# file/program from java program how to do it ?
JSP
java program that can run a .class file in msdos, is this possible?