|
|
||
Brian Leonard's BlogSeptember 2005 ArchivesMore Easy JSTLPosted by bleonard on September 30, 2005 at 11:34 AM | Permalink | Comments (0)Yesterday I put together a blog showing how easy it is to work with JSTL in NetBeans. One thankful reader asked for a follow-up on using the JSTL XML library. I think this was primarily due to a problem he was having with a package name change from JDK1.4 to 5 (see my response for more details). But it's simple enough, so here goes anyhow. I'll basically just do what I did yesterday, display a table of customers. However, today, that customer list will come from and XML document rather than a SQL database. <?xml version="1.0" encoding="UTF-8"?>
<customers>
<customer>
<num>1</num>
<name>SuperCom</name>
<city>Miami</city>
<phone>305-777-4632</phone>
</customer>
<customer>
<num>2</num>
<name>Livingston Enterprises</name>
<city>Miami</city>
<phone>305-456-8888</phone>
</customer>
<customer>
<num>25</num>
<name>Oak Computers</name>
<city>Dallas</city>
<phone>214-999-1234</phone>
</customer>
<customer>
<num>3</num>
<name>MicroApple</name>
<city>Atlanta</city>
<phone>555-275-9900</phone>
</customer>
</customers>
I didn't mention yesterday, but this exercise was done with NetBeans 4.1. You could also use the NetBeans 5.0 BETA .
NetBeans - Take 2 and Call Me in the MorningPosted by bleonard on September 29, 2005 at 06:36 PM | Permalink | Comments (4)I came across this post from a frustrated developer today, and couldn't help but wonder - are we keeping NetBeans a secret? Poor Dan is just trying to create a simple JSP. For some reason, I couldn't see the code referenced in his post, but I think I got the gist of what he's trying to do. Let's tackle them one frustration at a time: Frustration #1 - Create a Hello World Web Project
Frustration #2 - Closing and Opening a Project
Frustration #3 - Working with JSTL Here's where I couldn't see Dan's code. However, it looks like he's just trying to display some results from a table. For the purposes of this example, I'm just going to use the Pointbase database and sample data that comes with the J2EE 1.4 SDK. If you already have a different database set up, just change the settings to match your configuration.
Headache cured. Out With The New, In With The NewerPosted by bleonard on September 28, 2005 at 08:48 AM | Permalink | Comments (2)One big difference between the application server project and the NetBeans project is how often we release. The application server release schedule is basically driven by the JCP, which pumps out a new J2EE spec every couple of years, at best. With NetBeans, we target roughly a 6-9 month release schedule. The upshot - we get many more release parties than my friends on the application server team. Well, let's not jump the gun. It's not time to celebrate yet, at least officially. For me, however, it is time to upgrade my default IDE from NetBeans 4.1 to 5.0. That's because today, NetBeans 5.0 Beta hit the streets. What's my favorite new feature? Well, certainly Matisse revolutionizes Swing development. And with 5.0, I'm looking forward to making my J2SE applications web service clients. I'm also looking forward to using the revamped version control. Actually, one of the reasons I've used the 5.0 development builds was specifically for its built-in ssh client, which makes downloading projects from sites like java.net a snap. However, one feature which just caught my attention, I think I like the most. It's the automatic inclusion of imports when I use code completion. For example, in the Java editor, type "Big" and hit ctrl-space. You'll see the following: Nothing new there (except the redundant class name that has been removed from the package indicator). However, when you select either BigDecimal or BigInteger, the import statement for that class is automatically added for you. Fix Imports added to 4.0 was an improvement, but I've still always hated the need to use it. It's this type of attention to detail that makes developers happiest. Check out NetBeans 5.0 and find your favorite new feature. It may surprise you.
Professor for a DayPosted by bleonard on September 20, 2005 at 04:45 PM | Permalink | Comments (0)
Anyhow, I believe Professor Jin's opening line to me was: "I've been hearing good things about NetBeans lately". Which, of course, is no surprise to me anymore. Leigh then followed with: "I'm considering using it to teach my Java courses this semester". Great! As a show of support, I offered to come and give the professor's class an overview of the IDE. All 3 of Leigh's Java classes meet on Tuesdays, so we picked the 6th of September for my presentations. When I arrived on the 6th, it was evident Leigh had been spending some time with NetBeans, my first clue being the NetBeans Field Guide sitting on her desk. She had also worked her way through the Quick Start Guides linked to from our Welcome Screen.
From what I hear, the presentation was well received. I believe the NetBeans feature that resonated most with the students was developer collaboration. Hopefully by now most of them have set up their free accounts and are collaborating with one another to foster their understanding of the language. The presentation to SFSU has spawned a similar presentation at San Jose State University in early October. And hopefully that presentation will lead to others. However, now that word of this presentation has hit the blogoshpere, let me know if you'd be interested in having me come to your school as well. I enjoy getting to play professor for a day. | ||
|
|