Monday, July 18, 2011

Hate JSP?

Here is Thymeleaf

Thymeleaf is a Java library. It is an XML / XHTML / HTML5 template engine that can work both in web and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of web applications, but it can process any XML file even in offline environments.

It provides an optional module for integration with Spring MVC, so that you can use it as a complete substitute of JSP in your applications made with this technology, even with HTML5.

The main goal of Thymeleaf is to provide an elegant and well-formed way of creating templates. Its Standard and SpringStandard dialects allow you to create powerful natural templates, that can be correctly displayed by browsers and therefore work also as static prototypes. You can also extend Thymeleaf by developing your own dialects.

Get started here

Friday, January 21, 2011

HTML is a roller coaster

Yesterday, one of my colleague was struggling to bring his menus and submenus to the correct look. Struts was used for the presentation layer.

He approached me for help after spending hours on the problem, when I looked into the code he was using

His code was looking like

<li<logic:equal name="xxx" value="0">class="on"</logic:equal>

adding a space before the logic:equal tag did the fix. HTML could be the simplest, sometimes the TOUGHEST. :-)

I'm Back

Planning to blog again after a very long time...

Wednesday, April 21, 2010

Where does eclipse store recent workspace details

I knew that eclipse creates a .project file for every project that I create. I was trying to bundle my eclipse(I have lot of plugins) for my team. Who ever used it were getting the path of my default workspace which actually will not be available in their machine.

So where does eclipse store this default or recent workspace details?
You can find it under eclipse_home/configuration/.settings/org.eclipse.ui.ide.prefs file

How to get Spring Plugin for your Eclipse

Spring IDE

Spring IDE is an eclipse plug-in that helps in developing Spring Application. First we will see how to install the Spring IDE and later we will create our first Spring project using it. I am using Eclipse 3.4.1 version to demonstrate this.

To install Spring IDE, Go to Help -> Software Updates.


Click the "Add Site" button and enter "http://springide.org/updatesite" in the Add Site popup.


Select all the Spring IDE features and click Install.