Java

Java Anti-Patterns

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

Moving on to struts2 Action classes.

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

Google Web Toolkit

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.

J2ME Core Concepts

Java 2 Platform Micro Edition At the heart of Java 2 Micro Edition (J2ME) are three core concepts: configurations, profiles, and optional packages.

Enterprise RIA

Enterprise Rich Internet Applications Agenda • What is JSF? • Rich Internet Applications (Web 2.0)

Struts2 - Step by step guide for the programmers

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.

manning

action class

The best products and tools for Java technologies

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.

Tomcat tasks using Apache Ant

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

GWT Kick Starter

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,
Syndicate content