Today, I've no much tasks to do and have most free time. That's why surfing through websites and seeking open-source dictionary web project written by PHP or JSP. Because I've an idea to build free dictionary site for none-profit. And, I don't want to create such dictionary site throughly by myself. That's why I want open-source and want to add some useful fuctions in it. At that time, I've found http://www.gotocode.com dedicated to web beginners, who want to learn ASP, JSP, PHP and so on. It has some simple applications and allow to download. If you have free spare time, go and visit it.
There are so many extension-less web programming in Web developement environment such as Ruby, PHP, JSP and so on. Among them, I want to tell about the simple coding of JSP. Honestly, I'm just beginner to learn JSP, especially J2EE. Because, I just want to know some applications based on Sun Java. Ok, let's go...
Here is simple JSP file and named as greeting.jsp
Hello World! <br>
Current time is <%= new java.util.Date() %>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
<!-- what gets called -->
<!-- URL from browser -->
Then, open tomcat manager and create folder name as hello. Create build folder, then copy above greeting.jsp file in this folder, then create WEB-INF folder in build folder. Finally, web.xml file into WEB-INF
Open your Internet Explorer or Firefox, and can run as http://localhost:8080/hello/greeting. How? It's quite simple, right?