Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking JSP from comand prompt

 
samir ware
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Can anyone please tell me is there any way..I can invoke my JSP page from command prompt and through command prompt only I can input the values in the text boxes which are there in the JSP

Thanks in advance
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs respond to HTTP requests.
To invoke one from the command line, you would need to find or write a program that can generate an HTTP request. If you're sitting at a Unix box, there are several out there (wget, lynx, etc..). I don't know if there are any for Windows.

Writing one shouldn't be difficult.
There is a complete set of libraries for doing so in Java.
They can be found here:
http://jakarta.apache.org/commons/httpclient.
[ October 16, 2006: Message edited by: Ben Souther ]
 
samir ware
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot Ben for your precious help....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic