How to use Cookies in Struts 2 with ServletRequest and ServletResponse
Unlike sessions, it appears that cookies are a bit of an orphaned feature in Struts2. There are ways of reading them using the framework, but no way to write them.
A simple Ruby implementation with lots of comments. This document explains how to implement DES, from the perspective of learning how the algorithm works.
Unlike sessions, it appears that cookies are a bit of an orphaned feature in Struts2. There are ways of reading them using the framework, but no way to write them.
Luckily (unlike cookies), Struts2 comes with features to give you access to sessions without dipping into the realms of the ServletRequest / ServletResponse. So here's how to use sessions with Struts 2:
Lately i've needed to run a background task every 10 seconds in a Java web-app (servlet) and found Quartz Scheduler to be great. It's just that their documentation doesn't really cover servlets much. So here we are:
Hi,
I've been fed up with all the JS calendar date pickers that are out there - they're all too complicated, heavy, rely on frameworks that i don't want to include, or they're ugly, or have anti-commercial licenses, etc etc etc. So here's mine:
Recently had to upgrade one of my programs to go from some other database to Oracle. Luckily it uses hibernate, so i thought it would be hassle free. Well, i hit a few hiccups so here's how i finally got it to work. Note that this is for Oracle XE, but should be applicable for any Oracle version 9i onwards.
How to implement 128 bit AES / Rijndael from scratch: A simple Ruby implementation with lots of comments. This document explains how to implement AES, from the perspective of learning how the algorithm works.
Hi all, here's the quickest way to get forms authentication up and running in your asp.net web app, storing usernames and hashed password in your own database.
Binary message parsing! This is one of those areas that I must admit, C *almost* has the edge on C#.
Anyway, here's an AS2805 message parser written in C#.
A quick little script for dumping a binary file into a view similar to a hex editor.
It is actually quite easy to get Spring to manage your Hibernate sessions and inject them into your web handlers. There's just some config files that need some hard-to-find values. Here i'll show you the basics, from the perspective of a Struts2 application, although it'll be mostly the same for whichever web framework you use.
© Copyright Chris' Babble. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine