Hey all, The Struts 1.1 app that I already have running currently validates a user's information from the session and based on that view/modify privileges are determined. Since now I'm trying to implement a GWT module within this application, I'd ideally like for the GWT code to be able to somehow call the already existing session data and the validation logic available in the Struts application (the logic has been set as part of the main Action class that is the parent for all Actions) .
1) I see that using the getLocalThreadRequest() I could obtain the HttpServletRequest. So using this, can I get the session information (User object) and ultimately call upon the action (simply create an instance to call upon the action class) and pass the session information for validation? 2) I also saw that the processCall can be overridden and I saw some people trying to create a way to be able to have the RemoteServiceServlet act as a by-way for the request to reach the custom framework. Would this be a better way overall to try to maintain the framework of the Struts application? If so, would this be similar to (1) where I create an instance of an action and call the method by passing the request,response arguments? or is there a more elegant way of doing what I want to do? So, this way the rest of my logic could go into the Action as well keeping the framework intact while the RemoteServiceServlet really acts as a bridge between teh GWT UI and the Struts framework. Thanks for any information. From the reading I have gathered that Walden hates what I'm trying to do and would possibly suggest HTTP digest as an approach at some point :). I'd have to say 1) i have no clue about the method, ashamed to say it but true. 2) It probably would be deviating from the way my application currently validates and what I'm trying to do is make that consistent. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
