I do the following:

Create an application in a war named ROOT.war - when deployed to
Tomcat this reacts to
www.myserver.com/index.html

Let us assume You want three "entry points"
/ - (the main application - public)
/membersonly - login secured area
/admin - the admin area

So create two folders in /war
/war/admin
/war/members

In these folders create an HTML page like
!DOCTYPE html
html
head
meta http-equiv="refresh" content="0; URL=/index.html?admin"
/head
body /body
/html

So any call to www.myserver.com/admin
will be redirected to
www.myserver.com/index.html?admin

Now create a Main.java as real entry point:

public void onModuleLoad() {
    String url = Window.Location.getHref();

    if ( url.indexOf("?admin")>-1 ) {
      Admin admin  = new Admin();
      RootPanel.get().add(admin);
    } else if ( url.indexOf("?member")>-1 ) {
      Member member  = new Member();
      RootPanel.get().add(member);
    } else {
      Application app = new Application();
      RootPanel.get().add(app);
    }
}

Any of these (Admin.java, Member.java, Application.java) is the base
of its own GWT client app. They share all services, libs and shared
classes and resources.

Works perfect for me.

-- 
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.

Reply via email to