Hi,

Use a <jsp:forward> tag for server-side redirect (i.e. the client won't
be aware of the redirection).  For client-side redirect use:

      response.setStatus(response.SC_MOVED_TEMPORARILY);
      response.setHeader("Location", Url);

Which will cause the client to automatically fetch the new url.

Hope this helps,

--Amos Shapira
WebCollage

> -----Original Message-----
> From: Jinfeng Ni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 4:37 PM
> To: [EMAIL PROTECTED]
> Subject: How to Call a Servlet in .JSP?
>
>
> hi,
>    I want to call a servlet in JSP ,but I do not know how to
> do it ? Can anybody give me an example(to call "/servlet/Hello")?
>    Thanks advance!
>
> Best Regards!
> Jinfeng Ni
>
> _____________________________________________
> һ·�����㣬��һ��ҲԸ�⣡
> --Ϊ��ϲ����֧�ֵ�263�׶����ߣ�http://www.263.net��ͶһƱ��
> ��ҪͶƱ����http://fsurvey.cnnic.net.cn/survey/index.html��
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to