| Author |
core:url has generates extra slashes
|
Pat Villa
Greenhorn
Joined: Jan 05, 2004
Posts: 19
|
|
I have this statement in my jsp: I'm expecting it to generate: '/ajax/?command=getgraphdata&portletName=webgraph' However ${getgraphdataURL} ends up as '///ajax/?command=getgraphdata&portletName=webgraph' Any ideas on why this is so? Thanks
|
 |
pradheesh manohar
Greenhorn
Joined: Oct 09, 2006
Posts: 10
|
|
let me know if my understanding is correct <a href="<c ut value="${getgraphdataURL}"/>">link</a> you have tried something like this.and by clicking on the "link" in your brow ser takes you to 'contextname(web app root name)///ajax/?command=getgraphdata&portletName=webgraph'. if so ..make sure that your server is in running state. or else this must take you to the url 'contextname/ajax/?command=getgraphdata&portletName=webgraph' as you expected. hope this helped you out.
|
 |
Pat Villa
Greenhorn
Joined: Jan 05, 2004
Posts: 19
|
|
thanks pradheesh, Yes, the server was running at the time. Actually what i do is supply this url to an XmlHttpRequest.open call. i get a "permission denied" error (JavaScript side). When i hardcoded the single leading "/" url, it progressed past the XHR.open call. I suppose I could easily just put the url together myself but I'm curious as to why the url ends up with 3 leading "/".
|
 |
 |
|
|
subject: core:url has generates extra slashes
|
|
|