aspose file tools*
The moose likes Struts and the fly likes extra / in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "extra / in url" Watch "extra / in url" New topic
Author

extra / in url

c huisman
Greenhorn

Joined: Mar 17, 2004
Posts: 6
Hello,

I have an application that uses frames. The problem that I am experiencing is that when I go to a page that loads a new frameset all of my links and buttons work correctly - that is they produce the correct url: www.companyname.com/action.do?parameter1=blah . Now when I click one of these links it populates a new page in the frameset, but the links are all messed up. They all include an extra "/" before the action name: www.companyname.com//action.do?parameter=blah
<http://www.companyname.com/action.do?parameter=blah> . This extra "/" is also found in the <base href="."/> element for these pages.

This problem only occurs when I deploy the application (tomcat standalone no apache involved) onto a linux box. The problem does not occur when I test things on my windows box using eclipse and the tomcat sysdeo plugin.

Any idea what is going on here?

Thanks,

c.
c huisman
Greenhorn

Joined: Mar 17, 2004
Posts: 6
Sorry, I made a mistake in my previous post.
The url that ends up being posted becomes Http://action.do?parameter=blah instead of Http://www.mycompany.com/action.do?parameter=blah
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: extra / in url
 
Similar Threads
How to get and set request.getParameter?
domain forwarding
linking a url to my context
servlet mapping and image access
Adding html tags to script