Problem: I have a URL in cas.properties file and I want to read it from within the login-webflow.xml and pass that value to some bean (java file).
CAS server version 3.4.10 My login-webflow begins with: <flow xmlns="...." Inside that "flow", I want to add these two lines: //--------------------------------------------------- xmlns:context="http://www.springframework.org/schema/context" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> //------------------------------------------------------------- Those two lines should have allowed (that's what I thought) me to use the following: <context:property-placeholder location="file:${WEB-INF}/cas.properties"/> But no, not so fast. I get this error: //-------------------- cvc-complex-type.2.4.a: Invalid content was found starting with element 'context:property-placeholder'. One of '{"http://www.springframework.org/schema/webflow":action-state, "http://www.springframework.org/schema/webflow":view-state, ..... //-------------------- Inside one of the "action-states", I have this piece of code: <evaluate expression="new String('${parentCASUrl}')" result="externalContext.sessionMap.parentCASServer" /> In my cas.properties file, I have this code: parentCASUrl=https://parent1.com I want to keep all my values like DB connection strings, user name, passwords, URLs of different servers, etc, in a separate (=cas.properties) file, and read it from within program. Can someone give me some pointers? Thanks. -- 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
