maanantai 6. heinäkuuta 2009

Spring controller and redirecting

Two ways to use redirecting. First one uses the url mapping configured in an xml file. The url seems to be the same for the client (or actually is, depends on the situation). The second one tells the client to redirect to a certain page, so the url in the client changes accordingly.

1. Use the Spring url mapping
Map model = new HashMap();
model.put("article_id", "get it from db?");
return new ModelAndView("article", model);


2. Tell the client to go to a certain page
return new ModelAndView(new RedirectView("index.jsp"));

sunnuntai 5. heinäkuuta 2009

lauantai 4. heinäkuuta 2009

Utrecht football stadium

utrecht_footballstdTaken from the front of the stadium while running. Actually looks much nicer from the other side, because of the water (which you can't see in these pictures).

utrecht_footballstd2

sunnuntai 3. toukokuuta 2009

Karaoke Utrecht style

A boat karaoke in a canal of Utrecht :)

[caption id="attachment_22" align="alignleft" width="510" caption="Karaoke Utrecht style"]Karaoke Utrecht style[/caption]

torstai 16. huhtikuuta 2009

keskiviikko 18. maaliskuuta 2009

My new notebook

hp_2230sI bought a new HP 2230s 12" notebook today. Vista pre installed (going to change to kubuntu as soon as possible), but still a very nice package.