Nothing should be done in JSP itself.
You may include <jtidy:validationImage/> inside common JSP header to see if the page you are testing is well formatted.
<jtidy:validationImage/>