Permalink
Browse files

Hello from model

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

0 comments on commit 4d232db

Please sign in to comment.