Viral Patel

Eclipse: This project needs to migrate WTP metadata

Eclipse: This project needs to migrate WTP metadata
Sometimes Eclipse gives weird errors that you have no clue why is coming. For example, recently I got this strange error in eclipse's Problems view.This project needs to migrate WTP metadataTo remove this error, all you have to do is to re-validate the project.Select the project that you want to validate. Right-click the project and then ...

Spring MVC HashMap Form Integration example

Spring MVC HashMap Form Integration example
Spring MVC provides powerful way to manage form inputs. It also provides form validation functionality which is easy to integrate in any application. But other than the normal form bean mapping, recently I had a requirement to map dynamic values like key-value pairs in an HTML form and retrieve the same in Spring Controller. So basically HashMap came to rescue.Let us see how ...

Maven: How to Remove/Ignore Transitive Dependency

If you use Maven in your project for dependency management and if you use it a lot then sometimes you get into weird classpath issues where more than one version of JAR is loaded. Most of times I have got into issues related to cglib library. If two versions of cglibs, like cglib-2.1.1.jar and cglib-nodep.jar ...

Android: Take Emulator Screen Shots in Eclipse

Android: Take Emulator Screen Shots in Eclipse
If you are an Android developer then you are already taking lot of screen shots of your app. For documentation purpose or for putting it in Google Play market. Taking screen shots of Android in phone is easy in today's smart phones like Samsung Galaxy series. But most of the time we would need to grab the screen from Android emulator.Here's a simple but ...

How to convert Javascript Arrays to CSV (Comma separated values)

Let's see a small code snippet in Javascript that converts JS arrays in Comma separated values. It is also possible to convert an array to delimited text where one can choose the separator.var fruits = ;var str = fruits.toString();//print str: apple, peaches, oranges, mangoesThe toString() method converts an array into a String and returns the result. The returned string will separate the elements in ...

jQuery :not() selector example

jQuery :not() selector example
It's been a while since I wrote about JQuery. I am spending most of my time these days on backend technologies. Recently while working on a typical requirement on UI, I had to play with some tricky JQuery selectors.Typically, most of the times we uses JQuery's class selectors or id selectors for example:$('#someid').hide(); $('div#container').css('height', '100%');$('.someclass').hide(); $('div.entry').css('height', '100%');But recently I had a requirement where I had to ...

Struts2 + FreeMarker Tempalte (FTL) Integration example

Struts2 + FreeMarker Tempalte (FTL) Integration example
Welcome to Freemarker Tutorial Series. In previous post we created Spring MVC based Hello World Freemarker Template example. We learned few APIs of freemarker and also how to integrate it with Spring MVC based application. Following are the list of tutorials from Freemarker tutorial series.Today we will create a Struts2 based application that uses Freemarker FTL as view instead of JSP. This would give ...

Spring MVC + FreeMarker (FTL) Integration example

Spring MVC + FreeMarker (FTL) Integration example
Welcome to Freemarker Tutorial Series. In previous post we created Servlet based Hello World Freemarker Template example. We learned few APIs of freemarker and also how to integrate it with Servlet based application. Following are the list of tutorials from Freemarker tutorial series.Today we will create a Spring MVC based application that uses Freemarker FTL as view instead of JSP. This would give you ...

Android: Speech To Text using API

Android: Speech To Text using API
Android has a very cool feature that still many developers dont know. Apps like Any.DO uses speech to text conversion feature quite creatively. In today's world of Siri, voice commands are of utmost importance. Android natively provides feature of Speech to Text so why not to use it in our app!I will show you how to use Android's Speech to Text API in an application.Let's ...

Eclipse resolve “resource is out of sync with the filesystem” permanently

Eclipse resolve
If you are a regular Eclipse user than you might have got this error many times. The error simply says, "you've made changes in files in your workspace from outside eclipse". The simplest solution would be to select the project and press F5 (Right click -> Refresh). This will re-sync any external changes to the file system and eclipse would now know what exactly is ...
Page 3 of 3212345...102030...Last »