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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---