SSO sample for Generic Java Web App


I need to implement single sign on authorization flow for generic Java Web App (no Spring, it is a Servlets/Struts framework based app). I have sign-in widget version of authentication flow working. How do I enable SSO using sign-in widget? Any help is greatly appreciated!