You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by re...@apache.org on 2013/05/07 05:05:01 UTC

svn commit: r1479754 - in /incubator/devicemap/trunk/web/src/main/webapp: WEB-INF/mvc-dispatcher-servlet.xml WEB-INF/views/ WEB-INF/views/show.jsp WEB-INF/web.xml views/

Author: rezan
Date: Tue May  7 03:05:01 2013
New Revision: 1479754

URL: http://svn.apache.org/r1479754
Log:
moved view into WEB-INF

Added:
    incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/
    incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/show.jsp
Removed:
    incubator/devicemap/trunk/web/src/main/webapp/views/
Modified:
    incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml
    incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/web.xml

Modified: incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml?rev=1479754&r1=1479753&r2=1479754&view=diff
==============================================================================
--- incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml (original)
+++ incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml Tue May  7 03:05:01 2013
@@ -11,7 +11,7 @@
  
     <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
         <property name="prefix">
-            <value>/views/</value>
+            <value>/WEB-INF/views/</value>
         </property>
         <property name="suffix">
             <value>.jsp</value>

Added: incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/show.jsp
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/show.jsp?rev=1479754&view=auto
==============================================================================
--- incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/show.jsp (added)
+++ incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/views/show.jsp Tue May  7 03:05:01 2013
@@ -0,0 +1,18 @@
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+<html>
+<body>
+<h1>User-Agents</h1>   
+agents: ${fn:length(agents)}<br>
+<c:forEach items="${agents}" var="agent">
+id: ${agent.id} user-agent: '${agent.userAgent}' reason: ${agent.reason} status: ${agent.status}<br>
+</c:forEach>
+<h1>Add</h1>   
+<form action="add" method="POST">
+<input type="hidden" name="reason" value="new">
+<input type="hidden" name="status" value="unassigned">
+User-Agent: <input type="text" name="userAgent"><br>
+<input type="submit" value="Submit">
+</form>
+</body>
+</html>

Modified: incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/web.xml?rev=1479754&r1=1479753&r2=1479754&view=diff
==============================================================================
--- incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/web.xml (original)
+++ incubator/devicemap/trunk/web/src/main/webapp/WEB-INF/web.xml Tue May  7 03:05:01 2013
@@ -3,8 +3,6 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 
-    <!-- ${hello.world} -->
-
     <display-name>deviceMap</display-name>
     <description>Device Map Web Interface</description>