Hi,
I sympathise - I've not been working with servlets long, and the first
steps can be a frustrating hurdle.
I'm not 100% sure I understand your problem, but the procedure (when
developing using servletrunner) is more or less as follows :
(this is for JSDK 2.0 - 2.1 is now available, and some of this has
changed)
Write your code : Filename.java
Compile it :
javac Filename.java
(note that the classpath should include ....\jsdk\lib\jsdk.jar)
if all is well, this will produce Filename.class, which you should copy
to the directory used by your servlet engine, which with the
servletrunner from JSDK 2.0 defaults to :
...\jsdk\examples
Run servletrunner.exe - this will give a command-prompt type screen
with status information, leave this running!
Test your servlet - either point your browser at your class the URL used
by the the servlet engine (or use a form in HTML or whatever), again
with JSDK 2.0 :
http://localhost:8080/servlet/Filename
If it doesn't do what you expected, have a look in the servletrunner
screen. It's very useful for debugging to include lines in your code
like :
System.out.println("Well it got this far...");
as these get shown in the servletrunner screen.
Don't forget to stop (Ctrl-C) and restart servletrunner when you change
Filename.class
Hope this helps,
Cheers,
Danny.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html