There's nothing wrong with storing the search criteria in the session.

On Mon, Apr 15, 2013 at 2:23 PM, Ashish <ashi...@samarthinfo.com> wrote:

> Hi
> I can save it in session, just dont want to add all the search criteria's
> in
> session, but will have to do some thing like save only last search
> criteria or
> form in session,
>
>
> Ashish
> > On April 15, 2013 at 12:42 PM Eric Lentz <ericle...@outfastsource.com>
> wrote:
> >
> >
> > Requirement 4 seems a little (unnecessarily?) restrictive. You obviously
> > need to store the information somewhere. Why not the session?
> >
> > If not in the session or a cache, then the database would be the next
> > likely candidate, in my opinion. You'll have to manage it by clearing
> > information after you use it. If you used the session, worst case, it
> would
> > be cleared once the session was invalidated due to timeout, for example.
> >
> > You could also possibly use cookies. Again, you'd need to manage these in
> > the event that someone comes back.
> >
> > Those are pretty much the usual suspects.
> >
> > Regarding:
> > >So far i am passing calling page as reference to this add page, and then
> > using java script forward the action back to calling page.
> >
> > In Struts 1, is this safe? Thread-safe, that is. You might be safer to
> load
> > relevant information into a DTO and pass that around as method parms,
> > thereby making it thread-safe. Once again, you're using server memory to
> do
> > this, so why not put it into the session?
> >
> > - Eric
> >
> > On Mon, Apr 15, 2013 at 11:27 AM, Ashish <ashi...@samarthinfo.com>
> wrote:
> >
> > > Hi
> > > I have a question about designing strategy for page navigation, this
> is my
> > > requirement
> > >
> > > 1. There is a add new information page which can be called from 5
> different
> > > pages.
> > > 2. When the addition is successful return the calling page
> > > 3. when returning to calling page, maintain search criteria on calling
> > > page, for
> > > example if on calling page search criteria is set then when this page
> is
> > > displayed it should maintain those search criteria.
> > > 4. Not to use session to save form information which can be used for
> > > maintaining
> > > search criteria
> > >
> > > These are main requirements,
> > >
> > >
> > > 1. So far i am passing calling page as reference to this add page, and
> then
> > > using java script forward the action back to calling page.
> > >
> > > 2. How to maintain this search criteria for each page?
> > >
> > >
> > >
> > > Ashish

Reply via email to