Hi, the beauty (or the horror...) of Java apps with GWT is that you can stay alway in the same page: so, you don't need multiple urls with redirects between them by any mean.
You can just programmatically decide in the java code of your unique servlet which content you decide to put on the page. In you case, a simple cascade of java ifs would do it: you decide via those what you user will do next and then you give the right content back to gwt call. Other tricks (redirects, etc.) should be reserved to case where you client is less powerful than the gwt architecture regards didier On Jun 2, 7:14 pm, meiaestro <[email protected]> wrote: > Hi experts, > > I'v build a web application with three entry points so far: > > registration > login > start page > > As you can imagine I want to (or have to) be able to dynamically redirect a > user - depending on his authentication/session validation, etc. - to the > correct entry point, regardless which URL he choose. Example: user chooses > "start page.html" but is not yet logged in nor does he have a valid session > id. So I want to redirect him to "login.html" automatically. > > Now the question: what is the best way to redirect a user from one entry > point to the next? Is it a simple Window.open() or is it a > GWT.setModuleBaseURL(). > > Second Question: > Usually the index.html (or htmls/php/etc) is the first page a webserver is > searching for, so people are used to it. Can I somehow map a virtual > index.html to my entry point within the app server or should I use a simple > header redirect? > > Thanks a lot! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-appengine-java?hl=en.
