Entry
TSE: Language: Computer: Compile: JSP: How to run JSP from TSE v2.5?
Oct 4th, 2003 14:24
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2002 - 11:53 pm -------------------
TSE: Language: Computer: Compile: JSP: How to run JSP from TSE v2.5?
---
Steps: Overview:
1. make sure you have JSP installed on your computer
2. create a batchfile 'comjsp.bat', containing this text
(adapt it to your system) and store this batchfile in your TSE
directory
(e.g. save to c:\mytsedirectory\comjsp.bat)
@IF "%CATALINA_HOME%" == "" goto nocatalinahome
@IF "%JAVA_HOME%" == "" goto nojavahome
@COPY %3 %CATALINA_HOME%\webapps\root\%1.%2
c:\progra~1\intern~1\iexplore.exe http://localhost:8080/%1.%2
@EXIT
:nocatalinahome
@ECHO `you first have to set environment variable CATALINA_HOME to
<your tomcat directory> (e.g. SET CATALINA_HOME=c:\program files\apache
tomcat 4.0 -- you should possibly use the 8.3 notation)`
@GOTO end
:nojavahome
@ECHO `you first have to set environment variable JAVA_HOME to <your
JDK directory> (e.g. SET CATALINA_HOME=c:\jdk1.3.1_02 -- you should
possibly use the 8.3 notation)`
@GOTO end
:end
3. Adapt the compiler information
(in TSE, after loading any file, press <SHIFT><F9>
then 'D' for debug compiler setup
then <ALT><C> to copy one of the compiler settings present
then change the fields:
'Extension' to: .jsp
'Description' to: JSP
'Command' to: c:\mytsedirectory\comjsp.bat &name& &ext& &fn& >
&output&
make sure this information is permanently stored in the compiler
information (via <ENTER>, then <ESCAPE>)
4. make sure tomcat is running, e.g. by typing the command,
e.g. in an MSDOS box:
c:\program files\apache tomcat 4.0\bin\startup.bat
5. If you now load a .jsp file, fill in some program code for jsp,
for example type or copy this text in a file 'mytest.jsp'
<HTML>
<% out.print( "Hello World from JSP" ); %>
</HTML>
save that text in your TSE directory,
then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run
that
batch file, which saves your file in the root directory of tomcat,
then starts your browser with the appropriate URL containing your
filename.
You will then see the HTML output 'Hello World from JSP' in your
browser.
---
---
Internet: see also:
How to install Apache-Tomcat/Jakarta, in order to be able to run JSP?
http://www.faqts.com/knowledge_base/view.phtml/aid/14745/fid/426)
Computer: Wordprocessor: TSE: Language: Computer: Compile: Run:
Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895
----------------------------------------------------------------------