• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Windows CMD parameter  RSS feed

 
Wael Tayara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create a simple webpage that takes the user input and run a specific command, for example if you type google.com, the web app will perform "nslookup google.com" and return the result gui..
Is that achievable and if so can someone direct me where and how to start? Would I need to have servlets? I'm not experiences with Java /JSP/ Servlets, so I'm sorry for any confusion.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs are for creating HTML views and using them for any other purpose would not be appropriate. So, yes, something other than JSP, perhaps servlets, would be appropriate.,
 
Wael Tayara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:JSPs are for creating HTML views and using them for any other purpose would not be appropriate. So, yes, something other than JSP, perhaps servlets, would be appropriate.,


Thank you for the reply. Any idea how to start ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before even thinking about servlets, JSP, or anything else, I'd start by writing a class to do the command execution. I'd test this in a simple command line environment. Then, and only then, would I use that class in a web application environment.
 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wael Tayara

I am a bit confused here. When the user types "nslookup google.com", you want to show the GUI from the server to user screen? Am I getting it right?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!