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.

I recommend Eclipse.

In response to Russell's post on IDE's, I figured I'd give my opinion. I hate IDE's - for the past couple of years, I could never bring myself to use one for a few reasons (1) too slow, (2) I liked HomeSite too much and it worked for all my Java dev needs, and (3) I didn't like the UI's - not pretty enough for me. Granted, most of these are bad reasons, but we're allowed our opinions right? But with Eclipse 2.0, it's given me enough value-add that I now use it everyday, over IDEA and Sun ONE Studio 4 (a.k.a Forte for Java). It's still slower than HomeSite, but I really like it's look and it does everything I need (although I still use Ant to compile/deploy).

Posted in General at Aug 28 2002, 11:48:52 AM MDT Add a Comment

Invalid Reference to Login Page.

If you're using form-based authentication in your Tomcat Application - you might've seen this error before:

Apache Tomcat/4.0.4 - HTTP Status 400 - Invalid direct reference to form login page

type: Status report

message: Invalid direct reference to form login page

description: The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).

Well, the good news is - I figured out how to get around this today. Basically, it's caused when someone tried to go directly to your <form-login-page> to login, rather than a protected resource.

I use my index.jsp (welcome-file-list) page to do a redirect to a projected resource:

index.jsp
--------
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<logic:redirect page="/do/mainMenu"/%gt;

So I merely added the error-page declaration below to my web.xml, and whalla - no more error message!

<error-page>
<!-- 400 code is from trying to go directly to login.jsp -->
    <error-code>400</error-code>
    <location>/index.jsp</location>
</error-page>

Posted in Java at Aug 28 2002, 06:07:51 AM MDT 5 Comments

Adding a form element on the fly.

I used this code on my project yesterday and thought I'd share.

<script language="text/javascript">
    function addActionToForm() {
        // get the form to add the input element to
        var form = document.getElementById("noteForm");
        
        // Add a action input element
        var action = document.createElement("input");
        action.setAttribute("type", "hidden");
        action.setAttribute("name", "action");
        action.setAttribute("id", "action");
        action.setAttribute("value", "Save");
        
        form.appendChild(action);
        form.submit();
    }
</script>

This works great for me when I want to simulate a button named "action" being clicked, but I want to submit the form with JavaScript.

Hmmm, doesn't seem to work in IE5/Mac. Any tips?

Posted in The Web at Aug 28 2002, 12:03:57 AM MDT 1 Comment

A good story.

A friend of mine, Cliff Nellis, is riding his bike across America for charity and fun. He left last weekend, and had an opportunity to send us (friends) an e-mail today.

Towing 50 pounds of gear, the heat, no clouds, no shade, no breeze, running out of food and water with 15 miles left, and ending with one climb after another heading west into Walsenburg proved to be a test to say the least. FOUR miles outside of Walsenburg, I finally passed a house, and even though there was only four miles left, I knew I had to stop for some water. The lady was really nice...gave me some cold water and a popcycle. Still those last four miles were tough. I completely BONKED.

It was very enjoyable for me to read, so I asked him if I could share it. He said sure - [ full story ].

From Denver, I will bike to San Diego, and from San Diego, I will bike across the southern coast to Miami, FL. The total distance covered will be roughly 4,600 miles. On the way, I will bike through some of the areas that have been hit by wildfires this summer. I will pitch a tent at campgrounds most nights. I will carry my gear in a one-wheel B.O.B., which is essentially a trailer for a bicycle. I am excited to bike through many scenic parts of the country, including Moab, Lake Powell, the Grand Canyon, Lake Mead, the Mojave Desert, and the Rocky Mountains. I also look forward to biking through major cities, such as Las Vegas, Los Angeles, San Diego, Phoenix, Houston, Mobile, Biloxi, Orlando, and Miami. Mostly, I look forward to meeting the people. On a previous cross-country bicycle trip, I found that the people make the trip. If all goes well, I am registered to compete in the Great Floridian Ironman on October 19, 2002, in Clermont, FL. [ Website ]

Posted in General at Aug 27 2002, 12:54:53 PM MDT Add a Comment

Bookmark a group of tabs.

A sweet tip from Russell:

I AM using Mozilla's awesome "Tab-Group Bookmarks" feature which basically opens up a folder of favorites all in one window with a tab per link. I've got everyone in the JavaBlogs section of my blogroll in one and I can just open it up and flip through the tabs one by one. The sites I want to respond to or read more in depth stay open, but the others get closed (quick middle-button click). It's working out really well to keep up with the blog list on the left.

To use it, it's very easy:

  1. Open all your favorites sites using tabs.
  2. Go to "Bookmarks" and "Bookmark this group of tabs..."

Doesn't get much easier than that, and he's right - it's WAY cool!

Posted in The Web at Aug 27 2002, 10:16:57 AM MDT 1 Comment

Mozilla 1.1 Released!

View Release Notes. Download: OS X, Windows, Linux.

Posted in General at Aug 27 2002, 02:54:48 AM MDT Add a Comment

Marc Fluery on Open Source

At JBoss, a lot of our professional motivation as developers is tied to the personal satisfaction that can be obtained through the Open Source lifestyle. It's about being your own boss, doing the work you enjoy, living and working where you want, collaborating with your peers worldwide, getting to see the kids grow up. [Full Article]

Posted in The Web at Aug 26 2002, 09:31:21 AM MDT Add a Comment

We've come a long way baby.

I stumbled upon The Internet Archive today. It's by far one of the coolest websites I've seen it a while. They have created the "Wayback Machine" which makes it possible to surf pages stored in the Internet Archive's web archive. In other words, you can checkout what Yahoo looked like in 1996. Kinda funny that 1996 is way back, eh?

Posted in The Web at Aug 26 2002, 09:09:06 AM MDT Add a Comment

Google ranks raibledesigns.com #1

in 2 different queries! I found via my usage statistics today that both "j2ee designs" and "raible" (of course) turn up this website as it's first choices. Cool, and after checking the cached versions, that was before adding new meta tags last week! swwwwwwweeeeeeeeeeeeeeeettttt

Posted in General at Aug 25 2002, 11:48:19 PM MDT Add a Comment

XDoclet and Struts Validator

From the struts-dev list and Erik Hatcher:

My XDoclet Struts Validator validation.xml (for Struts 1.1) has been posted to the XDoclet tracker.
I'm hoping it will be added to the codebase and put into the upcoming new release of XDoclet (although I'm using XDoclet from CVS builds). Read the HTML file attachment on the issue page above for an example of how it works. If you're hand-coding validation.xml and using ValidatorForm extensions then this is for you!

I can't wait to use XDoclet in my next project! On my current project, I've already written most of the ValidationForms I need. I used the Generator package to do this, but I hope to either (1) refactor my current project to use Castor/XDoclet like Roller, or (2) use it on my next project.

I ordered an Ant book this evening in hopes of learning a lot more about Ant. I think I know a lot, but there's always room for more knowledge.

Posted in Java at Aug 25 2002, 03:47:45 PM MDT Add a Comment