Back Forum Reply New

Problem with login page and message bundle

Hi

I have a problem with the message bundle (defined as follow):Code:
lt;bean id=quot;messageSourcequot;class=quot;org..context.support.ResourceBundleMessageSourcequot;gt;   lt;property name=quot;basenamesquot;gt;   lt;listgt;    lt;valuegt;messageslt;/valuegt;   lt;valuegt;exceptionlt;/valuegt;    lt;/listgt;   lt;/propertygt;
lt;/beangt;
I can get it work in all my code, except for the login page created with ACEGI where the message are not displayed.

lt;bean id=quot;formAuthenticationProcessingFilterquot;
class=quot;org.acegisecurity.ui.webapp.AuthenticationP  rocessingFilterquot;gt;
lt;property name=quot;filterProcessesuclquot;gt;
lt;valuegt;/j_acegi_security_checklt;/valuegt;
lt;/propertygt;
lt;property name=quot;authenticationFailureuclquot;gt;
lt;valuegt;/login.jsp?error=truelt;/valuegt;
lt;/propertygt;
lt;property name=quot;defaultTargetuclquot;gt;
lt;valuegt;/lt;/valuegt;
lt;/propertygt;
lt;property name=quot;alwaysUseDefaultTargetuclquot;gt;
lt;valuegt;truelt;/valuegt;
lt;/propertygt;
lt;property name=quot;authenticationManagerquot;gt;
lt;ref bean=quot;authenticationManagerquot;/gt;
lt;/propertygt;
lt;/beangt;

The second problem, when I try this

MessageSource resources = new ClassPathXmlApplicationContext(quot;messages.propertie  squot;);

I always get a file non found exception, even if i put the file everywhere in the tomcat war file.

Regards

Giulio

Sorry for the up, but noone has an idea?

Please... no idea?
¥
Back Forum Reply New