You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2008/12/02 07:36:37 UTC
[jira] Commented: (WW-2791) rest or codebehind is adding a trailing
space to URL
[ https://issues.apache.org/struts/browse/WW-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45091#action_45091 ]
Wes Wannemacher commented on WW-2791:
-------------------------------------
Scott, I'm having a bit of trouble following what you are saying... I'm guessing you meant 'trailing slash' in the title, but I got confused around your context root, is it poll or pollsystem? I'm guessing your context root is pollsystem and poll is the resource. When you say the URL had been reconstructed, when did this happen? Was this a 302 that forwarded you back to there?
> rest or codebehind is adding a trailing space to URL
> ----------------------------------------------------
>
> Key: WW-2791
> URL: https://issues.apache.org/struts/browse/WW-2791
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - REST
> Reporter: Scott Stanlick
>
> I created a web application similar to the struts2-rest-showcase-2.1.2.war. The context root was "poll" and when I made a request for the URL http://localhost:8080/pollsystem/poll, the controller method was being executed and my list was returned. However, the URL had been reconstructed to include a trailing slash http://localhost:8080/pollsystem/. This was resulting in broken links on the page as in:
> http://localhost:8080/pollsystem/poll/poll/3
> After hours of researching the problem, I discovered that I had a folder named poll that I had originally created to contain my web pages. This folder was at the same level as WEB-INF. After removing this folder, the trailing slash was gone!
> I added an empty folder named orders to the struts2-rest-showcase-2.1.2.war application and it started to fail for the same reason.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.