I use Window XP, Tomcat 4.0.4 and j2sdk1.4.1. All the samples JSPs and servlet files that I downloaded works fine. I try to use Notepad to create a simplest JSP file(Test.jsp) and store it at the same subdirectory where those working smples JSPs are stored. But the Tomcat gave me an error message "The requested resource(Test.jsp) is not available." I do notice that those working samples JSPs have different file type icon from my. Theirs are compiled java .class file type and my is notepad file type. Isn't that the JSP page will be translated into a servlet and compiled when I first request it? Is there something else that I need to do before I can request it from Tomcat? Thanks for any reply.
When you save your xyz.jsp file using the Notepad, please put doulbe quote (") around it; for example, "xyz.jsp". Otherwise, your xxx.jsp file will be saved as a text file and the tomcat will not be able to find your file.
Ummm, JSP files are text files. I think what JiaPei is trying to convey is to make sure that Notepad (not exactly the best tool you could be using for the job) is not putting a spurious .txt file extension on the end of your file name. bear [ March 17, 2003: Message edited by: Bear Bibeault ]
Joined: Mar 23, 2002
Thank you JiaPei Jen. I put "" around the file name and now it works.