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 "James Schopp (JIRA)" <br...@portals.apache.org> on 2005/09/30 00:05:47 UTC

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

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


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


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

Posted by "Ate Douma (JIRA)" <br...@portals.apache.org>.
     [ 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


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

Posted by "Ate Douma (JIRA)" <br...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/PB-10?page=all ]

Ate Douma updated PB-10:
------------------------

    Component: struts

> 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
>   Components: struts
>  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


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

Posted by "Ate Douma (JIRA)" <br...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/PB-10?page=all ]
     
Work on PB-10 started by 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
>   Components: struts
>  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


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

Posted by "Ate Douma (JIRA)" <br...@portals.apache.org>.
     [ http://issues.apache.org/jira/browse/PB-10?page=all ]
     
Ate Douma closed PB-10:
-----------------------

    Fix Version: 0.4
     Resolution: Fixed

Fixed:
  http://svn.apache.org/viewcvs?rev=306958&view=rev

> 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
>   Components: struts
>  Environment: JBoss 4.0.2, Tomcat 5.x; Liferay 3.6.1
>     Reporter: James Schopp
>     Assignee: Ate Douma
>      Fix For: 0.4

>
> 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