Wednesday, March 27, 2013

extra white space in textarea

<textarea>
<c:forEach var="item" items="${items}">
<c:out value="welcome"/>
</c:forEach>
</textarea>

This gives unnecessary white spaces in the text area. Remove the extra white space between textarea tags. Although this might sound crazy, this works.

<textarea><c:forEach var="item" items="${items}"><c:out value="welcome"/></c:forEach></textarea>



Friday, March 15, 2013

jmagick configuration


  1. Go to http://downloads.jmagick.org/6.3.9/
  2. Download ImageMagick-6.3.9-0-Q8-windows-dll.exe and jmagick-win-6.3.9-Q8.zip.
  3. Install the exe file. This will install ImageMagick which is a prerequisite for JMagick to work.
  4. Extract the zip file. This will give jmagick.dll and jmagick.jar
  5. Copy the jmagick.jar to you lib folder and include it in the classpath
  6. Copy the jmagick.dll to the root installation directory of ImageMagic and add it as an entry to the PATH environment variable

Tuesday, March 5, 2013

xmlbeans runtime error NoSuchMethodError


You might get this run time error when you have two copies of proj-xmlbeans.jar on your classpath, one of which is a old one. 

check your APP-INF directory. In my case, APP-INF is the culprit. It has the new generated xmlbeans version and the old one as well.