ONJava.com    
 Published on ONJava.com (http://www.onjava.com/)
 See this if you're having trouble printing code examples


P2P Sockets and JSP 2.0

by Daniel H. Steinberg
ONJava Newsletter for 12/04/2003

Friends,

There was interesting news earlier today reported on c|net's News.com. Martin Lamonica reports that after "several months of negotiations, Sun Microsystems has decided not to join the Eclipse open source tools effort backed by rival IBM." In addition Sun "will no longer try to merge the Sun-sponsored NetBeans.org open source Java tools project with Eclipse." As Gilda Radner used to say, "It's always something."

Meanwhile, it's another great week at ONJava.com. Brad Neuberg has written an Introduction to the Peer-to-Peer Sockets Project. This may be the article that finally pushes me to learn JXTA. Brad has implemented and written about porting the standard Java socket classes "to work on the JXTA peer-to-peer network, rather than on the standard TCP/IP network. It also includes ports of many popular web packages, such as the Jetty web server, the Apache XML-RPC client and server libraries, and the Apache Jasper JSP engine, to run on the Peer-to-Peer Sockets framework." After an introduction on why you would want to use P2P Sockets, you will find extensive code examples of how to use the framework.

Hans Bergsten continues his four-part look at JSP 2.0: The New Deal. In this second installment Hans writes about new deployment descriptor features and about error-handling in JSP 2.0. The two changes for the deployment descriptor are "the rules for the web.xml file are now defined by an XML Schema, and most of the JSP-specific configuration items have been moved to a new XML element, which is under the control of the JSP specification." To aid with error handling, Hans recommends that "All JSTL libraries have TLVs. I strongly recommend that you develop TLVs for the custom libraries you write, and insist that the developer of any third-party library you use do the same."

To subscribe to the ONJava.com newsletter (or any O'Reilly Network newsletters), visit https://epoch.oreilly.com/account/default.orm and select the newsletters you wish to receive in your user profile (you'll need to log in with your existing O'Reilly Network account -- if you don't yet have an account, you'll need to create one).

To change your newsletter subscription options, please visit https://epoch.oreilly.com/account/default.orm and click the"Manage My Newsletters" link. For assistance, send help to

Our java.net feature this week builds on the JSP theme. Part two in Sue Spielman's series, Practical JSTL, is a bit of a catalog of "the available standard actions contained within the JSTL in the XML, I18N, and SQL libraries." The part that's caused a bit of a stir is her explanation that you violate MVC when you "perform SQL actions such as queries, updates, and transactions from [a] JSP". Why are these actions in the spec? Sue's reply: "Good question and one that I've discussed with various members of the JSR-53 expert group. The reason is the 'C' or community in the Java Community Process (JCP). The community has asked for it, the community has gotten it."

By the way, while I wasn't looking, another month has slipped by and it's December. We've been looking back at the articles published on ONJava this year as we think about our year-end specials. In a couple of weeks we'll ask you what you would like us to think about for next year.

Till next week,

Daniel H Steinberg, editor
ONJava.com and java.net
daniel@oreilly.com

ONJava.com News and Weblogs

java.net Weblogs

Other Java News (channel -- LANG: JAVA)

Java Cookbook Recipe of the Day

Java Events

Other O'Reilly Network sites

O'Reilly Network

XML.com

ONLamp.com

O'Reilly and Associates

O'Reilly Java

ONJava.com Affiliates

Servlets.com.

JDOM.org


Return to list of ONJava Newsletters.

Return to the ONJava.com.

Copyright © 2009 O'Reilly Media, Inc.