hi,
when I try to forward the request from the
servlet to the jsp, request is going upto the servlet
and it is even getting an object of requestDispatcher
and forwarding it. I don't understand two things here.
1. Where should I place the jsp and the servlet?
(mind you, the url in the
getRequestDispatcher(url) should start with an "/")
2. How should I send the response from the jsp to
the browser??
Should I use the "reponse" forwarded from the
servlet. If so how to do that?
Can anybody help me in this?
thanx,
mohan
-----Original Message-----
From: Raghunath Raman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 29, 2000 9:46 PM
To: [EMAIL PROTECTED]
Subject: Re: Forwarding the request to jsp
try the following.
1. the jsp/servlet is in the same directory as the
calling servlet.
2. there should be an entry in the mapping.properties
file for the
servlet.......
PLease check....
regards
-----Original Message-----
From: A mailing list about Java Server Pages
specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mohan
Nai
Sent: Friday, June 30, 2000 6:27 AM
To: [EMAIL PROTECTED]
Subject: Forwarding the request to jsp
hi,
I was just wondering if someone would help me out in
forwarding the request from a servlet to a jsp.
I am using
getRequestDispatcher(Url).forward(req,res) to forward
the request.
where Url is the path for the jsp.
But I am unable to get the reponse form the jsp.
It gives me an Error:404
Can anybody help me in this.
Thanx,
mohan
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from
anywhere!
http://mail.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with
body: "signoff
JSP-INTEREST".
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".
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
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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