Project

General

Profile

« Previous | Next » 

Revision 9484

include metacat context in the redirect after successful harvester registration login. https://projects.ecoinformatics.org/ecoinfo/issues/6936

View differences:

src/edu/ucsb/nceas/metacat/harvesterClient/HarvesterRegistrationLogin.java
25 25
package edu.ucsb.nceas.metacat.harvesterClient;
26 26

  
27 27
import java.io.PrintWriter;
28

  
28 29
import javax.servlet.ServletException;
29 30
import javax.servlet.http.HttpServlet;
30 31
import javax.servlet.http.HttpServletRequest;
31 32
import javax.servlet.http.HttpServletResponse;
32 33
import javax.servlet.http.HttpSession;
34

  
33 35
import edu.ucsb.nceas.metacat.AuthSession;
36
import edu.ucsb.nceas.metacat.properties.PropertyService;
37
import edu.ucsb.nceas.metacat.util.SystemUtil;
34 38

  
35 39

  
36 40
/**
......
117 121
            httpSession = req.getSession(true);
118 122
            httpSession.setAttribute("username", user);
119 123
            httpSession.setAttribute("password", passwd);
120
            res.sendRedirect("/harvesterRegistration");
124
            String context = PropertyService.getProperty("application.context");
125
            res.sendRedirect("/" + context + "/harvesterRegistration");
121 126
          }
122 127
          else {
123 128
            out.println("Invalid login");

Also available in: Unified diff