[jboss-user] [JBoss Seam] - Re: How to get request object, for example the servletPath

Basel do-not-reply at jboss.com
Thu Sep 7 10:18:22 EDT 2006


Try not to use the Servlet API unless you have. Try something similar to this:

  | @In
  | private FacesContext facesContext;
  | private HttpServletRequest request;
  | 
  | public void initComponent(){
  | 	request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970104#3970104

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970104



More information about the jboss-user mailing list