You will be redirected in 30 seconds or close now.

ColdFusion Authors: Yakov Fain, Jeremy Geelan, Maureen O'Gara, Nancy Y. Nee, Tad Anderson

Related Topics: ColdFusion

ColdFusion: Article

Welcome to the Wonderful World of Java: A Training Review

Welcome to the Wonderful World of Java: A Training Review

By the end of the course, I had a good grasp of the various parts of the Java language, a better understanding of object-oriented programming, and a great appreciation for how powerful Java can be.

J2EE, Java, EJBs, JavaBeans, JSP... . The list of Java-related technologies can be mind-boggling. What's a ColdFusion developer to do? We know Java is important. Macromedia has built ColdFusion MX on a J2EE (Java 2 Enterprise Edition) platform, but, does that mean we all need to run out and learn Java? How about JSP? JRun? How will we use it in our day-to-day work? Will we use it and, if so, what flavor? Does a ColdFusion developer have the skills to learn this material?

These were the questions I was hoping to get answered as I headed for a series of two Macromedia-approved courses: "Fast Track to JSP" and "Java for Web Developers." Class offerings were difficult to come by, and my first scheduled class, in Washington, D.C., was canceled due to low enrollment. So, I was rerouted to the Fig Leaf training facilities at the Piedmont Center in Atlanta, Georgia.

These classes were sparsely attended, too, with only four students in each class, but this allowed for plenty of one-on-one time with the instructor, Alex Hearnz. Alex is an outside consultant who regularly teaches Java-related courses for Macromedia-certified companies as well as for other J2EE products, such as IBM's WebSphere.

The format of both classes would be familiar to anyone who's taken the "Fast Track to ColdFusion" class. The courses were divided into lectures, walkthroughs, and lab time; a student workbook filled with examples and instructions was provided. For an IDE, we used Macromedia's JRun Studio - familiar territory for a ColdFusion Studio user. (Although with the introduction of Dreamweaver MX and JRun 4.0, this will probably change.) And, although JRun 4.0 had already been released, we were still using the previous version.

"The Fast Track to JSP" class started the week. It was broken down into nine units:

  1. Introduction
  2. Setting up the Environment
  3. Introducing JSPs
  4. Reusing Code
  5. Dynamically Generating Content
  6. Building a Drill-Down Interface
  7. Inserting Data
  8. Application Partitioning Using JavaBeans
  9. Session Management
Brushing Up on the Basics
For the Java novice, simply getting acquainted with all of the acronyms can be a challenge, and much of the first day was spent acquainting students with the terminology and the development environment. We also covered basic Web development architecture topics, such as the benefits of using dynamic versus static pages.

Some of the topics covered on the first day were things that I would have expected anyone coming to the class to already understand, based on the published prerequisites. Others, such as the process of establishing a database connection in the JRun server administrator, were specific and detailed enough to really catch my attention.

Once we got past the really basic stuff, we started focusing on the syntax of JSPs. JSP stands for JavaServer Pages, which are designed to make working with other Java objects easier. ColdFusion developers will find the syntax familiar. There is a series of tags that can be used to perform common functions. For example the following snippet of code works much like the familiar <cflocation> tag:

<jsp:forward page="nextpage.jsp"/>

Notice, however, that unlike ColdFusion, single line tags must still be closed in JSP, by using a trailing "/" such as you would do in XML. And JSP, along with all Java technologies, is case-sensitive. More than once we students cried, "Ugh! Stupid capital letter!"

Throughout the two days, we used our newfound skills to build a fictional online extreme sports company. Many of the common tasks Web developers must perform were covered: building a form and action page, querying a database and returning the results of that query back to the browser, and handling simple session state-management. But it was a cursory look at each of the topics.

Most experienced CF developers would be left with questions. Some of mine dealt with the same topics that are covered in the CF forums and discussion groups on a regular basis. For example, when outputting the results of a query, how do you group to a certain column? Unfortunately, the instructor was unable to provide an answer to this and several other questions.

At the end of the JSP class, I felt somewhat disappointed. I wanted to be able to replicate CF in JSP. I was hoping it might be that easy. But, I learned that JSP by itself is limited. To really harness the power of Java, learning how to write actual Java code is necessary. Luckily I was staying for the second class, "Java for Web Developers."

Exploring the Power of Java
For me, this was clearly the better of the two classes. The instructor seemed much more confident in his knowledge of pure Java. He seemed truly excited to seek answers to challenging questions. Also, we'd already gone through most of the stuff that would be redundant to experienced CF developers. So, we were ready to dive right in.

These three days were divided into 12 units:

  1. Java Overview and Positioning
  2. JavaServer Pages
  3. Java Language Basics
  4. Object-Oriented Programming
  5. Object-Oriented Programming in Java
  6. Developing and Using JavaBeans Components
  7. Inheritance
  8. Handling Exceptions
  9. Working with Interfaces
  10. Accessing the Database Using JDBC
  11. Advanced Data Manipulation
  12. Application Partitioning
After spending a little bit of time convincing us of the merits of Java and setting up a few necessary system variables, we got to the good stuff - exploring the almost infinite possibilities of Java. Like most Java classes, we began by using the command-line Java compiler utility to compile and run a simple "Hello World"-type Java class. But, we quickly moved on to using JRun Studio for all our development and compilation. JRun studio makes the process of compiling quick and painless.

