This is how I do it. Maybe there is a better way?
if (getContext().getRequest().isSecure()) {
return new ForwardResolution(VIEW);
}
else
{
return new RedirectResolution("https://www" +
getContext().getRootCookieDomain() + "/" +
getContext().getRequest().getContextPath(), false);
}
On Sep 17, 2012, at 7:16 AM, Brian McSweeney wrote:
> Hi guys,
>
> I have a stripes webapp that I would like to add SSL support for in a few
> pages only.
>
> I've come from a struts background where we had ssl-ext as an extension which
> simplified this. I've also searched the archives and come across
> http://www.stripesframework.org/jira/browse/STS-239 and some questioning
> threads about this topic none of which have been comprehensively resolved to
> me.
>
> Can someone point me at a solution/approach to securing a few pages in
> stripes and switching between http and https?
>
> cheers,
> Brian
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users