Hi,
This is mohan..
in my project one module we implemented spring web MVC, in tht application we are giving from date and to date click on create report button,then we will get pdf , so we need to implement one wait page like it shows please..wait..pdf is generated for 1 min ,in mean while the pdf is generated..for tht we are writing one jsp page(wait page) for tht i coded in springcontroler of onSubmit() method in this method before returning to formView in ModelAndView object,this form view is diffrent...before returning the ModelView object i called one jsp page(WaitPage.jsp) using RequestDispatcher of forwarding,...but tht page is not displaying..directly pdf is generated withot waiting...so please can anybody help abt tht..for tht i posts my onSubmit () method code what i wrote

================================================== ========
protected ModelAndView onSubmit(HttpServletRequest request,
HttpServletResponse response, Object command, BindException errors) throws Exception {
SearchCriteria criteria = (SearchCriteria)command;
HttpSession session=request.getSession();
long from_date = criteria.getDateFrom()!=null?criteria.getDateFrom( ).getTime()/1000:0;
long to_date = criteria.getDateTo()!=null?Util.getToDate(criteria ):0;
int iMemberTypeId = Util.getProspectMemberTypeId(criteria.getProspectT ype()).intValue();
session.removeAttribute("reportFileName1");
StringBuffer url = new StringBuffer();
url.append("http://localhost:8080");
// url.append(request.getServerName());
Integer iMemberId= (Integer)session.getAttribute(SignUpConst.SIGNUP_A DMIN_ID);
if(iMemberId==null)
iMemberId=new Integer(-1);
if(WebUtils.hasSubmitParameter(request, "createReport")) {
if(criteria.getDateFrom() == null || criteria.getDateTo() == null ){
request.getSession().setAttribute("message", "You must enter Date From and Date To in the Follow Up Date Range section to produce a report.");
return new ModelAndView("redirect:contactSearchForm.html?type ="+criteria.getProspectType()+"&action="+criter ia. getAction());
}
request.setAttribute("useraction", "createreport");
session.setAttribute("searchCriteria",criteria);
ProspectWaitPage.mapReportId.put(iMemberId, new String("false"));
session.setAttribute("requestTime",new Long(System.currentTimeMillis()));
String strUrl = "/servlet/com.signup.prospect.webapp.action.ProspectWaitPage ";
RequestDispatcher rd = request.getRequestDispatcher(strUrl);
rd.forward(request,response);


// response.sendRedirect("http://" + request.getServerName()+ strUrl);
//+":"+request.getServerPort()

String res_clause = Util.setParameters(criteria);
String strReportFileName = Util.generateProspectFollowUpReport(criteria.getOr gId(),iMemberTypeId,from_date,to_date,res_clause,t rue);
criteria.setReportFileName(strReportFileName);
request.getSession().setAttribute("criteria", criteria);
if(strReportFileName==null){
request.getSession().setAttribute("message", "Report could not be generated.");
}
else{

ProspectWaitPage.mapReportId.put(iMemberId, new String("true"));
ProspectWaitPage.mapReportName.put(iMemberId,strRe portFileName );

String strReportFileName1 = url.toString()+strReportFileName;
request.getSession().setAttribute("reportFileName1 ",strReportFileName1 );
}

// RequestDispatcher rd = getServletContext().getRequestDispatcher(strUrl);
// rd.forward(request,response);
session.setAttribute("reportGenerated", "true");
return new ModelAndView("redirect:contactSearchForm.html?type ="+criteria.getProspectType()+"&action="+criter ia. getAction());
==================================================
please observe this code in the above highlighted code
String strUrl = "/servlet/com.signup.prospect.webapp.action.ProspectWaitPage ";
RequestDispatcher rd = request.getRequestDispatcher(strUrl);
rd.forward(request,response);

i forwarded to one Controller in tht controller i wrote jsp using ServletOutPutStream of out.println("-----");
methos
so plz solve this ASAP

its very very urgent for me