You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ray <cl...@gmail.com> on 2007/12/24 05:27:13 UTC

what is going on? struts 2

my struts.xml
<interceptors>
         <interceptor name="LAI" class="com.ClockWise.ray.Interceptor.LoginActionInterceptor"/>
 </interceptors>

 <action name="LoginAction" class="com.ClockWise.ray.userSession.LoginAction">
     <interceptor-ref name="LAI"/>
     <result type="redirect-action">
         <param name="actionName">WelcomeAction</param>
         <param name="username">${username}</param>
     </result>

Re: what is going on? struts 2

Posted by mg...@hotmail.com.
need to see the configuration of WelcomeAction 

M--
----- Original Message ----- 
Wrom: BUZXUWLSZLKBRNVWWCUFPEGAUTF
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, December 24, 2007 1:57 AM
Subject: Re: what is going on? struts 2


> What exactly is the problem?
> 
> On Dec 23, 2007 11:27 PM, Ray <cl...@gmail.com> wrote:
> 
> > my struts.xml
> > <interceptors>
> >         <interceptor name="LAI" class="
> > com.ClockWise.ray.Interceptor.LoginActionInterceptor"/>
> >  </interceptors>
> >
> >  <action name="LoginAction" class="
> > com.ClockWise.ray.userSession.LoginAction">
> >     <interceptor-ref name="LAI"/>
> >     <result type="redirect-action">
> >         <param name="actionName">WelcomeAction</param>
> >         <param name="username">${username}</param>
> >     </result>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> 
> 
> 
> -- 
> The Street Programmer http://streetprogrammer.com
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: what is going on? struts 2

Posted by Al Sutton <al...@alsutton.com>.
Thats normal. redirect-action throws those warnings when you set parameters
in your objects via it.

Al. 

-----Original Message-----
From: Ray [mailto:clraychen@gmail.com] 
Sent: 24 December 2007 08:49
To: Struts Users Mailing List
Subject: Re: what is going on? struts 2

Vinny Wrote:
> What exactly is the problem?
>
> On Dec 23, 2007 11:27 PM, Ray <cl...@gmail.com> wrote:
>
>   
>> my struts.xml
>> <interceptors>
>>         <interceptor name="LAI" class="
>> com.ClockWise.ray.Interceptor.LoginActionInterceptor"/>
>>  </interceptors>
>>
>>  <action name="LoginAction" class="
>> com.ClockWise.ray.userSession.LoginAction">
>>     <interceptor-ref name="LAI"/>
>>     <result type="redirect-action">
>>         <param name="actionName">WelcomeAction</param>
>>         <param name="username">${username}</param>
>>     </result>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>     
There si something wrong when I sent the mail.

Ok. Flowing is what jboss produce when I run my project.


  Caught OgnlException while setting property 'username' on type
'org.apche.struts2.dispathcer.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apche.struts2.dispatcher.ServletActionRedirectResult.username at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
...

Anyone can help?  Thank u.

--
Ray Chen
Email:clraychen@gmail.com
Blog: http://clraychen.blogcn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: what is going on? struts 2

Posted by Ray <cl...@gmail.com>.
Vinny Wrote:
> What exactly is the problem?
>
> On Dec 23, 2007 11:27 PM, Ray <cl...@gmail.com> wrote:
>
>   
>> my struts.xml
>> <interceptors>
>>         <interceptor name="LAI" class="
>> com.ClockWise.ray.Interceptor.LoginActionInterceptor"/>
>>  </interceptors>
>>
>>  <action name="LoginAction" class="
>> com.ClockWise.ray.userSession.LoginAction">
>>     <interceptor-ref name="LAI"/>
>>     <result type="redirect-action">
>>         <param name="actionName">WelcomeAction</param>
>>         <param name="username">${username}</param>
>>     </result>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>     
There si something wrong when I sent the mail.

Ok. Flowing is what jboss produce when I run my project.


  Caught OgnlException while setting property 'username' on type
'org.apche.struts2.dispathcer.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apche.struts2.dispatcher.ServletActionRedirectResult.username at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
...

Anyone can help?  Thank u.

-- 
Ray Chen
Email:clraychen@gmail.com
Blog: http://clraychen.blogcn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: what is going on? struts 2

Posted by Vinny <xa...@gmail.com>.
What exactly is the problem?

On Dec 23, 2007 11:27 PM, Ray <cl...@gmail.com> wrote:

> my struts.xml
> <interceptors>
>         <interceptor name="LAI" class="
> com.ClockWise.ray.Interceptor.LoginActionInterceptor"/>
>  </interceptors>
>
>  <action name="LoginAction" class="
> com.ClockWise.ray.userSession.LoginAction">
>     <interceptor-ref name="LAI"/>
>     <result type="redirect-action">
>         <param name="actionName">WelcomeAction</param>
>         <param name="username">${username}</param>
>     </result>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>



-- 
The Street Programmer http://streetprogrammer.com