-
JSWDK
Downloading JavaServer Web Development Kit (JSWDK) from Sun was no problem. Pointing to localhost:8080 brought up the default JSWDK home page. All of the servlet and JSP examples worked flawlessly. Now, I am trying to implement a duplicate of the "examples" directory structure, as described in the JSWDK FAQ, so I can build and test some of my own servlets. I continually receive '404' errors, however. I am at that "cut your losses" point, where I realize that I need a tip to resolve this--I have followed the instructions and tried seemingly all possible combinations in modifying the webserver.xml file and the servlets.properties and mappings.properties files. Has anyone successfully added his or her own test servlets into the JSWDK? Thanks, Gary Richards
-
JSWDK
The JSWDK is devoid of documentation. Nevertheless I have been able to have plenty of fun with JSWDK. What I do is put my servlets under the jswdk-1.0/Web-inf/servlets. Remember to shut down and restart the server almost anytime you do anything because this is just a play tool. Also, I have had problems using ACTION="POST" so I change my FORM to ACTION="GET" and I have my doGet call my doPost. When I do JSP, I put them in directly under jswdk-1.0/examples/JSP. If those JSPs use JavaBeans I put those in jswdk-1.0/examples/Web-inf/jsp/beans. The servlets used in those JSP files then seem to have to be in jswdk-1.0/examples/Web-inf/servlets, why? I don't know. Sometimes I put my servlets in both jswdk-1.0/examples/Web-inf/servlets and jswdk-1.0/Web-inf/servlets cause I don't know where the heck it's supposed to go. Thankfully using Servlets on the AS/400 is easier and Websphere is far better documented. Send me your source if you can't get it working, I'll get it going and then let you know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules