Skip to content

Commit

Permalink
#39 changes for view resume
Browse files Browse the repository at this point in the history
  • Loading branch information
4navdeep committed Aug 1, 2023
1 parent 16c9aa9 commit fabe6bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/Servlets/ResumeServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class ResumeServlet extends HttpServlet {

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
System.out.println(request.getParameter("username"));
String username = request.getParameter("username");
String prefix = System.getProperty("user.dir") + "/resources/resume/";
String prefix = getServletContext().getRealPath("/WEB-INF/classes/Resume" );
String filename = username + ".pdf";

File file = new File(prefix, filename);
Expand Down

0 comments on commit fabe6bc

Please sign in to comment.