10 changed files with 111 additions and 60 deletions
@ -1,20 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
|
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" |
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> |
|
||||||
|
|
||||||
<bean name="/listAccounts.html" class="bigbank.web.ListAccounts"> |
|
||||||
<constructor-arg ref="bankService"/> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<bean name="/post.html" class="bigbank.web.PostAccounts"> |
|
||||||
<constructor-arg ref="bankService"/> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> |
|
||||||
<property name="prefix" value="/WEB-INF/jsp/"/> |
|
||||||
<property name="suffix" value=".jsp"/> |
|
||||||
</bean> |
|
||||||
|
|
||||||
</beans> |
|
||||||
@ -0,0 +1,34 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
|
||||||
|
<beans xmlns="http://www.springframework.org/schema/beans" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> |
||||||
|
|
||||||
|
<bean name="testMultiController" class="heavyduty.web.TestMultiActionController"> |
||||||
|
<property name="methodNameResolver"> |
||||||
|
<bean class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver"/> |
||||||
|
</property> |
||||||
|
</bean> |
||||||
|
<!-- |
||||||
|
<bean name="/post.html" class="bigbank.web.PostAccounts"> |
||||||
|
<constructor-arg ref="bankService"/> |
||||||
|
</bean> |
||||||
|
--> |
||||||
|
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> |
||||||
|
<property name="templateLoaderPath" value="/WEB-INF/freemarker/"/> |
||||||
|
</bean> |
||||||
|
|
||||||
|
<bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> |
||||||
|
<property name="prefix" value=""/> |
||||||
|
<property name="suffix" value=".ftl"/> |
||||||
|
</bean> |
||||||
|
|
||||||
|
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> |
||||||
|
<property name="mappings"> |
||||||
|
<value> |
||||||
|
**/testMulti.htm=testMultiController |
||||||
|
</value> |
||||||
|
</property> |
||||||
|
</bean> |
||||||
|
|
||||||
|
</beans> |
||||||
@ -1,17 +1,17 @@ |
|||||||
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> |
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> |
||||||
<html> |
<html> |
||||||
<body> |
<body> |
||||||
<h1>Home Page</h1> |
<h1>HeavyDuty App Home Page</h1> |
||||||
<p> |
<p> |
||||||
Anyone can view this page. |
Anyone can view this page. |
||||||
</p> |
</p> |
||||||
<p> |
<p> |
||||||
If you're logged in, you can <a href="listAccounts.html">list accounts</a>. |
Test multi-action controller <a href="testMulti.htm?action=step1">SEC-830</a>. |
||||||
</p> |
</p> |
||||||
<p> |
<p> |
||||||
Your principal object is....: <%= request.getUserPrincipal() %> |
Your principal object is....: <%= request.getUserPrincipal() %> |
||||||
</p> |
</p> |
||||||
|
<h3>Restricted Pages ...</h3> |
||||||
<p><a href="secure/index.jsp">Secure page</a></p> |
<p><a href="secure/index.jsp">Secure page</a></p> |
||||||
<p><a href="secure/extreme/index.jsp">Extremely secure page</a></p> |
<p><a href="secure/extreme/index.jsp">Extremely secure page</a></p> |
||||||
</body> |
</body> |
||||||
|
|||||||
Loading…
Reference in new issue