That layout is fine, except for gwtapps - usually the apps go directly under webroot (you may have to modify the default ant scripts & whatnot). However, the better approach might be to split each application into 2 parts. 1 part for the front-end specific for each page (i.e. the code containing onModuleLoad) & a "backend"-frontend that is specific for the application.
That way you can load whatever frontend you want in the onModuleLoad. If you want, you can also use the HTTP parameters (as in the previous post) as additional selection options. On Sun, Apr 26, 2009 at 7:12 AM, JITEchno <[email protected]> wrote: > > Hello, > I have similar problems, I need few pages with different Javascriots. > I stsrted from 2 classes with MainEntryPoint, but was not able manage > it.. > Only solution, what I found, put all code for generation JS under one > MainEntryPoint for page.html, > and call corresponding section of code using parameter. > So u have not: > page1 > page2.. > but u have > page.html? param=1 > or param =2 > Not so elegant solution.. > > On Apr 25, 10:22 am, GWTSavvy <[email protected]> wrote: > > Hi All, > > > > I have the following structure for my application. > > > > webroot > > |------pages > > | |--------page1.html > > | |--------page2.html > > | |--------page3.html > > | > > |------gwtapps > > | |--------app1(folder with app1 javascript+resources > > files) > > | |--------app2(folder with app2 javascript+resources > > files) > > | > > |------WEB-INF > > | |--------classes > > | |--------lib > > | |--------web.xml > > > > The reason is that I would like to put any GWT app I like on any page > > in the pages directory. I think RPC calls can be easily routed using > > the web.xml to the GWT Application Servlets. But getting the > > Javascript loaded from the correct director is the issue. > > > > Can anyone please help me on this?? > > > > A BIG Thanks in Advance... > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
