GWT + GAE + Multiple pages + SSH
I am trying to write an application with two pages where one needs SSH and the other doesn't (because of performance concern). I understand that multiple pages/entry-points are discouraged in GWT framework. But I don't know how I ca开发者_StackOverflow中文版n turn SSH traffic on and off dynamically using GWT+GAE. Even though I think I can setup to use SSH all the time by modifying web.xml. Can anyone suggest a simple solution?
Many Thanks!
GWT and GAE are two separate technologies:
GWT: if you want to mix both secure and unsecure URLs you will need to have multiple pages / entry points. You can not have an unsecured GWT page making secured RPC calls to the server due to browser's Same Origin Policy.
GAE: having both secure and unsecure URLs in GAE is simple - just create a proper
<security-constraint>
configuration in your web.xml .
精彩评论