This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in forward(request,response)

 
ChakraPani Margani
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic