AnsweredAssumed Answered

JSF context for external resources & sticky sessions

Question asked by jag on Sep 2, 2005
Latest reply on Sep 4, 2005 by gavinc
I have 2 (possibly related) questions:

1) In your JSPs you use the following technique to refer to external resources (images etc.):
<%=request.getContextPath()%>
We were forced to used a similar methodology in a JSF application that we wrote (uses the Sun RI). Of course we wanted to use relative references but we found that for the first request the application was at a different point in the directory tree to the other requests. Is this the reason that you are obtaining the context from the implicit JSP request object?

2) Our application is deployed in a clustered WebLogic 8.1 SP4 environment. We have an intermittent problem which is causing the HTTP Session to be lost. It appears to happen when requesting images, CSS files etc (hence the possible relationship). This definitely could be a BEA issue but I was wondering whether you encountered anything similar during your development?

Outcomes