you say that your
jsp is in this folder
jsp/pages/products/aaaa.jsp
what about the images?
are they in jsp/pages/products/images?(or)
have you placed it in jsp/images?
if u have placed it in jsp/images then use relative path for that images as ../../images/search.gif.
otherwise the code should work fine.
Hopefully it should work!
Regards
Venkatesh S