Often, the Struts 2 tag library doesn’t offer enough functionality to support a nice DHTML type of layout. In those cases, I find myself creating URLs manually to send to the action.
In most cases, this isn’t a bid deal. However, to make it work right, you have to duplicate the format that Struts [...]
Entries Tagged as ‘Struts 2’
December 24, 2008
Manually Set Map Value in Struts 2
June 29, 2008
Method Chaining and Struts
Method chaining is very cool. Basically, it allows you to turn this code:
Car hondaFit = new Car();
hondaFit.setColor(Car.Colors.BLACK);
hondaFit.setStyle(Car.Styles.SPORT);
etc.
To:
Car hondaFit = new Car().
setColor(Car.Colors.BLACK).
setStyle(Car.Styles.SPORT);
Pretty cool. It makes Java/C# style languages function similar to Ruby and it also saves some space when setting a lot of attributes at once.
Implementation is pretty simple. All you have to [...]
June 2, 2008
Struts Errors: Stream Closed
Since February, I have been working pretty extensively in the Struts 2 framework. This is my first interaction with a Java web framework in general and with Struts in particular.
Struts, like any other web framework, has some things it does extremely well and some things that it does not so well. One of [...]