• Post Reply Bookmark Topic Watch Topic
  • New Topic

core:url has generates extra slashes  RSS feed

 
Pat Villa
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let me know if my understanding is correct

<a href="<cut 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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 "/".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!