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 "free sex movies for men non blog". 1,227 entries found.

You can also try this same search on Google.

Easy Windows Authentication with Tomcat 4.x

The original blog entry by Robert Rasmussen has disappeared from the Internet (cannot find server) so I'm reproducing it here via Google's caching feature. I've made a few changes to pretty up the formatting, but that's about it.


I've been pulled into a little internal project, and one of the requirements is that users should be able to authenticate with their Windows login and password. IIS may or may not be in the picture.

Since the server is a Windows 2000 machine, this turns out to be extremely simple to do thanks to Andy Armstrong's JAAS login modules.

Once you've downloaded the login modules, set your classpath accordingly and make sure that the directory holding NTSystem.dll is in your %PATH% variable. Next, in the "Sample config" folder you'll find a tagish.login file and a java.security.sample file. The last line in the .sample file is significant, and it needs to be in your $JAVA_HOME/jre/lib/security folder (in a file named java.security). You should copy the tagish.login file there as well. If your users will always be logging into the same domain (which is the case in my situation), just set the defaultDomain property in tagish.login, like this:

NTLogin
{
    com.tagish.auth.win32.NTSystemLogin required returnNames=true returnSIDs=false defaultDomain=YOUR_DOMAIN_HERE;
};

Now, all you need to do to use Windows authentication in your webapps is to make one addition to your server.xml file (or to your specific context's definition):

<Realm className="org.apache.catalina.realm.JAASRealm" debug="99"
       appName="NTLogin"
       userClassNames="com.tagish.auth.win32.NTPrincipal"
       roleClassNames="com.tagish.auth.win32.NTPrincipal" />

I'll admit this config is slightly hokey. If you look at the Catalina JAASCallbackHandler (which is hardwired to JAASRealm), the way that I have the realm configured above pretty much counts on the User principal (in effect, the user name) being the first principal returned. This is evil, but it works. It would be nice if either Catalina allowed a pluggable CallbackHandler so that I could take advantage of the NTPrincipal.getType() method or if Andy's code returned subclasses of NTPrincipal like UserPrincipal or GroupPrincipal that I could specify in server.xml.

Once you've got this all configured, the various groups your users belong to equate to role names (so if I belong to an administrators group, my authenticated user will be in role "administrators"), and you can configure security in your webapps using these roles.


Posted in Java at Feb 17 2003, 04:11:52 PM MST 19 Comments

Comparative analysis of Struts vs. WebWork vs. Barracuda vs. Maverick?

Does anyone know of a comparative analysis of Struts, WebWork, Barracuda and Maverick. I'd love to find a paragraph or two that I could quote in my chapter on Struts. I'm not at all attempting to say that Struts is better than any of these - I just want to give a fair shake to each one. The reason I'm writing this chapter on Struts is because that's what I'm most familiar with.

Thanks,

Matt

Posted in Java at Feb 17 2003, 09:34:44 AM MST 4 Comments

Font Size Problems?

If you're having font-size problems with this site since I added the dynamic font re-sizeing, I apologize. It was a problem with the fact that I was using percentages for the base font, rather than pixels. So it set the initial font to 70px rather than 70%!! I've reset the base font to be 11px - deleting your cookies or hitting the "R" button should fix the problem. Tip o' the hat to John Cavacas (no blog from what I can tell).

Posted in General at Feb 17 2003, 09:16:41 AM MST 1 Comment

Struts Training (Darn Cheap too)

If you're looking to learn more about advanced features of Struts, you might want to checkout BaseBeans's upcoming training. I received the following e-mail in my Inbox this evening.

Announce: "*Best Practices in Struts -  Web Training*" by Cekvenich, 
Husted, and Turner and a presentation by Momjian on PostgreSQL. (each a 
published author)

Struts 1.1 might be released in March, so every Saturday at 10:30 AM 
Easter, watch and hear presentation via WebEx.com.

Meeting #	Date	 Title
616291003	1-Mar	 MVC Intermediate Setup
614301419	8-Mar	 MVC View for CMS/Contact
611367121	15-Mar 	 MVC – Ted Advanced + DAO Lab
611903740	22-Mar	 MVC – Bruce pgSQL + Multi Row Lab
611213868	29-Mar	 MVC - Turner + Options/Nested
(once you connect via PC, telecom phone is 1-408-964-1050)

This presentation is almost FREE (other than the cost of WebEx), the 
sooner you register, the cheaper it is.

A week of training by others could be $2400! Plus travel costs. Plus 
they did not get voted best, baseBeans.com did!

Register and pay at: http://www.basebeans.com/do/classReservation
Cost of all 5 sessions + labs (8 hours for each session) is .... $155 if 
you pre-register, or $275 if you late register and $475 if you register 
in March.

Labs (on your own time, hours each) include: Multi Row Updates, 
Validation, Tiles, Navigation, EL, Nested, Options, CRUD, etc. full 
agenda was published.

Each lab is at least 8 hours and required, if you do not do the labs, 
the next presentation will not make sense, no pretenders here. No money 
back for this, other baseBeans.com presentations are money back!

I'd sign up, but Saturdays are reserved for Julie and Abbie.

Posted in Java at Feb 16 2003, 07:34:22 PM MST Add a Comment

Spotted: Nice Roller Theme

I stumbed upon the :: Introspection :: blog this morning, written by Jeff Haynie. I really dig Jeff's theme, and that's the reason for this post. Jeff - any chance you want to donate that sucker to Roller's out-of-the-box themes collection?

Posted in Roller at Feb 15 2003, 08:10:22 AM MST Add a Comment

RE: Tiles 201 - Using Controllers

Patrick has published another excellent article on Tiles. This one is titled Tiles 201 and is about using Tiles Controllers. Good stuff to know - especially since I've never used a Tiles Controller (I might now!). I really like the clear and concise way that Patrick writes tutorials. I think we, as open source developers, should do more of this to better explain the technologies we use. So next time you're interested in learning something, I encourage you to write a tutorial on it - I'm willing to bet you'll learn and retain a lot more. If you don't understand something or make mistakes, I'm sure there are many Java Bloggers willing to help you get it right.

Patrick mentions that the Tiles Controller is not discusses in any of the existing Struts books. This sounds like an opportunity for me to include it in my chapter. With Patrick's simple and easily-understood example, this shouldn't take too much effort. Thanks Patrick - great stuff! One question I have - I know that these types of posts take a long time to create/edit and correct. Your blog says "sponsored by browsermedia" - does that mean you get paid to blog in a sense? Meaning - are you writing these articles at work?

Posted in Java at Feb 12 2003, 08:51:54 PM MST Add a Comment

RE: How do they do it?

Dominic writes, "How in the world do they (Java bloggers) not lose their mind doing all these non-work related projects/activities such as: writing books, opensource development, consulting, etc." Since I do a lot of non-work related activity, I left a comment on his site, basically saying that I have no time-management skills and that the only way I get stuff done is to stretch the bounds of my relationship with my wife. This is because usually I tell her "I have to work tonight" and I get on the computer around 7 PM and join her in bed around midnight or 1. Then I get up at 4 and head into the office, only to do it again the next night (if necessary). I find this really sucks, particularly if I'm working a 40-hour week in 4 days. Since I have a new deadline looming (edit/return Wrox Chapters by Monday), I'm going to try something a bit different. I'm going to work an hour and a 1/2 at night (5:30-7), and then again in the morning (4-5:30) . I'll work an 8 hour day, getting off at 3, then I'll hit the gym and be home by 5. That's just this week, we'll see how it goes. In reality, I've found that the following things work the best for "getting things done."

  • Quit blogging and reading blogs. Same goes for e-mail - this can save 1-3 hours a day for me.
  • Plan your day and leave your computer/location when you say you're going to.
  • If you're reading a book or writing a paper - take it to the library. Go early and stay all day.
  • For me, working on Windows is a good 2-3 times faster than working on my Mac or Linux. Stay with the OS that you're most productive on.
  • When something small comes up that you need to do, just do it.

OK, now I'm going to follow a bit of my own advice and close Outlook and Phoenix.

Posted in Java at Feb 11 2003, 05:47:07 PM MST Add a Comment

www.struts.ru

Cool - there's a new site for all the Struts documentation in Russian. I actually got a degree in Russian, and I dig Struts, so of course - this interests me. Beautiful country, awesome culture and a very rich history. Too bad I gave up Russian after graduating to learn all this computer stuff instead. Now I can barely understand a full sentence - and I was pretty close to fluent my senior year. One question I have for non-English programmers - do you write Java/JavaScript/CSS/HTML in your native language or in English? I've always wondered...

Posted in Java at Feb 11 2003, 12:50:34 PM MST 2 Comments

RE: Tiles 101

Patrick Peak has a weblog that was just started last Wednesday. He wrote a great post today on Tiles that I hope to send to the struts-user mailing list (as soon as I get his permission). Unless someone else has already done it, of course. This is definitely a blog to watch and enjoy.

Posted in Java at Feb 10 2003, 10:05:32 PM MST Add a Comment

The war in Iraq

I don't believe it's started yet, but "The war in Iraq" was the only title I could think of. Anyway, I haven't been too concerned with it up to this point. I don't know that I support it, but I don't want to be the victim of chemical or nuclear warfare either. However, it became pretty personal today when I received an e-mail from one of my best friends.

For those of you who didn't already know, I was recently activated and deployed to Kuwait on the seventh of February. Obviously I had to withdraw from school and could be here for up to a year. However, this is very unlikely and I'm speculating and hoping that out unit will be sent home in either May or June.
....
I'm stationed at Al Jaber Air Base approximately 45 miles northwest of Kuwait City. As you can imagine the base in a very busy place right now with units from all four service braches present, along with a small contingency of British troops. I can't disclose too much information about the resources in place or our mission, but I can tell you the base is well fortified and protected. I'm sorry I didn't get in touch with some of you before I left. I had a very limited amount of time between the time I was notified and actually deployed, and was very busy taking care of personal affairs.

Yikes! Now I really hope we don't go to war!

Posted in General at Feb 10 2003, 09:48:28 PM MST 2 Comments