Similar to what Mariyan says, it really depends on how integrated you want GWT to be inside your Struts app. Dave Geary devotes a whole chapter to this topic in his book "Google Web Toolkit Solutions". It was written for GWT 1.4, but it remains very relevent. Pick it up at Amazon or your favorite book source. For additional information, just remember that GWT is really an AJAX toolkit, so Google for "how to integrate AJAX into Struts". Again, and lastly, it really depends how much integration between the two worlds you are trying to do. Struts is a stateful server form post solution and GWT is a thick and stateful Javascript client with AJAX server communication solution...
On Aug 6, 5:43 am, mariyan nenchev <[email protected]> wrote: > public class GwtEntryPointAction extends Action { > > @Override > protected ActionForward lexecute(ActionMapping mapping, ActionForm > theForm, HttpServletRequest request, HttpServletResponse response) > throws Exception { > Integer entrypointId = > Integer.parseInt(request.getAttribute("epid")); > swtich(entrypointId) { > .... > return mapping.findForward("hostpage1"); > ..... > return mapping.findForward("hostpage2"); > ........................ > } > > } > > } > > hostpage1.jsp : > <script type="text/javascript" language="javascript" > src="/hostpage1.nocache.js"></script> > <DIV id="hostpage1"></DIV> > > hostpage2.jsp > <script type="text/javascript" language="javascript" > src="/hostpage2.nocache.js"></script> > <DIV id="hostpage2"></DIV> > > Or even you may use one jsp, but the switch logic must be in it, which is > better :) > > There is nothing special about struts. > It's more complicated if you want mixed struts + gwt ui that are connected > and weather the gwt components are client side only or not. You should think > how to integrate that. My be with some custom js, but i can't give you an > example for that, i have never done this. My gwt part was independent from > the struts part. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
