I am new to JSP and have Tomcat 4.1.27 loaded on my workstation with j2sdk1.4.1.
It works and I am able to create my first "Hello World" page but now trying to create a simple class and bean and compile it. I am not sure about where my local web server classpath is located and what I need to do?
Here is my local url:
and the path looks like this on my Windows 2000 workstation:
C:\jakarta-tomcat-4.1.27\webapps\ROOT\first.jsp
Where do I put my "HelloWorld" class? Can I put it in my ROOT folder?
Afterwhich how do I compile it to use it as a bean?
I tried putting a HelloWorld.java class in my ROOT folder and compiling it in DOS in the ROOT folder such as: javac HelloWorld.java
and it says: 'javac' is not recognized as internal or external command.
Please advise because I am trying to write my first bean and make it work with a simple "HelloWorld" output.
It works and I am able to create my first "Hello World" page but now trying to create a simple class and bean and compile it. I am not sure about where my local web server classpath is located and what I need to do?
Here is my local url:
and the path looks like this on my Windows 2000 workstation:
C:\jakarta-tomcat-4.1.27\webapps\ROOT\first.jsp
Where do I put my "HelloWorld" class? Can I put it in my ROOT folder?
Afterwhich how do I compile it to use it as a bean?
I tried putting a HelloWorld.java class in my ROOT folder and compiling it in DOS in the ROOT folder such as: javac HelloWorld.java
and it says: 'javac' is not recognized as internal or external command.
Please advise because I am trying to write my first bean and make it work with a simple "HelloWorld" output.