Tuesday, September 29, 2009

Wasted whole Day in FreeMaarker Issue

Yesterday I was trying to configure FreeMarker and CustomTags in a single application. No problems in CustomTags but I have wasted my whole day in getting the FreeMarker's Template path.

I was constantly getting the following error "javax.servlet.ServletException: Error:IOException while writing to clientTemplate firstftl.ftl not found." and the day ends. That was really frustating for me ;(

Some of my colleagues also tried their luck, but in vain !. Before leaving my desk at the day end I have posted this issue on FreeMarker Forum and left.

Today I have got the hint from that forum about the Templates Classpath to be set somewhere in properties file or xml's. After googling a bit I have found that I forgot to set the Template Path property in FreeMarker Configuration.

Its working fine now ... started my day with a little success :)


Monday, September 28, 2009

Using Custom Tag

After working for a whole week on custom tags, I have face number of basic issues that are now resolved. The issues are:

  • I have'nt package the "java class" due to which .tld file not resolving the tag.
  • I have created my own Tag interface and use it in my java class. This causes following exception "The method reuse(Tag) in the type TagHandlerPool is not applicable for the arguments"
Now the java file is packaged and the Tag interface was implemented from the following package "javax.servlet.jsp.tagext.Tag". Its fine now ;)

Custom Tags

Today I have learned to use "Custom Tags" in JSP !!

Monday, September 21, 2009

Suzuki in Karachi













ACA Solution Link

I have found the Treasure ;)

This link contains all the solutions of Advanced Computer Architecture Book of Morris Mano 3rd Edition.


Working on Dhtml Goodies

I am using dhtml goodies in my web application to reuse its dynamic components.

After working on the form validation it seems good and provides lots of features specially including Position Absolute Validation. One thing that is disturbing me here is the validation-attribute "minlength". I have found that the "minlength" attribute does not works if the "required" value is missing.

< .... maxlength="10" minlength="3" type="text">.

In this case the minlength does not work. Adding the required value makes it work i.e.

< .... maxlength="10" minlength="3" type="text" required>.


Today i have used the dhtml goodies library in my project. It contains many different valuable javascript/html components that requires lot of hard work to create.

The Tree component and the Form Validation is used.

Sunday, September 13, 2009


Today I have Learned that "FreeMarker is a Java Based Templating Engine". It is a tool to generate text output (anything from HTML to auto-generate code) through Templates.

Thursday, September 10, 2009


MAJU Logo:

(Need while creating assignments/projects)

Unobstrusive vs obstrusive

Today I have learned the difference between Unobstrusive and Obtrusive Javascript :)

Wednesday, September 9, 2009