aspose file tools
The moose likes JSP and the fly likes core:url has generates extra slashes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "core:url has generates extra slashes" Watch "core:url has generates extra slashes" New topic
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="<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

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 "/".
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: core:url has generates extra slashes
 
Similar Threads
How to use, struts 1-- struts-config.xml and struts 2 -- struts.xml together?
Wiring Command to SimpleFormController
rich:menuGroup issue
Spring MVC dirt-simple app won't work
Problem with richfaces custom skin after ajax rendering using a4j:support