Published by Zaheer
In Spring MVC, DispatcherServlet relies on handler mapping to determine which controller the request should be sent to. All handler mapping classes in Spring implement org.springframework.web.servlet.HandlerMapping interface. Spring distribution contains following four implementation of HandlerMapping interface.
- BeanNameUrlHandlerMapping
- SimpleUrlHandlerMapping
- ControllerClassNameHandlerMappign
- CommonsPathMapHandlerMapping
BeanNameUrlHandlerMapping is the simplest of all and DispatcherServlet looks for this mapping by default.
You can use any one of these handler mappings in your application by just configuring a bean in your application context file. For e.g; to use BeanNameUrlHandlerMapping you will have a bean declaration similar to
<bean name="/login.htm" class="com.zparacha.web.LoginController"/>
But can you use more than one handler mappings in an application? Read more…
If you enjoyed this post, make sure you subscribe to my RSS feed!
. Jan 04, 2009
Filed under: Java, Spring
Tags: handlermapping, Java, mvc, Spring
Published by Zaheer
One of the most popular file-sharing applications DropBox has a new and improved web interface. It now offers a new and improved navigation. They have also transformed their FAQ section into a comprehensive help center. I think the most important feature is the ability to drag and drop files and folders on the web interface.
Some of the improvements are Read more…
If you enjoyed this post, make sure you subscribe to my RSS feed!
. Dec 31, 2008
Filed under: Best Sites, Best Software
Published by Zaheer
If you do a lot of repetitive typing, you may want to consider using PhraseExpress. This recently updated text-replacement application can save you a lot of key strokes.
PhraseExpress saves you countless keystrokes and expands custom abbreviations into frequently used text snippets. Typing ‘btw’ expands into ‘by the way’ or typing ‘excel’ can open your spreadsheet program in a snap.
Basically, you define small text snippets with full text once in the the application and then PhraseExpress expands them to full text every time you type the text snippet.
Some of the features include: Read more…
If you enjoyed this post, make sure you subscribe to my RSS feed!
. Dec 29, 2008
Filed under: Best Software
Tags: phraseexpress, text replacement
Published by Zaheer
Sometimes when you upload or FTP files from a Windows system to a UNIX box you will see ^M at the end of each line. ^M is the UNIX equivalent of DOS line break. Not only does it not look pretty, this extra character may break all sorts of scripts that you try to run on your file. So how do you remove ^M? Here are two ways to get rid or ^M (Ctrl-M) from your files. Read more…
If you enjoyed this post, make sure you subscribe to my RSS feed!
. Dec 09, 2008
Filed under: Programming
Tags: Ctrl-M, ^M
Published by Zaheer

ColorPix
Ever wanted to use a shade of color you found on a website or an image on your own website? You can find out the text color, background color etc. by looking at the source code of the web page (most often going through the stylesheet documents). In case of images you will need to open the image in an image editor program (Photoshop, GIMP etc). But an easy way of determining the exact hex code of any pixel on your screen is
ColorPix
This small and free executable utility is a useful little color picker that grabs the pixel under your mouse and transforms it into a number of different color formats.
The built-in magnifier function allows you to zoom in on your screen to ensure that you click on the color you really want. Just click the mouse button or press a key and the ColorPix will copy the hex code of that color to your clipboard.
Enjoy.
If you enjoyed this post, make sure you subscribe to my RSS feed!
. Nov 24, 2008
Filed under: Best Software
Tags: ColorPix