http « Tomcat « JSF Q&A

1. redirect to http back after https in tomcat + jsf

I have a login page that I would like to show in https. After validating the user, I would like to transfer him back to http. So I declared in web.xml


2. how to save a file in http server using jsf?

String urlPath = "http://hostname:portno/filepath.pdf";
            url = new URL(urlPath);
            URLConnection ...