Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread Jeromy Evans
The referenced tutorial looks fine. I'd remove the interceptor first and ensure everything works without it. (confirm that you can post to the index action) Then add the login and see if that causes the exception. I'd probably insert the login interceptor before the param interceptor myself a

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread Nuwan Chandrasoma
Hi, struts-default.xml Thanks, Nuwan hezjing wrote: Actually, I'm following the tutorial described at http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor. May I know which file that is showing the Struts2 default interceptor stack? Thanks for your help! On 2/5/08, J

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread hezjing
Actually, I'm following the tutorial described at http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor. May I know which file that is showing the Struts2 default interceptor stack? Thanks for your help! On 2/5/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > That looks fine.

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
That looks fine. Do you have an action called index in the default namespace? It's calling ActionSupport which is the default/fallback action under some circumstances. You may need to go back to the default interceptor stack to isolate what's wrong. Or post the package from struts.xml here.

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hmmm ... my login.jsp now looks like this, When the login button is pressed, the following exceptions are shown in the console, com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
It depends what your interceptor is trying to do... At the moment, I still think params is trying to call getButton().setLogin(val) on your ACTION (prior to execution of your login interceptor). I presume your interceptor is going to check the params or session and redirect if not authenticated

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
The "button.login" is a key in i18n properties file, and it is suppose to retrieve the label for a button. I suspect this problem could be the interceptor statck I configured, // my interceptor

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread Jeromy Evans
A param called "button.login" means the ParametersInterceptor has to call getButton().setLogin(val). If you don't have a getButton() method, or getButton() returns null, an exception like this occurs while trying to set the parameter. hezjing wrote: Hi I'm trying to create a login interce

[S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hi I'm trying to create a login interceptor. When a login form is submitted, I got the following exception: com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.login' on 'class com.op