Matt RaibleMatt Raible is a writer with a passion for software. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.
You searched this site for "<a href=". 3,022 entries found.

You can also try this same search on Google.

Tomcat's Ant Tasks

Since I hold the top 3 spots on Google for Tomcat's Ant Tasks, I figured it was about time I figured out how to use them. So I did - you can read the How-To on my wiki. They're pretty slick now that I have them working. The real power (as I see it) is that ability to install a WAR on a server other than localhost. Does your appserver have Ant tasks to ease your deployment headaches? If so, I'd like to hear about them.

I also upgraded to DBUnit 2.0 and JSTL 1.0.5 today. They seem to be good releases - all my tests run without errors.

Posted in Java at Jan 30 2004, 07:20:30 PM MST 1 Comment

Want to use Struts with EJBs?

If you're looking to use EJBs in your Struts project - you might want to take a look at StrutsEJB on java.net. I have no opinion on this project, just thought I'd provide a little visibility.

Posted in Java at Jan 30 2004, 08:27:34 AM MST 2 Comments

Ant 1.6.0 with Canoo's WebTest and AppFuse

If you want to use Ant 1.6 with Canoo's WebTest, you'll need to patch the source. Many thanks to Paul Kavanagh for providing the patch - I hate it when I can't upgrade to the latest release. Since AppFuse relies on WebTest for running its JSP tests, you must patch webtest to use Ant 1.6. Or you can can just download webtest.jar and put it in your lib/webtest*/lib directory. This is the from the latest version of WebTest's CVS (build 379 is the latest release used in AppFuse).

Posted in Java at Jan 29 2004, 01:43:00 PM MST 1 Comment

What's new in Tomcat 5

Want to know what's different between Tomcat 4 and Tomcat 5? If so, you should check out this article. I haven't read it (yet), but I hope to soon. Today, I was planning on working from home, plowing through my stuffed head and headache with the power of DayQuil. However, Julie had to run into work (she stayed home with Abbie yesterday, who is also sick). So Abbie and I are going to be sickos together all morning. The problem is that Abbie doesn't know she's sick - she's still happy as a pig in sh*t and wrecking the place. I'd better go and stop her...

Oh wait - Telletubbies just came on - she's mesmerized, that gives me a half hour. I'd love to work on AppFuse, there's never been more stuff I'd like to integrate. Here's a list of stuff waiting for SF's CVS to get it's act together:

  • Start integrating Spring.
  • Various bug fixes as reported by users.
  • Charles' persistent cookie strategy.
  • WebTest patch to work with Ant 1.6.0.
  • Figure out how to run AppFuse on JBoss - thanks to Rick Hightower and Brian Topping (on the roller-user mailing list) this should be pretty easy.
  • Figure out how to run AppFuse on Orion - I got an e-mail yesterday with some hints, so this shouldn't be too hard either.

As far as SourceForge's CVS, if you were to checkout AppFuse right now, you'd get the latest code, but you'd also get a bunch of files I deleted ages ago. I submitted a bug - here is the response I received:

This issue (file present both Attic and non-Attic) would have been caused by a file removal between the time of our full repository sync and the update sync; or by outdated data being present after our initial sync (due to a sync bug) -- both possible cases with our recent systems upgrade. We are presently in the process of generating a list of such duplicates (using a set of scripts we wrote) and will perform a clean-up of this issue once the script run completes. Additional information will be posted to this request no later than 2004-01-30. Your patience is appreciated.

Back to babysitting, Abbie's getting bored with Telletubbies.

Posted in Java at Jan 29 2004, 09:21:48 AM MST Add a Comment

RE: Mock Shmocks!

After I finished reading Open Source Programming and all the of the feedback from my Mock Shmocks post, I've realized that I need to learn more about Mocks. I need to learn how to streamline my TDD process. It's just taking too long right now. So where do I go from here? AppFuse currently contains, from what I can tell, only integration tests. All the tests depend on the database or the container to run. It works great, and all of AppFuse's tests complete under 3 minutes, but obviously this time increases as the project grows. So should I remove some integration tests and replace them with unit (mock) tests? If so, which ones? Should UserDAOTest talk to the database, but LookupDAOTest only use a Mock? How do you decide which tests should be real (integration) and which tests don't need to be (mocks)?

If the answer is "create a unit tests to sit next to each one of your integration tests" - then that seems like a waste of time. Am I supposed to have 2 *Test.java classes for each real class? I need a book that'll explain all of this and make me the TDD guru I long to be.

Even if I figured out all the answers to the above questions - which package should I use? There's a whole slew of them: Mockrunner, MockObjects, EasyMock and jMock. How do you decide? It's easy when testing Java classes - you use JUnit. When you want to test servlets, you use Cactus. Why all the choices for Mock testing?

Posted in Java at Jan 28 2004, 10:18:17 PM MST 6 Comments

Tapestry vs. Struts

I've been watching the Tapestry mailing lists in hopes of picking up some tips before I start learning it. In reality, I'm waiting for Tapestry in Action, which will hopefully make it easier to learn. Today, there was a very interesting thread comparing Tapestry to Struts. It looks to me that Tapestry is easier to develop with once you get the hang of it, but apparently, it has a steep learning curve.

The Tapestry Mailing list is interesting - it seems to have a different level of users. Maybe it's just me, but they seem to be a more enlightened crowd. You could almost say the same for the WebWork mailing lists. If I compare these two lists to the questions on the Struts mailing lists - it seems like there's a bunch of idiots over there (on Struts). Don't these people know how to use Google?! To be fair to Struts, I have a theory.

If WebWork or Tapestry ever becomes as popular as Struts, they'll get their fare share of idiots too.

