Hi,

 

Is there a JSF component for base path? I like to achieve the equivalence of the following:

 

<% String basePath = request.getScheme() + "://" + request.getServerName() +

":" + request.getServerPort() + request.getContextPath() + "/";%>

 

      <link href="<%=basePath%>styles/basic.css" rel="stylesheet" type="text/css" />

 

I am migrating to facelets and I need to find an equivalent to the above as relative path won’t work because JSF navigation leaves the URL one step behind the actual URL.

 

Or is there an alternate to this?

 

 

Many thanks in advance,

 

Best Regards,

Yee

Reply via email to