Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: Calling EXE from JSP


Message #1 by "Neo Gigs" <gigsvoo@y...> on Thu, 21 Feb 2002 10:43:17 +0800
alternatively, you can open the exe to the internet and access it via CGI.

chanoch

-----Original Message-----
From: NIkhil Subhash Palshikar [mailto:niko77@r...]
Sent: 25 February 2002 07:04
To: Java 2 Enterprise Edition
Subject: [j2ee] Re: Calling EXE from JSP



hi

convert the  C code into DLL if windows SO on UNIX.
then you can access that DLL/SO library using JNI invocation on sever thru
JSP/Servlet.

cheers
nikhil

On Mon, 25 Feb 2002 Neo Gigs wrote :
> Hi there all,
> 
> Thanks for the fast replies from everyone!
> 
> My real scenario is i need to write some JSP page that 
> can talk to a C
> progam resides in the webserver. Any ideas? Should I 
> write JSP front-end
> while talk to a Bean that talk to C program at the 
> server end?
> 
> Thanks
> 
> Neo
> ----- Original Message -----
> From: "charles arehart" <carehart@s...>
> To: "Java 2 Enterprise Edition" <j2ee@p...>
> Sent: Monday, February 25, 2002 11:25 AM
> Subject: [j2ee] Re: Calling EXE from JSP
> 
> 
> > Just FYI, your example of opening notepad doesn't 
> really make sense in the
> > case of a JSP, since JSP's are server-side. Your 
> example may indeed have
> > worked in a client-side java program, and of course 
> showing the method and
> > language for running it may be helpful, so I don't 
> mean to be putting down
> > the effort. It's just that newcomers shouldn't think 
> they can try that
> with
> > JSP.  You CANNOT open a client-side instance of a 
> tool with a GUI (like
> > Notepad) from within a JSP.
> >
> > That leads back to a question for Neo: when you want 
> to run a "exe" from a
> > JSP, do you mean a server-side or client-side "exe"?
> >
> > /charlie
> >
> > -----Original Message-----
> > From: Ines Andrew [mailto:inesrobert@h...]
> > Sent: Saturday, February 23, 2002 12:59 PM
> > To: Java 2 Enterprise Edition
> > Subject: [j2ee] Re: Calling EXE from JSP
> >
> >
> > Hello  I
> >
> > I have not tried calling a exe through jsp
> > but I have done it at aplication level
> > I have just formated my system  so I do not have the
> >
> > code at the moment
> >
> > java.lang.Runtime
> >
> >
> > if you do somthing like this
> >
> > Runtime myenv = getRuntime();
> >
> > and the u can use the method
> >
> > myenv.exec("notepad");
> >
> > or any exe
> > myenv.exec("notepad  my_text.txt");
> >
> > will open file and note pad;
> >
> > if you play with it enough and still can get it to 
> work let me
> > no
> > about jsp I not shore about sercutrey resrtinction
> >
> > Check ya hope this was help full
> > -----Original Message-----
> > From: Neo Gigs <gigsvoo@y...>
> > To: Java 2 Enterprise Edition <j2ee@p...>
> > Date: Wednesday, February 20, 2002 6:58 PM
> > Subject: [j2ee] Calling EXE from JSP
> >
> >
> > >Hi there,
> > >
> > >Recently i was been taught that JSP can call EXE 
> file, is that true? Can
> > >anyone show me how is the codes like by a simple JSP 
> codes?
> > >
> > >Thanks alot!
> > >
> > >Neo
> > >
> > >
> > >
> > >_____________________________________________________-
> ____
> > >
> > >Do You Yahoo!?
> > >
> > >Get your free @yahoo.com address at 
> http://mail.yahoo.com
> > >
> > >
> > >
> > >
> $subst('Email.Unsub').
> >
> >
> $subst('Email.Unsub').
> >
> >
> $subst('Email.Unsub').
> 
> 
> 
> ________________________________________________________-
> _
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at 
> http://mail.yahoo.com
> 
> 
> 
> 
> ---
> Change your mail options at http://p2p.wrox.com/manager.-
> asp or 
> $subst('Email.Unsub').
 



  Return to Index