public class VelocityViewResolverEx
extends org.springframework.web.servlet.view.velocity.VelocityViewResolver
VelocityViewResolverで設定可能なプロパティに加え、 以下のプロパティを設定すること。
| 属性名 | 説明 |
|---|---|
| encoding | Viewのエンコーディング設定 |
<bean id="viewResolver"
class="jp.terasoluna.fw.web.rich.springmvc.servlet.view.velocity.VelocityViewResolverEx">
<property name="cache"><value>true</value></property>
<property name="requestContextAttribute" value="rc"/>
<property name="prefix"><value></value></property>
<property name="suffix"><value>.vm</value></property>
<property name="exposeSpringMacroHelpers"><value>true</value></property>
<property name="contentType"><value>text/xml;charset=UTF-8</value></property>
<property name="encoding"><value>UTF-8</value></property>
</bean>
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX| コンストラクタと説明 |
|---|
VelocityViewResolverEx() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected org.springframework.web.servlet.view.AbstractUrlBasedView |
buildView(String viewName)
Viewインスタンスを作成する。
|
String |
getEncoding()
Viewのエンコーディングを取得する。
|
void |
setEncoding(String encoding)
Viewのエンコーディングを設定する。
|
initApplicationContext, requiredViewClass, setDateToolAttribute, setNumberToolAttribute, setToolboxConfigLocationsetAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes, setExposeSpringMacroHelperscanHandle, createView, getAttributesMap, getCacheKey, getContentType, getExposePathVariables, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNamesclearCache, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheLimit, setCacheUnresolvedgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic String getEncoding()
public void setEncoding(String encoding)
encoding - Viewのエンコーディング。protected org.springframework.web.servlet.view.AbstractUrlBasedView buildView(String viewName) throws Exception
buildView クラス内 org.springframework.web.servlet.view.velocity.VelocityViewResolverviewName - view名Exception - 例外Copyright © 2015. All Rights Reserved.