File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Invoking JSP from comand prompt" Watch "Invoking JSP from comand prompt" New topic

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

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:
[ 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....
I agree. Here's the link:
subject: Invoking JSP from comand prompt
It's not a secret anymore!