All posts in 'Java'

All roads lead to Rome…

14-Feb-11

…or: Adding Atom links to an RSS feed generated by ROME. I’m using ROME to create RSS and Atom feeds for a project. While ROME has excellent support for creating either RSS or Atom feeds, there is no build-in immediate support for Atom elements inside an RSS feed like <atom:link href="http://example.com/example.rss" rel="self"/><atom:link href="http://example.com/example.rss" rel="self"/> The […]

Read the complete article »

Disable jsessionid path parameter in Java web applications

28-Jan-11

Wow, this has driven me nuts… Most J2EE developers will know the ugly-as-hell ;jsessionid=BLAHBLAHBLAH appended as a path parameter to all urls of an application on the first call of a page that creates a session. Tomcat as of version 6 has the possibility to add the attribute ‘disableURLRewriting=”true”‘ to the context of the application […]

Read the complete article »

#wjax 2010

16-Nov-10

Nachdem ich 2009 aus privaten Gründen weder auf der JAX noch auf der W-JAX war, zog es mich in diesem Herbst nach München, zur W-JAX. Neu für mich im Vergleich zu den letzten Jahren war, dass ich mir mal ein Zimmer im Tagungshotel genommen habe und bereits am Ende des ersten Tages war mir ziemlich […]

Read the complete article »

How to get UIDefaults in Java

06-Sep-10

If you’re loocking for Javas UIDefaults, use the UIManager class. This snippet gives you all installed UIDefaults: UIDefaults defaults = UIManager.getDefaults(); for(Enumeration e = defaults.keys(); e.hasMoreElements(); ){ String key = e.nextElement().toString(); System.out.println(key + " = " + defaults.get(key)); }UIDefaults defaults = UIManager.getDefaults(); for(Enumeration e = defaults.keys(); e.hasMoreElements(); ){ String key = e.nextElement().toString(); System.out.println(key + " […]

Read the complete article »