In the src directory, under 
WEB-INF/spring-configuration/propertyFileConfigurer.xml I have this:
                <bean id="propertyPlaceholderConfigurer" 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
                                
p:location="file:${catalina.base}/conf/cas.properties" />

                <bean id="servletContextAttributeExporter"
                                
class="org.springframework.web.context.support.ServletContextAttributeExporter">
                                <property name="attributes">
                                                <map>
                                                                <entry 
key="propertyBean">
                                                                                
<map>
                                                                                
                <entry key="myCreateAccountUrl" value="${my.createUrl}" />
                                                                                
                <entry key="myResetPasswordUrl" value="${my.resetUrl}" />
                                                                                
</map>
                                                                </entry>
                                                </map>
                                </property>
                </bean>

In my JSP I have:
<a href="<c:out value="${propertyBean.myCreateAccountUrl}" />">create 
account</a>
Forget your password? <a href="<c:out 
value="${propertyBean.myResetPasswordUrl}" />">Reset it</a>

I may have omitted something, but I believe that is all that was necessary.  I 
do not remember where I read that from.  It may have been previously on this 
list.

From: michael maceachran [mailto:[email protected]]
Sent: Wednesday, September 24, 2014 4:10 PM
To: [email protected]
Subject: [cas-user] adding properties to loginView

I have a CAS 4.0 with war overlay.  I have a requirement to add a "New User" 
section of the login page.  This is all fine except naturally I have a 
different URL that they need to click on for dev/stage/prod.

I want to add a property in cas.properties like newuser.url=/some/url   But how 
do I get that into the casLoginView?  I am not very familiar with webflows, and 
I don't see how to add a property to the model.

How do i get something like:  <a href="${newuser.url}>   to work?

Thank You,
Michael



--

You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>

To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to