Servlet filters (SSL filter) and GWT

56 views
Skip to first unread message

danael

unread,
Dec 18, 2006, 3:47:02 PM12/18/06
to Google Web Toolkit
I have a multi module application implemented on GWT and I want to use
a servlet filter which switches from http:// to https:// requests for
some parts of some modules and for some other parts no. Typically, I
want any request related to account to be SSL and any request related
to just display a catalog of products to not be SSL.

I had this filter working in my JSF application and now I want to have
the GWT application do the same. The problem is that I have no idea how
to do it.
This is what I had in my JSF app web.xml file:
<filter>
<filter-name>SecureTransportFilter</filter-name>
<filter-class>web.picasa.account.filters.SecureTransportFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>SecureTransportFilter</filter-name>
<url-pattern>/secure/*</url-pattern>
</filter-mapping>
I suppose I cannot use <url-pattern> and I will have to use
<servlet-name> but when I tried this:
<filter>
<filter-name>SecureTransportFilter</filter-name>
<filter-class>web.picasa.filters.SecureTransportFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SecureTransportFilter</filter-name>
<servlet-name>ProductService</servlet-name>
</filter-mapping>
the SecureTransportFilter doFilter method is called but my
ProductService rpc call failed.
So, what is the right way to do the filter mapping on GWT?

I also looked into G4jsf CDK to integrate the JSF page navigation with
my GWT modules but I could not figure out how to genarate multiple JSF
components out of my multiple GWT modules. I would need a way to have
<widget:component> for different modules (something like
<widget:account> and <widget:catalog>). Anybody know how to do this or
where can I find G4jsf documentation? I already have look into the
http://www.theserverside.com/tt/articles/article.tss?l=GWTandJSF
article.

Thanks for your help.

danael

unread,
Dec 18, 2006, 3:58:18 PM12/18/06
to Google Web Toolkit
Reply all
Reply to author
Forward
0 new messages