You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-dev@portals.apache.org by "Ate Douma (JIRA)" <br...@portals.apache.org> on 2005/10/01 18:24:49 UTC

[jira] Assigned: (PB-10) Double slash in URL generated by html:rewrite with resource in module

     [ http://issues.apache.org/jira/browse/PB-10?page=all ]

Ate Douma reassigned PB-10:
---------------------------

    Assign To: Ate Douma

> Double slash in URL generated by html:rewrite with resource in module
> ---------------------------------------------------------------------
>
>          Key: PB-10
>          URL: http://issues.apache.org/jira/browse/PB-10
>      Project: Portals Bridges
>         Type: Bug
>  Environment: JBoss 4.0.2, Tomcat 5.x; Liferay 3.6.1
>     Reporter: James Schopp
>     Assignee: Ate Douma

>
> I am using the struts bridge taglib to perform an HTML rewrite to include some javascript resources, and the URL generated includes a double slash:
> The URL I need is:           <script language='JavaScript' src='/WebFacing/webfacing/ClientScript/webface5122.js'></script>
> The URL I get is:          <script language='JavaScript' src='/WebFacing//webfacing/ClientScript/webface5122.js'></script>
> Note: the browser doesn't complain, but it is not correct.
> 1) My portal is deployed to the "root" context.
> 2) My struts-bridge portlet is deployed to the context "/WebFacing", which also includes a Struts module called "webfacing" (under a directory called "webfacing"). So, most resources need to be included (from the root) as "/WebFacing/webfacing/ClientScript/usr/myscript.js" (for example)
> 3) The JSP has (note: this runs within the module "webfacing"):
>           <script language='JavaScript' src='<html:rewrite page="/ClientScript/webface5122.js" />'></script>
> 4) The struts-portlet-config.xml has:
>           <portlet-url-type>
>                     <resource path="/webfacing/ClientScript/"/>
>                     ...
> 5) But, in the HTML that gets generated, the URL is see is:
>           <script language='JavaScript' src='/WebFacing//webfacing/ClientScript/webface5122.js'></script>
>          Note the double slash.
> thanks, james

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org