You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Prasad, Kamakshya" <kp...@capitalservicing.co.jp> on 2004/10/05 02:50:32 UTC

Navigation framework

Hi All,

 

We have a web application built on struts. The issue we are having is
implementing a solid navigation framework. All the screens are tightly
coupled to each other. On click of back button it should always go to
the screen which opened it and each screen is getting opened from lot
other screens. But one good point is that each screen is populated by
max 1 or 2 primary keys. 

Could anyone please suggest me some framework though which I can handle
these i.e. store the chain of actions and also the key for performing
that action?

 

Regards,

KP

 

 


Re: Navigation framework

Posted by Kunal Parikh <ku...@carsales.com.au>.
Hi !

I can think of three ways to achieve this functionality:

1. HTTP Referer
    - you can get the referer from the Servlet API, but this will only 
work if the client has NOT turned off the feature. Some browsers and 
proxy-servers turn this functionality off by default.

2. sourceId in queryString
    - append the sourceId attribute to all the links on the current page 
and attach sourceId to a URL in the DB
    - this works if a user has multiple windows open and is relative 
with each window

3. sourceId in session
    - save the sourceId in a session scoped variable, and update it with 
each request (using filters)
    - however, if the user has multiple windows open, then, only the 
last request will determine the sourceId

HTH,

Kunal

Prasad, Kamakshya wrote:

>Hi All,
>
> 
>
>We have a web application built on struts. The issue we are having is
>implementing a solid navigation framework. All the screens are tightly
>coupled to each other. On click of back button it should always go to
>the screen which opened it and each screen is getting opened from lot
>other screens. But one good point is that each screen is populated by
>max 1 or 2 primary keys. 
>
>Could anyone please suggest me some framework though which I can handle
>these i.e. store the chain of actions and also the key for performing
>that action?
>
> 
>
>Regards,
>
>KP
>
> 
>
> 
>
>
>  
>



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