开发者

Mapping a jsp in Spring?

开发者_开发知识库

How do I map a jsp file in web folder (not in web-inf folder) in Spring?


Are you looking for something like this?

<bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
        <property name="prefix" value="/folder-holding-my-jsps/"/>
        <property name="suffix" value=".jsp"/>
    </bean>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