Author: cmeyer, [EMAIL PROTECTED], Chris Meyer This patch includes all of the necessary changes for a rudimentary system for keeping track of a users initial page request during login. The system is currently disabled but can be enabled by changing the 'if ( false )' in Turbine.java/doGet method. When enabled the default system behaves strangely because the current technique is for the login page to choose the next page; under this new system the user requests a page and the login page is inserted into the flow of pages and the user is then returned to the page initially requested. Since the initial page request will typically be the login page, nothing exciting happens for the user. A more thrilling example occurs when the user requests something like: http://localhost/servlets/Turbine/screen/admin.AddUser Then the user is presented a login screen after which they are immediately transported to the AddUser screen. Also, if the system is enabled and the user never reaches a non-login screen (as is the case with the default installation), this patch will put things in a funny state since I clear out the 'requested screen' information only on non-login screens. Don't be alarmed, try something like the line above to see the utility of this idea. Note too that the changes are kind of scattered through the code. It is an easy thing to clean them up but since I don't have cvs write access I decided I would submit these changes as they stand so that others can see the concept before I go all out... Future changes would be: localize support for this stuff to a utility package or something, formalize the 'Dialog' concept a little more strongly, generalize so that other screens can request dialogs appear before they appear, and several other items. The patch is available at http://www.ultratask.com/turbine-patches-2000041201.txt An additional file 'Dialog.java' needs to be placed in the same directory as 'Screen.java'. It's available at http://www.ultratask.com/turbine-patch-2000041201.Dialog.java I hope this is useful to someone and I look forward to evolving this patch into a truly general and useful system. Chris Meyer ------------------------------------------------------------ To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
