LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to run system commands from jsp page (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-system-commands-from-jsp-page-709371/)

robin singh 03-05-2009 08:34 AM

how to run system commands from jsp page
 
i have a jsp page in which there are two text boxes.In first text box user nters remote machines ip address and in second text box he provides password and there is button named connect.after clicking on "connect" user should remotely login into pc whose ip address and password was provided.
how can i implement this

TB0ne 03-05-2009 10:45 AM

Quote:

Originally Posted by robin singh (Post 3465750)
i have a jsp page in which there are two text boxes.In first text box user nters remote machines ip address and in second text box he provides password and there is button named connect.after clicking on "connect" user should remotely login into pc whose ip address and password was provided.

Ok...what problems are you having with this page? Or are you asking us to write it for you?

Post what you've got so far, with what error(s) you're getting, and we can try to help.

robin singh 03-05-2009 11:49 PM

i want the code.i have just started yesterday and i need it urgently.

TB0ne 03-06-2009 10:46 AM

Quote:

Originally Posted by robin singh (Post 3466525)
i want the code.i have just started yesterday and i need it urgently.

Then you should have started sooner. I doubt anyone here is going to write your code for you, without getting paid. If this is your project, it's up to you to accomplish.

If you want a hand up, we'll be glad to give you help. If you want a hand OUT, good luck.

robin singh 03-06-2009 09:33 PM

i want it for my project so plz provide me the sources(e-books) where i can start from.

TB0ne 03-06-2009 09:43 PM

Quote:

Originally Posted by robin singh (Post 3467490)
i want it for my project so plz provide me the sources(e-books) where i can start from.

If this is a school project, you should already have your textbooks and class material. If this is a work project, try Google.

robin singh 03-07-2009 04:00 AM

i have jsp book as well as for linux but in none of them i could find how to run the linux commands from jsp page and i have searched on google too but i could not find what i am looking for.So sir if you know the name of the books plz let it will be great help from ur side.thanks

r3sistance 03-07-2009 05:56 AM

This sounds like an extremely bad way to do things, too bad even for a school project... at least I would hope. JSP will not handle this easily as your talking about establishing remote connections what by jsp just gives a shiver of unsecured connections. I mean what protocol are you trying to use to connect with as well... ssh, remote desktop protocol, vnc... JSP isn't built to handle any of these and certainly never should be used to handle any of these types of connections. If this is a project you made yourself then you should go back to the drawing board since any project like this is just an instant fail, if your lecturer gave you this to do then you should slap them for doing stupid things...

If this isn't what you meant then you need to clearly state exactly it is what you are doing and why since you won't be able to do this right if you don't really know what you are trying to do!

TB0ne 03-07-2009 10:28 AM

Quote:

Originally Posted by robin singh (Post 3467624)
i have jsp book as well as for linux but in none of them i could find how to run the linux commands from jsp page and i have searched on google too but i could not find what i am looking for.So sir if you know the name of the books plz let it will be great help from ur side.thanks

You need to figure out how to run an external program. That's in your books, and is easily available on the web. HINT: JSP can't do it alone, but Java can help.

And again...POST WHAT YOU'VE WRITTEN.


All times are GMT -5. The time now is 03:03 AM.