--à some more info regarding the problem
Passed the "records" parameter from simplesearchservlet.java through query
string (along with from_Advanced parameter set to TRUE) to retain its value
during redirect for the first time. This works fine for first page of
results
but when user clicks next, the pagesize will be zero..so gives the error
Please somebody help me in understanding this search implementation.
Thankyou in advance
Shwetha
shwe shwe <[EMAIL PROTECTED]> wrote: 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
---------------------------------
Ask a question on any topic and get answers from real people. Go to Yahoo!
Answers. -------------------------------------------------------------------------
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