If you want to force https for ALL pages then the following is simpler then manually putting @Secure on each page.
public void contributeMetaDataLocator(MappedConfiguration<String, Object> configuration) { configuration.add(MetaDataConstants.SECURE_PAGE, true); } This is all very well documented here: http://tapestry.apache.org/https.html#HTTPS-SecuringMultiplePages Cheers, Dragan Sahpaski On Wed, Jan 15, 2014 at 1:12 PM, Dmitry Gusev <dmitry.gu...@gmail.com>wrote: > What I suggest is to put @Secure annotation to your pages so that your > links to that pages started with https:// > Also if you open these pages with HTTP Tapestry will do automatic redirect > to HTTPS > > > > On Wed, Jan 15, 2014 at 4:02 PM, Athneria, Mahendra < > mahendra.athne...@atos.net> wrote: > > > Hi Dmirty, > > > > Thanks for your reply. I have already made the full application secure by > > adding configuration.add(SymbolConstants.*SECURE_ENABLED*, "true") into > > appmodule.java. > > > > What you are suggesting is to make the one page secure. > > > > Regards, > > Mahendra > > > > -----Original Message----- > > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com] > > Sent: Wednesday, January 15, 2014 5:20 PM > > To: Tapestry users > > Subject: Re: HTTPS enabled Application > > > > Try putting @org.apache.tapestry5.annotations.Secure annotations on your > > pages. > > > > > > On Wed, Jan 15, 2014 at 3:02 PM, Athneria, Mahendra < > > mahendra.athne...@atos.net> wrote: > > > > > Hi, > > > > > > > > > > > > I am facing issue related to HTTPS in tapestry. My tomcat server is > > > HTTPS enabled. When I try to access the login page of my tapestry > > > application I got below message. > > > > > > > > > "Bad Request > > > > > > Your browser sent a request that this server could not understand. > > > Reason: You're speaking plain HTTP to an SSL-enabled server port. > > > Instead use the HTTPS scheme to access this URL, please. > > > > > > Hint: > > > *https://demo-ccbo.gecko.aw.atos.net/*<https://demo-ccbo.gecko.aw.atos > > > .net/> > > > > > > " > > > > > > > > > > > > > > > > > > My application is secured, I have configured below in appmodule.java > > > > > > > > > > > > "configuration.add(SymbolConstants.*SECURE_ENABLED*, "true")"; > > > > > > > > > > > > Still all the pageLinks and actionLinks generating http request. > > > > > > > > > > > > Any idea guys why it is happening? > > > > > > > > > > > > Regards > > > > > > Mahendra > > > > > > > > > > > -- > > Dmitry Gusev > > > > AnjLab Team > > http://anjlab.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > -- > Dmitry Gusev > > AnjLab Team > http://anjlab.com >