This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
Doubt in forward(request,response)
ChakraPani Margani
Greenhorn
Joined: Aug 19, 2007
Posts: 15
posted
Jul 28, 2008 00:37:00
0
Hi,
I am working in RAD 7.0.
In my
servlet
I am using
getServletConfig().getServletContext().getRequestDiapatcher("abc.jsp").forward(request,response);
My problem is servlet executed with remaining lines even I call the above forward method...
I want to forward to some Jsp at the starting of servlet based on some condition..
But servlet is totally executed even I call this forward at the starting...
Can anybody help me to solve the above problem..
Regards,
ChakraPani.M
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
I like...
posted
Jul 28, 2008 00:39:00
0
getServletConfig().getServletContext().getRequestDiapatcher("abc.jsp").forward(request,response); return;
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Doubt in forward(request,response)
Similar Threads
What is allowed after forward() ?
HELP! Problems with Buffer/Response Committed
Jsp code doubt
Ajax and servlet problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter