Try and run the following code :
file name -> setstatus.jsp
code for setstatus.jsp
===========================================
<html>
<title>Calling setStatus</title>
<body>
Hello Calling response.setStatus() method !
<%
response.setStatus(response.SC_FORBIDDEN);
%>
</body>
</html>
==========================================
Assume this helps and just a request, next time first try it out at your end
and if you can't get it to work then post to the list.
Also remember the golden rule that "All JSP's are compiled into Servlets !".
Have a nice day.
With regards,
Sachin S. Khanna
http://www.emailanorder.com
----- Original Message -----
From: Abhijeet Surve <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 6:18 AM
Subject: response.setStatus()----URGENT
> Hello...
>
> Can response.setStatus be directly used in a JSP....?
>
> Answers with small examples will be highly appreciated...
>
> thanx
> Abhi
>
>
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets