0 Replies Latest reply on Feb 19, 2002 4:02 PM by Dmitri Colebatch

    struts link tag on 3.0cvs - no host

    Dmitri Colebatch Newbie

      hey all,

      I've got a weird situation - I'm using JBoss cvs HEAD as of 19/feb/02, tried the following on win2k and mandrake8 - both with sun 1.3 jvm.

      I have a struts page with a part like this:

      <logic:iterate id="player" name="allPlayers">
      <html:link forward="player-details"
       paramProperty="name"><jsp:getProperty name="player" property="name" /></html:link><br />

      which in my struts experience is fine.... but, what it creates is:
      <a href="//players/detail.do?player.name=dim">dim</a><br />
      <a href="//players/detail.do?player.name=steve">steve</a><br />

      which is obviously not what I'm after. I've checked the request object for getServerName() etc., and they all behave as expected. It seems that in struts RequestUtils.absoluteURL ->
       URL url = new URL(request.getScheme(),
       request.getContextPath() + path);

      gets an empty request object, and is creating a URL from nothing but the path.

      At this stage I'm still trying to pin it down, but am wondering if anyone else has experienced this?