This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
title=Yacos
|
title=Yacos
|
||||||
|
|
||||||
form.submission.title=Article's submission
|
submission.title=Article's submission
|
||||||
form.submission.article.title=Article's title
|
form.submission.article.title=Article's title
|
||||||
form.submission.article.theme=Article's theme
|
form.submission.article.theme=Article's theme
|
||||||
form.submission.listauthor=Article's author
|
form.submission.listauthor=Article's author
|
||||||
|
|||||||
@@ -11,6 +11,24 @@
|
|||||||
|
|
||||||
<h2 align="center"><fmt:message key="submission.title" /></h2>
|
<h2 align="center"><fmt:message key="submission.title" /></h2>
|
||||||
|
|
||||||
|
<form:form method="post" commandName="submissionArticle">
|
||||||
|
<fmt:message key="form.submission.article.title" /> <form:input path="title"/> <br/><br />
|
||||||
|
<fmt:message key="form.submission.article.theme" /> <form:input path="theme"/> <br/><br />
|
||||||
|
|
||||||
|
<hr /> <br />
|
||||||
|
|
||||||
|
<fmt:message key="form.submission.listauthor" /> <br /><br />
|
||||||
|
<fmt:message key="form.submission.mainauthor" /> <form:input path="mainauthor"/> <input type="submit" name="addMain" value=<fmt:message key="button.add" />> <br/><br />
|
||||||
|
<fmt:message key="form.submission.secondaryauthor" /> <form:input path="secondaryauthor"/> <input type="submit" name="addSecondary" value=<fmt:message key="button.add" />> <br/><br />
|
||||||
|
|
||||||
|
<textarea name="AreaAuthor" rows=10 cols=40></textarea> <br />
|
||||||
|
|
||||||
|
<hr /> <br />
|
||||||
|
|
||||||
|
<fmt:message key="form.submission.file" /> <form:input path="file"/> <input type="submit" value="Parcourir"> <br/><br />
|
||||||
|
<input type="submit" value=<fmt:message key="button.cancel" />>
|
||||||
|
<input type="submit" value=<fmt:message key="button.OK" />> <br/><br/>
|
||||||
|
</form:form>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
18
YACOSWeb/WebContent/WEB-INF/jsp/submissionArticleOK.jsp
Normal file
18
YACOSWeb/WebContent/WEB-INF/jsp/submissionArticleOK.jsp
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<%@ include file="/WEB-INF/jsp/include.jsp"%>
|
||||||
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title><fmt:message key="title" /></title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
Soumission OK
|
||||||
|
|
||||||
|
<a href="<c:url value="main.htm"/>">Home</a>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -10,9 +10,18 @@
|
|||||||
|
|
||||||
<!-- the application context definition for the SiteWebSpring DispatcherServlet -->
|
<!-- the application context definition for the SiteWebSpring DispatcherServlet -->
|
||||||
|
|
||||||
<bean name="/main.htm" class="org.yacos.core.web.MainController" />
|
<bean name="/main.htm" class="org.yacos.web.author.controller.MainController" />
|
||||||
|
|
||||||
<bean name="/submissionArticle.htm" class="org.yacos.core.web.SArticleController" />
|
<bean name="/submissionArticleOK.htm" class="org.yacos.web.author.controller.SArticleControllerOK" />
|
||||||
|
|
||||||
|
<bean name="/submissionArticle.htm" class="org.yacos.web.author.controller.SArticleController">
|
||||||
|
<property name="sessionForm" value="true" />
|
||||||
|
<property name="commandName" value="submissionArticle" />
|
||||||
|
<property name="commandClass" value="org.yacos.web.author.form.FormSubmission" />
|
||||||
|
<property name="formView" value="submissionArticle" />
|
||||||
|
<property name="successView" value="submissionArticleOK.htm" />
|
||||||
|
<property name="articleManager" ref="articleManager" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
<bean id="viewResolver"
|
<bean id="viewResolver"
|
||||||
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||||
@@ -28,7 +37,7 @@
|
|||||||
<property name="basename" value="messages" />
|
<property name="basename" value="messages" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- <jee:jndi-lookup id="articleManager" jndi-name="ArticleManagerBean/remote"
|
<jee:jndi-lookup id="articleManager" jndi-name="ArticleManagerBean/remote"
|
||||||
cache="true" /> -->
|
cache="true" />
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
Reference in New Issue
Block a user