struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaya krishna <krishna1...@gmail.com>
Subject Re: struts session help
Date Tue, 27 Apr 2010 08:39:54 GMT
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 <sharmacal@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message