Wednesday, August 22, 2007

Excellent Y! Support

The closure Y! photo's was indeed a bad news. I was totally in love with their interface and obviously unlimited storage:P The day the news came in, I decided to move my photos ( > 2 GB ) quickly ( read: bad judgment ) to flickr. The decision was pretty much based on Flickr's brand name over other options. After the image transfer, I realized that I would have been better off using either Shutterfly/SnapFish service which offers unlimited storage.

But as expected, after doing the photo transfer to Flickr, my Y! photo account got locked. ( It was mentioned in their FAQ that the transfer is a one time only operation). I shot a mail to Y! support ( with the least expectation ) on whether it is possible for them to reactivate my Y! account so that I could migrate to another photo service.

I received a mail from their support within 2 days and was a positive reply :)


Thank you for writing to Yahoo! Photos.

Thank you for contacting us regarding your attempted move of your Yahoo! Photos to another service. We are very sorry to hear that you are having problems moving to the affiliate of your choice.

We have released your Yahoo! Photos account so that you can attempt the move again. If you are having continuing problems moving to the same affiliate, you may want to try moving to a different affiliate or simply downloading your images to your computer yourself and then manually uploading them to the affiliate of your choice.

If you have any additional questions or concerns please let us know as soon as possible as we'd be more than happy to help!


We appreciate your time in writing to us -- your input helps us to identify ways to help make this the easiest and most hassle-free way to transition all of your favorite photos to one of these great services above!

Thank you again for contacting Yahoo! Photos.


Jamie Lynn

Yahoo! Photos Customer Care

This kind of support is truly amazing and very much appreciated!

PS: I moved my photos to ShutterFly. My new preference is Google Photos but sadly they don't provide "free" unlimited storage :(

Friday, August 17, 2007

Struts2 + Custom URLs

For the web application that I was building using Struts, I needed custom ( read: cool ) URLs.

Traditionally, struts URL would be of the format
where do is the action extension.

But rather, I wanted a clean URL like

To achieve this, I had to do the following

-> In my custom struts.xml, I added a line which overrides the default ActionMapper class

Write the custom class which should extend ActionMapper

With a custom Mapper Class, the scope of formats of URL is limited only by imagination :P
To take up an example, lets say we want to have a "clean" search URL
To achieve the above, we need the following
  • Action class called Search and corresponding function called getResults(). This class also needs to implement ServletRequestAware to get hold of the ServletRequest ( which would contain the search parameters )
  • In the custom Action Mapper Class, we would need to use regex ( split on "/" ) to understand the URL and if we find the first token is "search", we could set
request.setAttribute(SEARCH_KEY, searchParameters);