How to configure multiple handlers in a Spring MVC web application

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…

Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits How to configure multiple handlers in a Spring MVC web application
  • NewsVine
  • Smarking
  • Yahoo! Buzz

If you enjoyed this post, make sure you subscribe to my RSS feed!

DropBox rings in new year with sleek new web interface.

DropBox LogoOne 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…

Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits DropBox rings in new year with sleek new web interface.
  • NewsVine
  • Smarking
  • Yahoo! Buzz

If you enjoyed this post, make sure you subscribe to my RSS feed!

Achieve more by typing less, use PhraseExpress.

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…

Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits Achieve more by typing less, use PhraseExpress.
  • NewsVine
  • Smarking
  • Yahoo! Buzz

If you enjoyed this post, make sure you subscribe to my RSS feed!

How to remove Ctrl-M (^M) from Unix files?

no_caret_m How to remove Ctrl-M (^M) from Unix files?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…

Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits How to remove Ctrl-M (^M) from Unix files?
  • NewsVine
  • Smarking
  • Yahoo! Buzz

If you enjoyed this post, make sure you subscribe to my RSS feed!

ColorPix. Free utility to determine the hex code of any color.

ColorPix

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.

Share and Enjoy:
  • StumbleUpon
  • Digg
  • del.icio.us
  • Reddit
  • Sphinn
  • blinkbits ColorPix. Free utility to determine the hex code of any color.
  • NewsVine
  • Smarking
  • Yahoo! Buzz

If you enjoyed this post, make sure you subscribe to my RSS feed!