Hi ,
  I am trying to add a feature where the user can chose the number of ecords to 
be displayed in the search result. There is already function to set the 
pagesize in Query args. So if we pass the dropdown menu value from advanced.jsp 
to the simplesearchservlet.java, we can use the set function to set the 
pagesizze. Am I right? 
   
  If right, I am having trouble in passing va;lues from JSp to servlet.
   
  I have added following lines in advanced.jsp
  <select name="records">
       <option value="10" selected>10 records per page</option>
         <option VALUE="20">20 records per page</option>
          <option VALUE="30">30 records per page</option>
          </select>
   
  And in the simplesearchservlet.java, added the following lines
   
              int r=0;
          String recordstring=request.getParameter("records");
          if(recordstring!=null)
          r=java.lang.Integer.parseInt(recordstring);
          if(r!=0)
                qArgs.setPageSize(r);
   
  But the servlet is not getting the values.
   
  Please give me some suggestions. And also I was planning to have a sort 
option for advanced query results.Any  suggestions are welcome.
   
  Thank you
  shwetha

                
---------------------------------
Now you can have a huge leap forward in email: get the new Yahoo! Mail. 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to