• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting from a check box

 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot karem , im have just started to hackin and i will keep updating about my problems!!!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic