Frank, Michael and Dave, > On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said: > >> The last thing I can think of is a hook, a rope and some soap.
Is this the only option left...............Did u guys find any problem in the code? Thanks On 2/16/06, zahid mohammed <[EMAIL PROTECTED]> wrote: > > Finally here are the relevant portions of the jsp code. > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> > <[EMAIL PROTECTED] import="witr.domain.User"%> > <% > response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 > //response.setHeader("Cache-Control", "no-store, no-cache, > must-revalidate"); > //response.addHeader("Cache-Control", "post-check=0, pre-check=0"); > response.setHeader("Pragma","no-cache"); //HTTP 1.0 > response.setDateHeader("Expires",-1); //prevents caching > response.addHeader("Cache-Control","no-store"); //HTTP 1.1 > > %> > > <html> > > <head> > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> > <META HTTP-EQUIV="Expires" CONTENT="-1"> > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> > <link rel="stylesheet" type="text/css" href="wir.css"> > > <script language="JavaScript"> > > > function openDoc1(candidateNo) > { > > alert("The candidates number obtained is "+candidateNo); > var currentposition = document.forms[0].currentposition.value; > > var doc1 = window.open > ('./AccessDoc1.do?candidateNumber='+candidateNo+'¤tposition='+currentposition,'selecteddoc1','scrollbars=yes,resizable=yes,width=800,height=600'); > > } > function openDoc2(candidateNo) > { > > alert("The candidates number obtained is "+candidateNo); > var currentposition = document.forms[0].currentposition.value; > var doc2 = window.open > ('./AccessDoc2.do?candidateNumber='+candidateNo+'¤tposition='+currentposition,'selecteddoc2','scrollbars=yes,resizable=yes,width=800,height=600'); > > } > function getNext() > { > alert("currentposition is "+document.forms[0].currentposition.value); > var nextposition =parseInt(document.forms > [0].currentposition.value)+10; > alert("nextposition is "+nextposition); > > document.form1.action='./GetOtherSet.do?nextposition='+nextposition+'&rand='+parseInt > (Math.random()*99999999); > > document.form1.submit(); > } > > function getPrevious() > { > alert("currentposition is "+document.forms[0].currentposition.value); > var nextposition=parseInt(document.forms[0].currentposition.value)-10; > alert("nextposition is "+nextposition); > > document.form1.action='./GetOtherSet.do?nextposition='+nextposition+'&rand='+parseInt > (Math.random()*99999999); > > document.form1.submit(); > } > </script> > </head> > <body width="775" > > <[EMAIL PROTECTED] file="userheader.jsp"%> > <form name="form1" method="post"> > <table > > <tr><td valign="top"> > > > > <logic:iterate name="Users" id="User" indexId="index" > > <table > > <tr> > <td><span class="submenu">FirstName:</span><bean:write name="User" > property="firstName" /></td> > <td><span class="submenu">LastName:</span><bean:write name="User" > property="lastName" /></td> > </tr> > > <tr> > <td><a href="javascript:void(0)" > onClick="javascript:openDoc2('<bean:write name="index"/>');">Doc2</a></td> > <td><a href="javascript:void(0)" > onClick="javascript:openDoc1('<bean:write name="index"/>');">Doc1</a></td> > </tr> > > </table> > <hr/> > </logic:iterate> > > > </td> > </tr> > > </table> > <% String currentpositionvalue = > (String)request.getAttribute("currentposition"); > List Usersinrequest = (List)request.getAttribute("Users"); > User firstCandidate = (User)Usersinrequest.get(0); > System.out.println("The First candidates first name is > "+firstCandidate.getFirstName()); > out.println("First candidates first name is > "+firstCandidate.getFirstName()); > > List allUsers = (List)session.getAttribute("AllUsers"); > > %> > <input type="hidden" name="currentposition" > value="<%=currentpositionvalue%>" /> > <table > > <tr> > <%if(allUsers.size()-Integer.parseInt(currentpositionvalue)< > allUsers.size()){%> > <td align="left"> > <a href="javascript:void(0)" onclick="javascript:getPrevious()"> > <img border="0" src="/images/GMPPrevOn.gif" width="16" height="15" > ></img> > Previous</a> > </td> > <%}%> > <%if(Integer.parseInt(currentpositionvalue)+10<allUsers.size()){%> > <td align="right"> > <a href="javascript:void(0)" onclick="javascript:getNext()"> > Next<img border="0" src="/images/GMPNextOn.gif" width="16" height="15" > ></img> > </a> > </td> > <%}%> > </tr> > </table> > > </form> > </body> > > <head> > <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> > <META HTTP-EQUIV="Expires" CONTENT="-1"> > <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> > </head> > </html> > > PLEASE HELP!!!! > > Thanks > > > > On 2/16/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > > > Frank W. Zammetti wrote: > > > On Thu, February 16, 2006 4:51 pm, Michael Jouravlev said: > > > > > >> The last thing I can think of is a hook, a rope and some soap. > > >> > > > > > > Why do I get the feeling this just turned into a [Friday] post?!? ;) > > LOL > > > > > I was with him until the soap, then I was just scared. > > > > Dave > > > > > > >