Use a filter to achieve this functionality.

On Sep 13, 6:40 am, WY <wai...@gmail.com> wrote:
> Hi all,
>
> I managed to configure my web.xml file to redirect all pages ending
> with *.dos to be handled by ssl with the following:
>    <security-constraint>
>         <web-resource-collection>
>             <url-pattern>/*.dos</url-pattern>
>         </web-resource-collection>
>         <user-data-constraint>
>             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
>         </user-data-constraint>
>     </security-constraint>
>
> However, I would like it to redirect back to non ssl (http) for all
> pages ending with *.do. I tried to define another security constraint
> with the following:
>         <security-constraint>
>         <web-resource-collection>
>             <url-pattern>/*.do</url-pattern>
>         </web-resource-collection>
>         <user-data-constraint>
>             <transport-guarantee>NONE</transport-guarantee>
>         </user-data-constraint>
>     </security-constraint>
>
> However, after it successfully goes to https, subsequent pages which
> end in *.do doesn't get redirected back to http.
> I know that in python, the way to do this is by using "secure: never".
> Is there an equivalent for the web.xml file?
>
> Thanks for any help!
--~--~---------~--~----~------------~-------~--~----~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to