http « Tomcat « JSF Q&A





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

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

<security-constraint>
  ...

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

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