[
https://issues.apache.org/jira/browse/VELTOOLS-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464901
]
Nathan Bubna commented on VELTOOLS-64:
--------------------------------------
Hmm. I doubt it. I'm 99.99% certain there have been no relevant changes to
the VelocityTools code itself.
StrutsLinkTool.setAction(), LinkTool.copyWith(String), and
StrutsUtils.getActionMappingURL() are the same in 1.2 and 1.3 as far as i know.
Other possible points of differentiation are the version of Struts involved,
the specific iteration of Tomcat 5.5, or perhaps some Tomcat configuration
setting.
Further i'm also confused as to where the "http://" could be coming from in the
examples he cites. I do not think it likely that request.getContextPath()
would be inserting that into the value, and I'm sure neither
LinkTool.copyWith(String) nor LinkTool.toString() nor
StrutsLinkTool.setAction() nor StrutsUtils.getActionMappingURL() would ever
have inserted it. So, i'm left to suspect that either it is in John's
templates or the Struts code invoked by our StrutsUtils.getActionMappingURL()
somehow adds it for John where i have never seen it do so myself.
John, if you wish and are able, you can send me a WAR file with which you are
experiencing this problem, and i will try it out on my Tomcat 5.5 and Geronimo
1.1.1 w/Tomcat installs. That may help us track this down. Also, it seems it
may help to know what versions of Struts and Tomcat 5.5 you are using, if only
to eliminate other possible differences.
> Geronimo 1.1.1 with Tomcat install fails to render links correctly
> ------------------------------------------------------------------
>
> Key: VELTOOLS-64
> URL: https://issues.apache.org/jira/browse/VELTOOLS-64
> Project: Velocity Tools
> Issue Type: Bug
> Components: VelocityStruts
> Affects Versions: 1.2
> Reporter: John Eichelsdorfer
> Priority: Critical
> Fix For: 1.3
>
>
> I have been using VelocityTools for years and have a project successfully
> running in production on standalone Tomcat 5.5. When I run the same war file
> on Geronimo 1.1.1, links do not render correctly. Geronimo also uses a 5.5
> version of Tomcat in the standard distribution I am using.
> I am using Velocity 1.5 beta 1 and VelocityTools 1.2 from Maven.
> Given the following code that is parsed into a main file:
> <a
> href="$link.setAction('/pub/jobpost/list/submit').addQueryData("c","$!countrySel").addQueryData("r","$!pop.popId")">$!pop.popName
> Jobs</a>
> On Tomcat 5.5 standalone get:
> http://www.jobbank.com/action/pub/jobpost/list/submit?c=US&r=CA
> On Geronimo 1.1.1 with the same war file, we get:
> http://action/pub/jobpost/list/submit?c=US&r=CA
> The only difference obviously is the lack of domain name. Other links seem
> to work correctly that are referenced with an absolute path. For example:
> <a href="/action/exec/resume/choice/setup" title="Click here"> shows
> the correct hostname in the front.
> I was using a non-beta velocity, but moved up to using the beta to rule out
> this being the issue. I also did a search on the Geronimo distribution for
> any other file matching "velocity" but came up empty.
> I am not in a rush for this fix, but I think it is important to know that it
> will work in a next 1.5 Velocity release else people will be constantly using
> snapshots rather then a steady 1.5 build if this is where the problem lies.
> I am hoping it is somehow just a configuration issue, though I am using the
> most basic Geronimo setup.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]