Hello friends, Is there a way to execute a JSP from the comandline or from my own application?
Regards, Kavita
P SOLAIAPPAN
Ranch Hand
Joined: Oct 20, 2000
Posts: 68
posted
0
Hi, You cannot execute JSP through command line. JSP needs a servlet engine to conver it in to servlet code and run. JSP is meant for web applications, not for stand alone applications solaiappan
Frank Carver
Sheriff
Joined: Jan 07, 1999
Posts: 6913
posted
0
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?
Hi, 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).
Tina Coleman
Ranch Hand
Joined: Dec 12, 2001
Posts: 150
posted
0
You could try poking at some of the unittesting frameworks - Cactus, etc. That's a horrible hack to get to the tags, but could be theoretically done.
deepak kukreja
Ranch Hand
Joined: Aug 13, 2001
Posts: 54
posted
0
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.
Deepak<br />SCJP
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to execute a JSP file from command line?