Thanks for your reply. It works now. 


Laurie Harper wrote:
> 
> When you specify interceptors for an individual action, you are 
> replacing the default set with what you specified. So, with the 
> configuration you posted below, the default interceptor stack is being 
> replaced with just the store interceptor. You would need to add a 
> reference to the interceptor stack (name="defaultStack", or whatever 
> stack you're using if other than the default).
> 
> <action name="sendExportMessages" ...>
>      <interceptor-ref name="defaultStack"/>
>      <interceptor-ref name="store">...</interceptor-ref>
>      <result name="success">/jsp/main.jsp</result>
>      <result name="error">/jsp/main.jsp</result>
> </action>
> 
> L.
> 
> quinquin2209 wrote:
>> Thanks for reply. I have wrap them in param tags but don't know why it
>> disappear when posting to this forum.
>> 
>> The problem persists even if param tag is used.
>> 
>> 
>> 
>> Chris Pratt wrote:
>>> Try wrapping the STORE and RECEIVE strings in param tags, like:
>>>
>>>       <interceptor-ref name="store">
>>>         RETRIEVE
>>>       </interceptor-ref>
>>>
>>>   (*Chris*)
>>>
>>> On Jan 8, 2008 11:49 PM, quinquin2209 <[EMAIL PROTECTED]>
>>> wrote:
>>>> HI All,
>>>>
>>>> I have originally define some action as follow:
>>>>
>>>>
>>>> <action name="list" class="mainAction" method="initDisplay">
>>>>     <result name="input">/jsp/main.jsp</result>
>>>> </action>
>>>>
>>>> <action name="addMember" class="mainAction" method="addMember">
>>>>     <result name="success">/jsp/main.jsp</result>
>>>>      <result name="error">/jsp/main.jsp</result>
>>>> </action>
>>>>
>>>> when the list.action is called, all members will be listed. User can
>>>> press
>>>> the addMember button which will retrieve some form values and add the
>>>> member
>>>> to DB. The list.action page and addMember action page are the same
>>>> "main.jsp".
>>>>
>>>> When user call the addMember function, the URL in the browser change to
>>>> http://localhost:8080/app/main/addMember.action
>>>>
>>>> However, we want the URL remains as
>>>> http://localhost:8080/app/main/list.action. I consider to do the
>>>> redirect
>>>> and use the Message Store Interceptor such that action message can be
>>>> retrieve
>>>>
>>>> <action name="list" class="mainAction" method="initDisplay">
>>>>    <interceptor-ref name="store">
>>>>       RETRIEVE
>>>>    </interceptor-ref>
>>>>     <result name="input">/jsp/main.jsp</result>
>>>> </action>
>>>>
>>>> <action name="sendExportMessages" class="mainAction"
>>>> method="sendExportMessages">
>>>>     <interceptor-ref name="store">
>>>>       STORE
>>>>    </interceptor-ref>
>>>>     <result name="success">/jsp/main.jsp</result>
>>>>     <result name="error">/jsp/main.jsp</result>
>>>> </action>
>>>>
>>>> However, after adding the interceptor, I find that all form value is
>>>> not
>>>> set
>>>> in the action using the corresponding setter method. For example, the
>>>> textbox "name" has a setName function but I find that it is never
>>>> called
>>>> when the add button is pressed.
>>>>
>>>> What's am I doing wrong? Any one have idea about it? Thanks in advance
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Problem-in-using-Message-Store-Interceptor-tp14706763p14706763.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-in-using-Message-Store-Interceptor-tp14706763p14726493.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to