A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
How to execute a JSP file from command line?
Joined: Oct 10, 2000
Nov 29, 2000 06:30:00
Is there a way to execute a
from the comandline or from my own application?
Joined: Oct 20, 2000
Nov 29, 2000 08:19:00
You cannot execute JSP through command line. JSP needs a
engine to conver it in to servlet code and run. JSP is meant for web applications, not for stand alone applications
Joined: Jan 07, 1999
Nov 29, 2000 08:29:00
If your JSP is already running in a servlet container, you can always contact it using Java's built-in networking and request some output. Or are you looking for a way to run a JSP without a servlet container?
Read about me at frankcarver.me
Raspberry Alpha Omega
Frank's Punchbarrel Blog
Joined: Sep 22, 2003
Sep 22, 2003 19:13:00
I want to know how to execute a JSP page within a container without issuing a call from a browser or another Java program. Basically i need to execute some tags from a taglibrary(OScache).
Joined: Dec 12, 2001
Sep 22, 2003 19:30:00
You could try poking at some of the
frameworks - Cactus, etc. That's a horrible hack to get to the tags, but could be theoretically done.
Joined: Aug 13, 2001
Sep 23, 2003 05:13:00
what option you do have is to compile ur jsp page without executing it.
But for compiling too u have to use browser.
u can use jsp_precompile parameter for that.
I agree. Here's the link:
subject: How to execute a JSP file from command line?
execute Create table statement from JSP
executing RCS commands for checkin and checkout from jsp
Call a struts action from JSP page
how to execute a jsp page
ArrayList and Ajax
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014