This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
1.One Static page with hyperlink
2. this hyperlink will allow user to connect to some Unix server and access a report from a particular directory.
3. This should allow the user to download that file (xls) locally.
4. How can I authenticate user while connecting to this Unix server.
Stefan's method will certainly work. I tend to disable ftp on my servers for security reasons but that's also because I find I don't really need it bad enough to really lock it down to minimal access.
Pretty much any of the http security methods will work in this case I'd probably use basic auth as it's the easiest to set up. It's a bit different on different webservers but a google search for basic auth or htpasswd gives me lots of hits. You didn't mention which web server you are using so more details will probably just be confusing.
Assuming you don't have very many authenticated users either of these is fine but you have to set something up for each one.
It's not what your program can do, it's what your users do with the program.
Assuming the web-app is intend to run in LAN environ, you could create a JSP/servlet that would LIST all files in the mentioned folder of that server. Clicking the link could direct to a JSP/servlet which specifies
2. sets header part (ie. filename),
3. Reads file and writes to the response (standard file writing while loop)
4. flush and close response