aspose file tools*
The moose likes Servlets and the fly likes Any Suggestion about a small project? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Any Suggestion about a small project?" Watch "Any Suggestion about a small project?" New topic
Author

Any Suggestion about a small project?

Srinivasa Dhamodharan
Greenhorn

Joined: Oct 17, 2000
Posts: 19
Hi! Everybody,
I have started working on developing servlets , I know the basics of java programming .Can anybody suggest a small project in which I can work with to give me a good confidence on the subject?. Any website reference with projects will also be
of good help.
Thanks in Advance.
Rajpal Kandhari
Ranch Hand

Joined: Aug 26, 2000
Posts: 126
Hello Sirinivasa,
I have started learning servlets and Jdbc one month back. Apart from studying from book and trying out problem given in books it is a good practice to take up a small project and try you're skills on it. But, when we say a project then it mean a website containing number of modules. One can not work alone on all the stuff, so the best thing is that a module is given to group of say 4 people and they work together on it. By this I want to say that you start implementing you're skills on modules individually and then all the modules club together form a web site. Generally people learning Advance Java work on commonly used modules on e-commerce site.
Presently I am working on one module. Once that is over I have to work on the following module. It is a small one but challenging. Here are the details :
Name: TIME CONVERTER
Object: Convert time from one city (from a given list of city�take famous cities of the world covering all the countires and timeZone) to the next. Plus see what part of the Earth is in Daylight (�.can use applet to picturally show the portion of earth facing sun).
Pick what time it is in one city and find time in another. Give following flexibility of option to the user in entering time (use either AM and PM or 24 hour time.)
I am giving you the html code so that you have a better Idea how to place the things. Now you have to work on the logical part. All the Best�.let me know if you can do this�.
==========================================================================
<html>
<head>
<title>TIME CONVERTOR</title>
</head>
<body bgcolor=#gggggg>
<center>
<font face=verdana size=5 color=#eeeeee><l><b>TIME CONVERTOR</b></l></font>
<br><br>
<font face=verdana size=2 color=#dddddd><b>Convert time from one city to the next.<br><br>Plus see what part of the earth is in daylight.</b></font><br><br>
<font face=verdana size=2 color=#cccccc><b>Pick what time it is in one city<br>and find the time in another.</b><br>(Use either AM and PM or 24 hours time.)</font><br><br>
<form>
<table width=60% cellspacing=1 cellpadding=4 align=middle>
<tr>
<td width=40% bgcolor=#eeeeee align=right><font face=verdana size=2 ><b>When the time in  </b></font></td>
<td width=60% bgcolor=#cccccc><select name=from >
<OPTION>Addis Ababa</OPTION><OPTION>Adelaide</OPTION><OPTION>Algiers</OPTION><OPTION>Amsterdam</OPTION><OPTION>Anchorage</OPTION><OPTION& gt;Athens</OPTION><OPTION>Auckland</OPTION><OPTION>Baghdad</OPTION><OPTION>Bangkok</OPTION><OPTION>Beirut</OPTION><OPTION&g t;Berlin</OPTION><OPTION>Bogota</OPTION><OPTION>Brussels</OPTION><OPTION>Budapest</OPTION><OPTION>Buenos Aires</OPTION><OPTION>Cairo</OPTION><OPTION>Calcutta</OPTION><OPTION>Caracas</OPTION><OPTION>Chicago</OPTION><OPTION>Cop enhagen</OPTION><OPTION>Denver</OPTION><OPTION>Detroit</OPTION><OPTION>Dublin</OPTION><OPTION>Fiji</OPTION><OPTION>Guam& lt;/OPTION><OPTION>Halifax</OPTION><OPTION>Havana</OPTION><OPTION>Helsinki</OPTION><OPTION>Hong Kong</OPTION><OPTION>Honolulu</OPTION><OPTION>Istanbul</OPTION><OPTION>Jakarta</OPTION><OPTION>Jerusalem</OPTION><OPTION> ;Johannesburg</OPTION><OPTION>Kabul</OPTION><OPTION>Karachi</OPTION><OPTION>Kiev</OPTION><OPTION>Kinshasa</OPTION><OPTION&g t;Lima</OPTION><OPTION>London</OPTION><OPTION>Los Angeles</OPTION><OPTION>Madrid</OPTION><OPTION>Manila</OPTION><OPTION>Mexico City</OPTION><OPTION>Minsk</OPTION><OPTION>Monrovia</OPTION><OPTION>Montreal</OPTION><OPTION>Moscow</OPTION><OPTION>Nair obi</OPTION><OPTION selected>New York</OPTION><OPTION>Oslo</OPTION><OPTION>Paris</OPTION><OPTION>Perth</OPTION><OPTION>Prague</OPTION><OPTION>Reykjavik&l t;/OPTION><OPTION>Riyadh</OPTION><OPTION>Rome</OPTION><OPTION>Santiago</OPTION><OPTION>Sao Paulo</OPTION><OPTION>Seoul</OPTION><OPTION>Shanghai</OPTION><OPTION>Singapore</OPTION><OPTION>Stockholm</OPTION><OPTION> ;Sydney</OPTION><OPTION>Tahiti</OPTION><OPTION>Taipei</OPTION><OPTION>Tehran</OPTION><OPTION>Tokyo</OPTION><OPTION>Tripo li</OPTION><OPTION>Tunis</OPTION><OPTION>Vancouver</OPTION><OPTION>Vladivostok</OPTION><OPTION>Warsaw</OPTION><OPTION>Zu rich</OPTION></SELECT>
</td>
</tr>
<tr>
<td width=40% bgcolor=#eeeeee align=right><font face=verdana size=2><b>is  </b></font></td>
<td width=60% bgcolor=#cccccc><input type=text name=Amount size=12></td>
</tr>
<tr>
<td width=40% bgcolor=#eeeeee align=right><font face=verdana size=2><b>the time in  </b></font></td>
<td width=60% bgcolor=#cccccc><select name=to>
<OPTION>Addis Ababa</OPTION><OPTION>Adelaide</OPTION><OPTION>Algiers</OPTION><OPTION>Amsterdam</OPTION><OPTION>Anchorage</OPTION><OPTION& gt;Athens</OPTION><OPTION>Auckland</OPTION><OPTION>Baghdad</OPTION><OPTION>Bangkok</OPTION><OPTION>Beirut</OPTION><OPTION&g t;Berlin</OPTION><OPTION>Bogota</OPTION><OPTION>Brussels</OPTION><OPTION>Budapest</OPTION><OPTION>Buenos Aires</OPTION><OPTION>Cairo</OPTION><OPTION>Calcutta</OPTION><OPTION>Caracas</OPTION><OPTION>Chicago</OPTION><OPTION>Cop enhagen</OPTION><OPTION>Denver</OPTION><OPTION>Detroit</OPTION><OPTION>Dublin</OPTION><OPTION>Fiji</OPTION><OPTION>Guam& lt;/OPTION><OPTION>Halifax</OPTION><OPTION>Havana</OPTION><OPTION>Helsinki</OPTION><OPTION>Hong Kong</OPTION><OPTION>Honolulu</OPTION><OPTION>Istanbul</OPTION><OPTION>Jakarta</OPTION><OPTION>Jerusalem</OPTION><OPTION> ;Johannesburg</OPTION><OPTION>Kabul</OPTION><OPTION>Karachi</OPTION><OPTION>Kiev</OPTION><OPTION>Kinshasa</OPTION><OPTION&g t;Lima</OPTION><OPTION>London</OPTION><OPTION>Los Angeles</OPTION><OPTION>Madrid</OPTION><OPTION>Manila</OPTION><OPTION>Mexico City</OPTION><OPTION>Minsk</OPTION><OPTION>Monrovia</OPTION><OPTION>Montreal</OPTION><OPTION>Moscow</OPTION><OPTION>Nair obi</OPTION><OPTION selected>New York</OPTION><OPTION>Oslo</OPTION><OPTION>Paris</OPTION><OPTION>Perth</OPTION><OPTION>Prague</OPTION><OPTION>Reykjavik&l t;/OPTION><OPTION>Riyadh</OPTION><OPTION>Rome</OPTION><OPTION>Santiago</OPTION><OPTION>Sao Paulo</OPTION><OPTION>Seoul</OPTION><OPTION>Shanghai</OPTION><OPTION>Singapore</OPTION><OPTION>Stockholm</OPTION><OPTION> ;Sydney</OPTION><OPTION>Tahiti</OPTION><OPTION>Taipei</OPTION><OPTION>Tehran</OPTION><OPTION>Tokyo</OPTION><OPTION>Tripo li</OPTION><OPTION>Tunis</OPTION><OPTION>Vancouver</OPTION><OPTION>Vladivostok</OPTION><OPTION>Warsaw</OPTION><OPTION>Zu rich</OPTION></SELECT>
</td>
</tr>
<tr>
<td width=40% align=right bgcolor=#eeeeee><font face=verdana size=2><b>is  </b</font</td>
<td width=60% bgcolor=#cccccc><input type=text name=Result size=12></td>
</tr>

