2008, March 6 - 10:25 — laseelan
This page collects some bad code that may not look so obiously bad for beginners. Beginners often struggle with the language syntax. They also have little knowledge about the standard JDK class library and how to make the best use of it. In fact we collected all examples from everyday junior code. And we modified the original code to give it example character and such that it highlights the problems.
String concatenation
String s = "";
for (Person p : persons) {
s += ", " + p.getName();
}
s = s.substring(2); //remove first comma
2007, May 10 - 00:21 — Sarath
The Greeting Application.
When a request comes to the container, it checks web.xml to decide how it should be dispatched. Here is the web.xml for our “Greeting” Application
2007, April 16 - 08:59 — laseelan
GWT
The GWT takes an unusual approach to Web application development. Rather than employing the normal separation of client-side and server-side codebases, GWT provides a Java API that lets you create component-based GUIs and then compile them for display in the user's Web browser. Using GWT is far closer to developing with Swing or SWT than the usual experience of Web application development, and it tries to abstract away the HTTP protocol and the HTML DOM model. Indeed, the fact that the application ends up being rendered in a Web browser feels almost incidental.
2007, April 16 - 08:57 — laseelan
Java 2 Platform Micro Edition
At the heart of Java 2 Micro Edition (J2ME) are three core concepts: configurations, profiles, and optional packages.
2007, April 12 - 18:55 — laseelan
Enterprise Rich Internet Applications
Agenda
• What is JSF?
• Rich Internet Applications (Web 2.0)
2007, April 11 - 01:18 — Sarath
This tutorial explains struts 2 with the bare minimum. You won't get lost in the unwanted files under the struts example applications.
Pre-requisites for this struts2 tutorial
You should be comfortable working with eclipse and WTP. I have used eclipse 3.2.2 myself. Any 3.1 or latter should work, although not tested. You will also need web Tools plugins from the curresponding Calisto release.
2008, August 27 - 18:06 — mogli.k
action class
2007, November 9 - 13:20 — laseelan
Following is a list of the 2007 Java Developer’s Journal Readers’ Choice Awards winners and finalists:
Best Book
Winner
Thinking in Java 4th Edition by Bruce Eckel, Pearson Education: Prentice Hall
Finalists
1) Design Patterns in Java by Steven John Metsker and William C. Wake, Pearson Education – Addison-Wesley
2) Agile Java Development with Spring, Hibernate and Eclipse by Anil Hemrajani, Pearson Education, Inc.
2007, June 21 - 10:31 — laseelan
Deploying to Tomcat using ANT
Tomcat Web server for servlets and JSP, has become more attractive to Ant developers since it comes with custom Ant tasks for deployment.
To do this action you need to copy server/lib/catalina-ant.jar from your Tomcat 5 installation into the lib directory of your Ant installation to use these tasks.
The Tomcat deployment tasks are deploy, reload, and undeploy; to use them, add these taskdef elements to your build file
2007, June 20 - 18:22 — laseelan
Coooool GWT
I've always dreamed of having an Object-Oriented framework for developing rich web applications without having to worry about Javascript coding differences between different browsers.Google Widget Toolkit seems like the closest thing that we dreamt.
Google Web Toolkit unifies client and server code into a single
application written in one language: Java. GWT lets you create a web
application in much the same way as you would create a Swing
application---creating visual components, setting up event handlers,