Welcome to the JavaRanch, Gokmen! There's a "Code" button on our message editor that can wrap tags around sample
java code and XML. It makes it easier to read.
Personally, I don't like pop-up windows and for that matter, my browser isn't set to open new windows.
However, if you must do so, you need to specify the pop-up window target on your commandLink the same way you would on an HTML "<A HREF=>" tag.