Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hello from model

  • Loading branch information...
commit 4d232dbcb69b38a02ccf3745d25f09744e3c87a6 1 parent be1ce21
Utumno authored
1  .classpath
@@ -4,7 +4,6 @@
4 4 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
5 5 <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
6 6 <classpathentry combineaccessrules="false" kind="src" path="/MonitoringModel"/>
7   - <classpathentry kind="lib" path="C:/Dropbox/eclipse_workspaces/_kepler/MonitoringModel/bin/monitoringmodel.jar"/>
8 7 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
9 8 <attributes>
10 9 <attribute name="owner.project.facets" value="java"/>
BIN  WebContent/WEB-INF/lib/monitoringmodel.jar
Binary file not shown
6 src/gr/uoa/di/monitoring/server/servlets/DataCollectionServlet.java
... ... @@ -1,5 +1,7 @@
1 1 package gr.uoa.di.monitoring.server.servlets;
2 2
  3 +import gr.uoa.di.monitoring.model.Battery;
  4 +
3 5 import java.io.IOException;
4 6 import java.util.Collection;
5 7
@@ -11,7 +13,7 @@
11 13 import javax.servlet.http.Part;
12 14
13 15 @SuppressWarnings("serial")
14   -@WebServlet("/datacollection")
  16 +@WebServlet("/")
15 17 @MultipartConfig()
16 18 public final class DataCollectionServlet extends Controller {
17 19
@@ -19,7 +21,7 @@
19 21 protected void doGet(HttpServletRequest req, HttpServletResponse resp)
20 22 throws ServletException, IOException {
21 23 // TODO forbidden !
22   - // req.setAttribute("key", Battery.hallo());
  24 + req.setAttribute("key", Battery.hallo());
23 25 sc.getRequestDispatcher(DATA_COLLECTION_JSP).forward(req, resp);
24 26 }
25 27

0 comments on commit 4d232db

Please sign in to comment.
Something went wrong with that request. Please try again.