import javax.servlet.http.HttpServletResponse;
import org.cacert.gigi.GigiApiException;
+import org.cacert.gigi.User;
import org.cacert.gigi.output.AssurancesDisplay;
import org.cacert.gigi.pages.Page;
public static final String PATH = "/wot/mypoints";
- private AssurancesDisplay display = new AssurancesDisplay("asArr");
+ private AssurancesDisplay myDisplay = new AssurancesDisplay("asArr");
+
+ private AssurancesDisplay toOtherDisplay = new AssurancesDisplay("otherAsArr");
public MyPoints(String title) {
super(title);
@Override
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
HashMap<String, Object> vars = new HashMap<String, Object>();
- vars.put("pointlist", display);
+ vars.put("pointlist", myDisplay);
+ vars.put("madelist", toOtherDisplay);
try {
- vars.put("asArr", getUser(req).getReceivedAssurances());
+ User user = getUser(req);
+ vars.put("asArr", user.getReceivedAssurances());
+ vars.put("otherAsArr", user.getMadeAssurances());
} catch (SQLException e) {
new GigiApiException(e).format(resp.getWriter(), getLanguage(req));
return;