It's just the nature of mailing lists - it's so much easier to ask your question than to look for the answer. Which reminds me...

Don't ask dumb questions...

Posted in Java at Jan 28 2004, 09:51:15 PM MST 2 Comments

Daisy the Cat, R.I.P.

Daisy the Cat Most of you won't care about this, but I need to write it down so I know the day that Daisy died.

Today was one of the first days we had a to make a real sacrifice as parents. Daisy was a cat that Julie had when I first met her. When Julie got Daisy, she was so small she could fit in the palm of her hand. Daisy was weaned too early from her mother (who was killed by a snake), so she had a personality disorder. Basically, she was mean and hated other cats. Daisy hated all the guys that Julie had ever dated (in college), until she met me. Julie knew it was special when she saw Daisy didn't hate me. Daisy traveled with us from Florida to Colorado when Julie moved here. She lived with us in our one-bedroom apartment, moved with us to our first house, and was a great cat for Abbie's first year.

Even though Daisy was mean, she was also the nicest cat I'd ever met. She'd always cuddle up on my lap when I watched TV or when I was working on the computer. You just had to watch out when you walked - she was an ankle biter. For the last year, she's been a pretty good cat with Abbie - just sitting there when Abbie poked and prodded. However, in the last month, she's started to fight back and has bitten and scratched Abbie quite a few times. My take on it was "good - Abbie should learn not to mess with the cat." Besides, Abbie wasn't crying - so it couldn't hurt too bad. Julie had a different take on it - especially since the folks at day care asked where the scratches came from.

When I got home tonight, Julie was in bed with Abbie at 7:00. "7:00!?" I thought, "that's a bit early." Then Julie told me "today was a very bad day" and she proceeded to tell me that they took Daisy in to the pound. Damn - my favorite cat. Ever. Gone. They got a new one, but it won't be ready until tomorrow. I want Daisy back, she was the bomb.

Posted in General at Jan 28 2004, 08:15:37 PM MST 12 Comments

Easy IIS and Tomcat integration

I found a nice installer for integrating IIS and Tomcat today. It uses the Isapi redirector jk 2.02. My current client is a Windows shop - so stuff like this is nice. I did find that I had to install Tomcat using the .exe installer, vs. extracting a .zip file. I also had tried to get the 1.2.5 version of the connector working manually - so in the end, I had to blow away both Tomcat and IIS to get this sucker to work. But if you're setting up a brand new machine, I imagine this installer will come in quite handy.

Posted in Java at Jan 27 2004, 03:37:00 PM MST Add a Comment

Exposé for Windows

I love Panther's Exposé application. It's by far my favorite OS X application - I even find myself longing for it when using Windows. Could the wait be over? I stumbled upon WinPLOSION today, which looks (to me) to be Exposé for Windows. Anyone tried this thing. At $10, it's probably worth finding out if it works - but I'd thought I'd ask y'all first.

Posted in Mac OS X at Jan 26 2004, 02:37:18 PM MST 16 Comments

[Review] Java Open Source Programming

Book Cover Today I finished reading Java Open Source Programming. It took me one week to read - and I only read about an hour a day. This book is nice to read - you can breeze through 20 pages in no time. I appreciate a quick-read technical book. I enjoyed the simplicity of this book, especially since I'm such a rookie at WebWork, SiteMesh and Mock Objects. I knew most of the Hibernate and XDoclet stuff, but I did manage to pick up a few tricks, and since it's the only book on Hibernate (that I know of), I'll refer to it when I need to do components or proxies. Overall, this book made WebWork and SiteMesh look like great technologies and I'm excited to start using them.

The sample app, PetSoar, continues the "call your persistence layer from your action class" that I've seen in all WebWork sample apps. I still don't know if this is a good idea, but since Actions aren't tied to the web, maybe it is. This means you put your business logic in your controllers (a.k.a. actions). Kinda breaks the whole controllers should only be controllers mantra, but whatever floats your boat. To be honest, in AppFuse, all the Managers (a.k.a. business layer) do is transfer POJOs to ActionForms, and then back again. The Managers are were my business logic should go, but I often find it easier to put it in my actions. I sense a paradigm shift - will the WebWork version of AppFuse only contain a "dao" layer and a "web" layer? Who knows - only time will tell.

One interesting thing I picked up is the different way that Dependency Injection (a.k.a. Inversion of Control) is handled in WebWork compared to how its handled in Spring. In Spring, all you need to do is add a setter (and local variable) to prepare a class for IoC. When using WebWork, you have to create an Interface that has the setter defined, and then your Action must implement that interface. If Spring can do it without an interface, why can't WebWork?

All in all, I enjoyed this book - though it didn't peak my interest as much as J2EE Design and Development. I think that's probably because Spring solves some issues I've had with AppFuse (binding interfaces and implementations), whereas this book doesn't really solve anything for me. As a WebWork newbie though, I do feel this is a good read. I also found myself saying "Wow, that's cool" a fair amount of times (re: SiteMesh and WebWork).

I was disappointed that i18n was not covered at all. I tend to always prepare my Struts apps for i18n (extracting text into a .properties file). However, in most cases, a 2nd translation has never been put in place. So, I bitch about the lack of i18n coverage, and I write my apps with i18n in mind, but it's never been used in any of the apps I've written. Maybe I should just quit doing i18n in my apps - it'd probably save an hour a week of development time.

So it comes down to this - if you don't know anything about WebWork, this book is a worthwhile read. If you know WebWork - I'm sure you'll be disappointed because it is written for newbies.

Next up, upgrading my programmer certification to 1.4 with the Sun Certified Programmer & Developer for Java 2 Study Guide.

Posted in Java at Jan 25 2004, 01:29:19 PM MST 7 Comments