Raef,
It's considered bad practice to have any code in a JSP. It's considered horrible practice to have a sleep statement in a JSP.
A JSP is supposed to be the view layer. All logic should be done in a
servlet (or code called by a servlet) before forwarding to the JSP.
What are you trying to accomplish? Maybe we could suggest a better way.