Changes to edit request controller path in web.xml, adding generator as part of custom annotation and test menu edit template (to be removed later)

This commit is contained in:
hjkhjk54 2011-07-01 21:47:43 +00:00
parent 7a23fe0201
commit 50e15f9c0c
3 changed files with 35 additions and 2 deletions

View file

@ -133,8 +133,10 @@ rdfs:comment
owl:Class owl:Class
a owl:Class . a owl:Class .
#In this case, hasElement's custom entry form actually corresponds to the name of the Edit Configuration Generator class
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasElement> <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasElement>
a owl:ObjectProperty . a owl:ObjectProperty ;
<http://vitro.mannlib.cornell.edu/ns/vitro/0.7#customEntryFormAnnot> "edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.MenuEditingFormGenerator"^^xsd:string .
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title> <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title>
a owl:DatatypeProperty . a owl:DatatypeProperty .

View file

@ -329,7 +329,19 @@
<url-pattern>/ProcessRdfForm</url-pattern> <url-pattern>/ProcessRdfForm</url-pattern>
</servlet-mapping> </servlet-mapping>
--><servlet> -->
<servlet>
<servlet-name>EditRequestDispatch</servlet-name>
<servlet-class>edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.EditRequestDispatchController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>EditRequestDispatch</servlet-name>
<url-pattern>/editRequestDispatch</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>IndexController</servlet-name> <servlet-name>IndexController</servlet-name>
<servlet-class>edu.cornell.mannlib.vitro.webapp.search.controller.IndexController</servlet-class> <servlet-class>edu.cornell.mannlib.vitro.webapp.search.controller.IndexController</servlet-class>
</servlet> </servlet>

View file

@ -0,0 +1,19 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#--
Menu Edit Form
Associated with generator:
edu.cornell.mannlib.vitro.webapp.edit.n3editing.configuration.generators.MenuEditingFormGenerator
-->
<h2>Lorem ipsum dolor sit amet</h2>
<form class="editForm" action = "xyz">
<p>consectetur adipisicing elit</p>
<input type="text" id="objectVar" size="80" />
<div style="margin-top: 0.2em">
<input type="submit" id="submit" value="submit" cancel="true"/>
</div>
</form>
<@dumpAll/>