I am developing Web Application in local machine using JSP. I want to execute a Java Program that resides on Unix box from my local JSP file. I have all the credentials of the UNIX box. Can you please advise me.
-
Tastes like RMI.Nishant– Nishant2011-02-25 09:48:23 +00:00Commented Feb 25, 2011 at 9:48
-
2Don't try to do that kind of stuff from your JSP! JSP is meant to be a pure view technology: it's used to output HTML for the browser to consume. Your logic (including interaction with other hosts) should be in a Servlet (or Action, if you use a framework such as Struts).Joachim Sauer– Joachim Sauer2011-02-25 10:03:02 +00:00Commented Feb 25, 2011 at 10:03
Add a comment
|
1 Answer
Well there are various ways to execute [instruct remote machine to execute your java program]
Defining your protocol and then Socket server client
4 Comments
Mansi
Can you please provide me any sample program where I can call remote program from local JSP
Jigar Joshi
Have you checked the hyperlink ?
Mansi
yes. sorry did not find my answer. I am not much into java j2ee. I am just trying to do a POC to execute a java program in UNIX from local JSP. Can you please help me or guide me if I missed something in the hyper link provided by you.
Jigar Joshi
Or simply check this stackoverflow.com/questions/1001179/…