</table>
<br>
<table>
<tr width=60% align=center>
<td align=center bgcolor=#eeeeee width=100%> <input type=button value=Calculate></td>
</tr>
</table>
</form>
</body>
</html>
===========================================================================
First try out the code for 5 cities in different time zone. If you're code work fine for them then it will work fine for any number of cities in the world. In case you want detail list of all the available cities then run following servlet code�can run in normal java also.
import java.util.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class TimeZoneDemo extends HttpServlet{
public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
res.setContentType("text/html");
PrintWriter pw = res.getWriter();
pw.println("<html> \n <body>\n<br>");

TimeZone tz;
String [] id = TimeZone.getAvailableIDs();
for (int i=0; i < id.length ; i++ ){
pw.println("ID are " + i +" " + id[i] +"<br>");

}

tz = TimeZone.getDefault();
pw.println("<i> "+tz +"</i> \n");
pw.println("</body>\n </html>");
}
}
=========================================================================
Can you do it? Is it challenging enough for you? Waiting for you're reply and remember we all are always learning.
Regards,
Raj.

Regards,<P>Raj.<BR>-------------------------<BR>Afforts should be Appriciated.<BR>-------------------------
Srinivasa Dhamodharan
Greenhorn

Joined: Oct 17, 2000
Posts: 19
Thanks! Raj,
Seems to be very interesting and challenging , Let me
try it and let you know.
Once again thanks.
Srinivas
Rajpal Kandhari
Ranch Hand

Joined: Aug 26, 2000
Posts: 126
Hello,
Nice to hear that you took the challenge. Well write me directly on my e-mail account because i will not be able to keep track of you're thread. write on rajpal_java@yahoo.com.
regards,
raj.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Any Suggestion about a small project?