[TACHYON-139] WebUI--Add the downloading file feature on the webUI

add download function to browse page
You can use the same servlet, was proposing that the URL used slashes vs
query params.
On Sep 16, 2014 1:33 AM, "Juan Zhou" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/web/WebInterfaceBrowseServlet.java:
>
> > @@ -173,9 +212,13 @@ protected void doGet(HttpServletRequest request, HttpServletResponse response)
> >          } else if (offset > clientFileInfo.getLength()) {
> >            offset = clientFileInfo.getLength();
> >          }
> > -        displayFile(currentFileInfo.getAbsolutePath(), request, offset);
> > -        request.setAttribute("viewingOffset", offset);
> > -        getServletContext().getRequestDispatcher("/viewFile.jsp").forward(request, response);
> > +        if (opParam != null && "DOWNLOAD".equals(opParam)) {
>
> I don't understand what you try to say? I have used the same servlet to
> view a file and download a file and the two operations are inherently
> similar, so I add an "op" parameter to differ this two operations.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/431/files#r17588945>.
>