How do you check for Current Page status?

some things to look at:

http://snippets.dzone.com/posts/show/2016

http://snippets.dzone.com/posts/show/687
http://rubysnips.com/body-id-s