One exercise was building an online loan service for the "Acme Credit Company." Once more, we covered many processes with which CF developers would be familiar. None is as easy as what we do in CF. For example, Listing 1 shows a simple CF example of querying a database and outputting that query. Listing 2 shows the corresponding code necessary to do the same thing in Java. At first glance, this looks awfully scary, and you might wonder why we'd want to bother with so much code. But, as we spent more time learning about theory, particularly object-oriented programming theory, it became clear that Java could accomplish some amazing things, such as true three-tiered applications.

Simply put, a three-tiered application is one in which database logic is separate from business logic, which is also separate from presentation logic. The beauty of a three-tiered application is that you can change the presentation layer for different environments without affecting the business or database layer. It's in this area that Java really becomes powerful.

Of course, creating a three-tiered application requires more thought and planning than "whipping out" a CF application in a day or two. Consequently, we spent time in the class learning a little about UML, or the Universal Modeling Language, and building UML diagrams of our Java components. This process is a little bit like creating an ER (Entity Relationship) diagram for a database, but because Java is object-oriented, you create UML objects that can represent classes or JavaBeans.

We also spent considerable time in this class in the online java docs, available at Sun's site at http://java.sun.com/j2se/1.4/docs/api/index.html, or on your local hard drive after downloading the Java Development Kit. If you learn Java, you will become very familiar with these pages. In three days I developed something of a love-hate relationship with them. They're wonderful because you know that everything you need to know is there. They're terrible because somehow you have to remember which package or class has the information you want.

Overall, a Good Experience
By the end of the course, I had a good grasp of the various parts of the Java language, a better understanding of object-oriented programming, and a great appreciation for how powerful Java can be. Did I run right back to the office on Monday and starting writing Java code or JavaServer Pages? Well, no. (We don't have a J2EE app server, and we haven't upgraded to CFMX yet.) Will I use it when given the chance? You bet.

All in all, I would recommend both classes to others interested in developing a better understanding of Java and JSP. While the JSP class was a bit disappointing, I still learned some valuable information, and enjoyed the fact that I could be introduced to JSP in a familiar environment. The "Java for Web Developers" course completely met my expectations with one caveat - the course doesn't take the full three days, so if you're flying in like I did, plan accordingly.

One final note, the instructor mentioned that the future of both courses is in jeopardy, due to low interest. So, if you want to take them, call your Macromedia-certified training facility today and request they be put on the schedule.

More Stories By Deanna Schneider

Deanna Schneider has worked as an interactive media developer for the University of Wisconsin Cooperative Extension since October 1999. Although she has no formal education in computer sciences, she has a successful career as UWEX-CES' lead CF developer. She has written approximately 100 CF applications to meet the needs of faculty and academic staff throughout Wisconsin.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

Most Recent Comments
Eric Shaffer 11/18/02 11:58:00 AM EST

A good article about two courses that, by name, don't sound as if they would have anything for a ColdFusion Developer. Maybe that's why there is low attendance? It was informative, and made me want to attend the training (at least the SECOND course...I'd defer the first course until they upgraded their course software to the CURRENT release version). Still, I didn't see where the article answered the original question...do I NEED (as in mandatory, compulsory, urgent requirement) to learn Java? Or is ColdFusion, as we know it, being killed off by Macromedia and going away?

@ThingsExpo Stories
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Conference Guru has been named “Media Sponsor” of the 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. A valuable conference experience generates new contacts, sales leads, potential strategic partners and potential investors; helps gather competitive intelligence and even provides inspiration for new products and services. Conference Guru works with conference organizers to pass great deals to gre...
The Internet of Things will challenge the status quo of how IT and development organizations operate. Or will it? Certainly the fog layer of IoT requires special insights about data ontology, security and transactional integrity. But the developmental challenges are the same: People, Process and Platform. In his session at @ThingsExpo, Craig Sproule, CEO of Metavine, demonstrated how to move beyond today's coding paradigm and shared the must-have mindsets for removing complexity from the develop...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
"Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Large industrial manufacturing organizations are adopting the agile principles of cloud software companies. The industrial manufacturing development process has not scaled over time. Now that design CAD teams are geographically distributed, centralizing their work is key. With large multi-gigabyte projects, outdated tools have stifled industrial team agility, time-to-market milestones, and impacted P&L stakeholders.
"Akvelon is a software development company and we also provide consultancy services to folks who are looking to scale or accelerate their engineering roadmaps," explained Jeremiah Mothersell, Marketing Manager at Akvelon, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
"There's plenty of bandwidth out there but it's never in the right place. So what Cedexis does is uses data to work out the best pathways to get data from the origin to the person who wants to get it," explained Simon Jones, Evangelist and Head of Marketing at Cedexis, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
It is of utmost importance for the future success of WebRTC to ensure that interoperability is operational between web browsers and any WebRTC-compliant client. To be guaranteed as operational and effective, interoperability must be tested extensively by establishing WebRTC data and media connections between different web browsers running on different devices and operating systems. In his session at WebRTC Summit at @ThingsExpo, Dr. Alex Gouaillard, CEO and Founder of CoSMo Software, presented ...