okay how r u people?? im back with my problems!! let me explain it , well there is a jsp page where i have say 5 check boxes and correspondingly to the check boxes i have some links to documents (each check box has one link to a particular document) , what i need to do is that if a user selects the check box(might be he selects 1, 2 or all of the check boxes) then upon clicking a button what should happen is that all of these documents found in the links should get bundled together and then a single link should appear on the jsp page which by clicking on it should lead to a download of all the selected documents !!! sounds messy is it??? can u give some ideas on this!!
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Yes it does sound messy i agree. Here's an alternative scenario : The user clicks on as many checkboxes he wants and this after processing in a servlet or JSP takes him to a page with a link for each download he selected. so if he chooses 1 & 3 , the links associated with checkbox 1 & 3 are displayed in the next page. Now to the part you've been waiting for : how will you read the parameters if they all have the same name ? check this page : http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/servlet/http/HttpServletRequest.html for a method called getHeaders(String ) where you specify the name of the parameter you want and it will return all the values this parameter has in the header as a Java Enumeration object. if you need more clarification reply back. ------------------ KaReEm
<b><i>KaReEm</i><br /><ul type="square"><li>SCJP-Free Range Web Developer <br /></ul></b>
Joined: Aug 09, 2001
thanks a lot karem , im have just started to hackin and i will keep updating about my problems!!!