use passworded jsp page to get files
Posted on 2004-04-15
Hey i want to have a jsp page where user can type in a login/password, the jsp page will then just do a simple if(password="blabla") to check access. Now if the password is correct, the jsp page should allow the user (or just send it to the user?) to download a zip file. My question is how do i do the part where jsp gets the file. Can someone provide me with the code. So basically
1)jsp check password
2) if correct password grab file and send it to user to download
3) the file should be in WEB-INF directory so people cant just type in the url and download it.