fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6831] Added informational JSP


From: Petur Thorsteinsson
Subject: [Fmsystem-commits] [6831] Added informational JSP
Date: Mon, 24 Jan 2011 09:47:14 +0000

Revision: 6831
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6831
Author:   peturbjorn
Date:     2011-01-24 09:47:14 +0000 (Mon, 24 Jan 2011)
Log Message:
-----------
Added informational JSP

Modified Paths:
--------------
    thirdparty/BIM_converter/trunk/WebContent/WEB-INF/web.xml

Added Paths:
-----------
    thirdparty/BIM_converter/trunk/WebContent/jsp/
    thirdparty/BIM_converter/trunk/WebContent/jsp/samples.jsp

Modified: thirdparty/BIM_converter/trunk/WebContent/WEB-INF/web.xml
===================================================================
--- thirdparty/BIM_converter/trunk/WebContent/WEB-INF/web.xml   2011-01-24 
09:46:40 UTC (rev 6830)
+++ thirdparty/BIM_converter/trunk/WebContent/WEB-INF/web.xml   2011-01-24 
09:47:14 UTC (rev 6831)
@@ -15,7 +15,16 @@
     <servlet-name>TestServlet</servlet-name>
     <servlet-class>test.TestServlet</servlet-class>
   </servlet>
+  <servlet>
+       <description>Sample functionality</description>
+       <servlet-name>Samples</servlet-name>
+       <jsp-file>/jsp/samples.jsp</jsp-file>
+  </servlet>
   <servlet-mapping>
+       <servlet-name>Samples</servlet-name>
+       <url-pattern>/</url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
     <servlet-name>TestServlet</servlet-name>
     <url-pattern>/TestServlet</url-pattern>
   </servlet-mapping>

Added: thirdparty/BIM_converter/trunk/WebContent/jsp/samples.jsp
===================================================================
--- thirdparty/BIM_converter/trunk/WebContent/jsp/samples.jsp                   
        (rev 0)
+++ thirdparty/BIM_converter/trunk/WebContent/jsp/samples.jsp   2011-01-24 
09:47:14 UTC (rev 6831)
@@ -0,0 +1,28 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" 
pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>BIM converter Rest services overview</title>
+</head>
+<body>
+       <h1>BIM converter</h1>
+       <h2>Introduction</h2>
+       <p>This is an overview of the available rest services, and some 
examples</p>
+       <h2>Upload Ifc</h2>
+       <p>This web services accepts and IFC file via a POST request. 
+       The IFC file is processed and the Facility managment XML is returned</p>
+       <p>The location of the service relative to this location is:</p>
+       <div><a href="./rest/uploadIfc">./rest/uploadIfc</a></div>
+       <p>If the rest service link is opened via a web browser, it will return 
an informational message
+       (which also means that invoking a browser's view source on the REST url 
will give the same message)</p>
+       <h3>Example Form</h3>
+       <p>The following Form allows upload of an IFC file to the REST service, 
if the IFC file is 
+       valid, the REST service will return XML data with Facility Management 
information</p>
+       <form enctype="multipart/form-data" action="./rest/uploadIfc" 
method="POST">
+               <label for="file">Choose an IFC file to upload: </label>
+               <input  id="file" name="file" type="file" /><br />
+               <input type="submit" value="Upload File" />
+       </form>
+</body>
+</html>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]