[opencms-dev] Setting response status from JSP page

Johannes Bornhold bornhold at regio-institut.de
Tue Aug 16 17:09:27 CEST 2005


Hi,

i'm trying to set the HTTP response status code from a JSP page which 
resides in the OpenCMS VFS. Using response.sendError(404) did not work. 

Background: I am generating some dynamic content which might fail. In 
these cases I would like to send an 404 status to prevent the pages from 
beeing indexed by search engines. I did not find a solution to this 
problem.

Thanks for every hint,


Johannes Bornhold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050816/f5651705/attachment.htm>


More information about the opencms-dev mailing list