• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

https request with for jsf pages with redirect in navigation.xml does not work

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we are trying to configure https request for our application which is using jsf pages. The web.xml in the war is configured with facesservlet mapped to *.faces request. when clicked from menu the frist request is to index.faces which invokes managed bean method this method then returns success. in Navigation.xml for index.xhtml on success it is set to redirect to page devices.xhtml. the problem that we are facing is in http the whole process works fine. however in https the redirect to devices.xhtml is not happening. the configuration in web.xml is <?xml version="1.0"?> < !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">; <web-app> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/navigation.xml</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> < !-- Faces Servlet Mapping --> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> </web-app> we are using Tomcat 6.0.16 and Apache as webserver. Is there something missing in the configuration for redirect of jsf to work in https configuration in navigation.xml is <from-view-id>/devicemanager/index.xhtml</from-view-id> <from-action>${devicebean.loaddevice}</from-action> <from-outcome>success</from-outcome> <to-view-id>/devicemanager/device.xhtml</to-view-id> </redirect> Appreciate if anyone can help us solve configuration with redirect in jsf with https.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic