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.
The beginning of JSP
Apr 3
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
2<body>
3 Hello World! <br>
4 Current time is <%= new java.util.Date() %>
5</body>
6</html>
2<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web
3Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
4<web-app>
5<display-name>Hello2</display-name>
6<description>no description</description>
7<servlet>
8<servlet-name>greeting</servlet-name>
9<display-name>greeting</display-name>
10<description>no description</description>
11<!-- what gets called -->
12<jsp-file>/greeting.jsp</jsp-file>
13</servlet>
14<servlet-mapping>
15<servlet-name>greeting</servlet-name>
16<!-- URL from browser -->
17<url-pattern>/greeting</url-pattern>
18</servlet-mapping>
19</web-app>
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?

Android
Top of Page