Please post your code within tags.
Have you declared method inside JSP ? What do you want to do after throwing an error in JSP ? If the value of map is null, I suggest you to display a error page with a understandable message.
Tushar (SCJP 1.5)
subject: how to throw error in jsp, if i dont get a value in the map as in below code.