@Controller
@RequestMapping(value="comment")
public class CommentController
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected ConfigDataComponent |
configDataComponent |
private CmsContentService |
contentService |
private java.lang.String[] |
ignoreProperties |
private LockComponent |
lockComponent |
protected org.apache.commons.logging.Log |
log |
protected LogOperateService |
logOperateService |
protected SafeConfigComponent |
safeConfigComponent |
private CmsCommentService |
service |
protected SiteComponent |
siteComponent |
private TemplateComponent |
templateComponent |
构造器和说明 |
---|
CommentController() |
protected final org.apache.commons.logging.Log log
protected LogOperateService logOperateService
protected SiteComponent siteComponent
protected SafeConfigComponent safeConfigComponent
protected ConfigDataComponent configDataComponent
private CmsContentService contentService
private TemplateComponent templateComponent
private LockComponent lockComponent
private java.lang.String[] ignoreProperties
private CmsCommentService service
@RequestMapping(value="save") public java.lang.String save(@RequestAttribute SysSite site, @SessionAttribute SysUser user, CmsComment entity, java.lang.String returnUrl, java.lang.String captcha, javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
<#if user?has_content> <form method="post" action="${site.dynamicPath}comment/save"> <@cms.comment id=id> <input type="hidden" name="id" value="${object.id}"/> <#assign text=object.text!/> </@cms.comment> <input type="hidden" name="replyId" value="${replyId!}"/> <input type="hidden" name="_csrf" value="<@tools.csrfToken/>"/> <input type="hidden" name="contentId" value="${content.id}"/> <input name="returnUrl" type="hidden" value="${content.url!}" /> <p><label>Comment:</label></p> <p><textarea name="text" cols="100" rows="4" maxlength="1000">${text!}</textarea></p> <p><input type="submit" value="Submit"/></p> </form> </#if>
site
- user
- entity
- returnUrl
- captcha
- request
- model
-