I am using Spring Security in one of my project. The web-app requires the user to login. Hence I have added few usernames and passwords in the spring-security-context.xml fi
You can use the PropertyPlaceholderConfigurer - put them in properties file and then reference them using EL:
PropertyPlaceholderConfigurer
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-factory-placeholderconfigurer