Hi Nitin
Where to put your applets under JWS?
In many ways the best option is to make use of the JWS file
alias option - you can find the details in Core Java Web Server (Taylor &
Kimmet; Prentice Hall PTR).
Basically, you assign a directory to all your applets.
In the web page write:
<applet code="MyApplet.class"
codebase="/mydir" width=100% height=50%>
In the JWS admin applet navigate to "Manage | Setup | File
Aliases". Click on "Add". In the "Alias Pathname" enter "/mydir" (without
the quotes); in "Full Pathname" enter "c:/jws-applets" (or whatever - without
the quotes). Click "Save".
All that remains is to fire up the browser and check that it
does, in fact, work.
In many ways this is preferable to many of the other
suggestions that have been put forward. The applets are
separated from the "public_html" content. The codebase parameter is
kept short, and therefore less prone to typos. There is no absolute
hard-coding of the codebase. You are free to change your applet directory
- all you need change is the file alias in the JWS admin applet, and nothing
more. Also, it helps to hide directory details from the end user. If
you want to group applets into various directories, you can easily do so by
assigning a file alias.
Hope this helps
Regards Alan
----- Original Message -----From: NitinSSent: Friday, June 04, 1999 5:19 PMSubject: Java Web ServerHi,
I would like to know where to put the applets in JWS, I can put Servlets under Servlet directory. But where should I put applets and do I have to give classpath??
Thanks in advance.
regards
Nitin
