I did away with the filter.  I am posting an example here in case anyone finds 
it useful.  I mainly use this to set the href value is the base tag in xhtml.

People have helped me on this so I am going to start posting general examples 
here.


  | @Stateless
  | @Name("exposeHttpServletRequest")
  | @Scope(ScopeType.EVENT)
  | @Interceptors(SeamInterceptor.class)
  | public class ExposeHttpServletRequestBean implements Serializable, 
ExposeHttpServletRequest                
  | {
  |   private static final long serialVersionUID = 2675604092563757800L;
  |   
  |   @SuppressWarnings("unused")
  |   @Out(scope = ScopeType.EVENT, required = false)
  |   private String userJAAS;
  |   
  |   @SuppressWarnings("unused")
  |   @Out(scope = ScopeType.EVENT, required = false)
  |   private String basePath;
  |   
  |   @In
  |   private FacesContext facesContext;
  |   
  |   private HttpServletRequest request;
  |   
  |   @Create
  |   public void setup() {
  |     request = (HttpServletRequest) 
facesContext.getExternalContext().getRequest();
  |   }  
  |   
  |   @Factory("userJAAS")
  |   public void loadUserJAAS()  
  |   {
  |     userJAAS = request.getRemoteUser();
  |   }
  |   
  |   @Factory("basePath")
  |   public void loadBasePath()
  |   {
  |      basePath = request.getScheme() + "://" +
  |                 request.getServerName() + ":" + 
  |                 request.getServerPort() + request.getContextPath() + "/";
  |   }
  | 


  | 
  | @Local
  | public interface ExposeHttpServletRequest {
  |   public void loadUserJAAS();   
  |   public void loadBasePath();
  |   public void setup();
  | }
  | 

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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to