<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/java/tags/JSP</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 06 Jul 2008 20:22:35 GMT</pubDate>
<item>
<title>(Java) Dynamic list binding in Spring MVC | mattfleming.com - taltmann</title>
<link>http://snipplr.com/view/4807/dynamic-list-binding-in-spring-mvc--mattflemingcom/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 28 Jan 2008 11:40:58 GMT</pubDate>
<guid>http://snipplr.com/view/4807/dynamic-list-binding-in-spring-mvc--mattflemingcom/</guid>
</item>
<item>
<title>(Java) Struts bean:write format attribute - springett</title>
<link>http://snipplr.com/view/1958/struts-beanwrite-format-attribute/</link>
<description><![CDATA[ <p>You can use these attributes to format the display of your form bean properties. This works pretty well in displaying currency and date/time values. For example, you can display 1234.567 as $1,234.57 and 08/12/2006 as Aug 12, 2006. 

In order to get the second tag to work you will need to add the following line to your resource bundle:

myapp.currency.format=$#,000.00

The preferred way is to use the second format because it makes the code portable. Plus, if you want to change the format, you can make the change in resource bundle without having to worry about changing all your JSPs.

The type of the property being formatted cannot be String. The format attribute simply uses default format (display the property as is) when the property is of type java.lang.String. In other words:

private double amount; // will be formatted correctly
private String amount; // will NOT be formatted at all</p> ]]></description>
<pubDate>Thu, 11 Jan 2007 05:30:32 GMT</pubDate>
<guid>http://snipplr.com/view/1958/struts-beanwrite-format-attribute/</guid>
</item>
<item>
<title>(Java) Redirigir peticion (alternativa a sendRedirect) - pablazo</title>
<link>http://snipplr.com/view/1828/redirigir-peticion-alternativa-a-sendredirect/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Dec 2006 08:10:59 GMT</pubDate>
<guid>http://snipplr.com/view/1828/redirigir-peticion-alternativa-a-sendredirect/</guid>
</item>
</channel>
</rss>