This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Invoking JSP from comand prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Invoking JSP from comand prompt" Watch "Invoking JSP from comand prompt" New topic
Author

Invoking JSP from comand prompt

samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
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

Joined: Dec 11, 2004
Posts: 13410

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 ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
thanks a lot Ben for your precious help....
 
Don't get me started about those stupid light bulbs.
 
subject: Invoking JSP from comand prompt