potential issue with ConfigDecoratorMapper
Sanjiv Jivan <[email protected]> Thu, 05 May 2005 13:38:56 CDT
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <17154985.1115318388710.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I am trying to decorate static html that is served by my Weblogic 8.1 sp4 web server. The problem is that request.getServletPath() returns an empty String in Weblogic 8.1 for URI's that are not mapped to a servlet however ConfigDecoratorMapper is only checking for a null value and hence the requested resource is not decorated.
I am doing something wrong? Or should I file an issue?
Thanks,
Sanjiv
com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper
public Decorator getDecorator(HttpServletRequest request, Page page) {
String thisPath = request.getServletPath();
// getServletPath() returns null unless the mapping corresponds to a servlet
[b] if (thisPath == null) {[/b]
String requestURI = request.getRequestURI();
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=1976&messageID=6089#6089
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]