This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes HttpServletResponse#sendRedirect()  doesnot work from servlet when the URL is rehitted/refreshed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "HttpServletResponse#sendRedirect()  doesnot work from servlet when the URL is rehitted/refreshed " Watch "HttpServletResponse#sendRedirect()  doesnot work from servlet when the URL is rehitted/refreshed " New topic
Author

HttpServletResponse#sendRedirect() doesnot work from servlet when the URL is rehitted/refreshed

prash patil
Ranch Hand

Joined: May 26, 2008
Posts: 40
Hi Ranchers,

I am facing one problem.
My application is being invoked through one tool called CTI.
Based on the url hit one servlet get called every time. Then in that servlet based on the the parameter
I am creating faces url. And then using response#sendRedirect() i am redirecting it to the jsf/faces page.

For first request it works perfectly fine. But
The problem is when the page is reloaded using CTI the old url i.e. URL with servlet name gets called and
and again from the flow the servlet creates faces url and using sendRedirect() it calls .faces url.
And in debuging found that after the call sendRedirect() there is not call made to FACES servlet class.

Inshort.
First url which get hited first time


The URL get conveted by MyServletServlet class to


And when clicked on RELOAD then again the

used and the control come to service method of the MyServletServlet class but
after line response.sendRedirect(queryStr.toString()); the control get vanished.

queryStr = pages/ps_corr_history.faces?PsAction=360&payhisttms_CF=&CaseId=&UserId=AGENTSP&MsgId=752009.123.123.12.


Thanks in advance.

Regards,
PP.


 
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: HttpServletResponse#sendRedirect() doesnot work from servlet when the URL is rehitted/refreshed
 
Similar Threads
jsp, servlet-mapping, forward request problem
How to handle java.lang.NullPointerException in Struts2?..
StateFulSessionBean Problem
getting exception in JSF Tutorial of JR
<to-view-id> Element