incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-590) way of integrating JavaScript libraries in default template
Date Fri, 21 Aug 2009 09:33:14 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745873#action_12745873
] 

Harry Metske commented on JSPWIKI-590:
--------------------------------------

So, if I understand your situation correctly :

* your JSPWiki baseURL is https://wiki.somewhere.com/
* your apache's access logs show requests without /my-context-path

In that case, I think the plain.jsp should be changed : getContextPath() => getPathInfo()
right ?

see: my-context-path: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getPathInfo()

> way of integrating JavaScript libraries in default template
> -----------------------------------------------------------
>
>                 Key: JSPWIKI-590
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-590
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Default template
>    Affects Versions: 2.8.3
>            Reporter: Florian Holeczek
>            Priority: Minor
>
> I've just configured JSPWiki to run on a Tomcat 6 behind an Apache 2.2 web server, connected
via mod_proxy_ajp.
> The client URL is https://wiki.somewhere.com/ and the real URL on Tomcat is ajp://my.intra.com:8009/my-context-path/
> Everything is running fine, there's just one little problem left:
> On the Edit page, two JavaScript libraries can't be loaded because the browser is searching
for them under /my-context-path/scripts/xyz.js instead of /scripts/xyz.js:
> <script type='text/javascript' src='/my-context-path/scripts/jspwiki-edit.js'></script>
> <script type='text/javascript' src='/my-context-path/scripts/posteditor.js'></script>
> This is because of the following lines in templates/default/editors/plain.jsp:
> TemplateManager.addResourceRequest( context, "script",  contextPath + "/scripts/jspwiki-edit.js"
);
> TemplateManager.addResourceRequest( context, "script",  contextPath + "/scripts/posteditor.js"
);
> Now I'm not sure whether this is a bug in JSPWiki or I have to configure anything more
in Tomcat.
> WDYT?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message