hi all

i have a page year.jsp
having
summary details  in months based on some parameters( * request)
in this page 12 months are displayed
now all month has a link related details of that specific month
which go to month.jsp
in month.jsp page
daily reports are displayed  with related url
when go to specific day
entry form of daily data is open in edit mode with data of that day
form has an update button

now i want that when user update the daily details
he return back to year.jsp with the same parameter of ( * request)

i am building url as under in year.jsp

Enumeration e = request.getParameterNames();
 String uri = request.getRequestURI()+"?";
 while(e.hasMoreElements()){
  String param = (String)e.nextElement();
  String[] paramVal = request.getParameterValues(param);
  for(int i=0;i<paramVal.length;++i){
   uri+=(param+"="+paramVal[i]);
   if(i<paramVal.length-1)
    uri+="&";
  }
  if(e.hasMoreElements())
   uri+="&";
    System.out.println(uri)
 }

i want this url to forward after the update of day.jsp
i am passing uri as hidden parameter but it's not passing
full url  but upto first parameter
but display full in System.out.println

any idea??
help me.......
urgent....

niraj

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to