Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hello from model

  • Loading branch information...
commit 4d232dbcb69b38a02ccf3745d25f09744e3c87a6 1 parent be1ce21
@Utumno authored
View
1  .classpath
@@ -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"/>
View
BIN  WebContent/WEB-INF/lib/monitoringmodel.jar
Binary file not shown
View
6 src/gr/uoa/di/monitoring/server/servlets/DataCollectionServlet.java
@@ -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,7 +13,7 @@
import javax.servlet.http.Part;
@SuppressWarnings("serial")
-@WebServlet("/datacollection")
+@WebServlet("/")
@MultipartConfig()
public final class DataCollectionServlet extends Controller {
@@ -19,7 +21,7 @@
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.