aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question in sendRedirect() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question in sendRedirect()" Watch "question in sendRedirect()" New topic
Author

question in sendRedirect()

reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
When I try to use sendRedirect() in a jsp file, I found content in my original jsp's out.write() is replaced by the new jsp file's. Is there anyway not allowing this replacement? Or could we use other method to avoid the replacement when we want a jsp to call another?


SCJA, SCJP5.0, SCBCD, SCWCD
Kishore Balla
Ranch Hand

Joined: Jun 08, 2005
Posts: 165
You need to use RequestDispatcher.include(req,res) for this


SCJP 5.0 : 88% My Story, SCWCD 1.4 : 94% My Story
kishoreballa.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question in sendRedirect()
 
Similar Threads
sendRedirect displays URL, forward does not?
HttpServletResponse Error
Regarding sendRedirect
Problem with sendRedirect()
request parameter lost with sendredirect() ?