wood burning stoves 2.0
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "extra / in url" Watch "extra / in url" New topic

extra / in url

c huisman

Joined: Mar 17, 2004
Posts: 6

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?


c huisman

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
It's not a secret anymore!