HI upasana,

y dont u store them in the application context variable??

Regards,
Jay

On Tue, Apr 27, 2010 at 2:06 PM, Upasana Sharma <sharma...@gmail.com> wrote:

> Hi
>
> I have a jsp that displays some data . To refine the data based on some
> criteria i have two comboboxes.
>
> <s:select list="categoryList" id="categorySelect" name="categorySelect"
> onchange="getDisplayCriteria();" emptyOption="true"></s:select>
>
>  <s:select list="statusList" id="statusSelect" name="statusSelect"
> onchange="getDisplayCriteria();" emptyOption="true"></s:select>
>
>
> the lists for these two select option are obtained from the action that
> calls the page containing them..
>
> public String getAllLists() throws Exception{
>
>  ActionContext.getContext().put("categoryList", EComplaintType.values());
> ActionContext.getContext().put("statusList", EComplaintStatus.values());
> return SUCCESS;
> }
>
> but the problem is that whatever we put in this action context , those
> values are for that action only.... if we call any other action that
> renders
> the same jsp.... these values are not accessible.
>
> there is some issue with session management what i feel... can u suggest
> how
> should i approach this problem...... to make the values stay in the session
> after the first call.
>
> --
> Thanks and Regards
> Upasana Sharma
>

Reply via email to