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

    struts link tag on 3.0cvs - no host

    dim

      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"
       paramId="player.name"
       paramName="player"
       paramProperty="name"><jsp:getProperty name="player" property="name" /></html:link><br />
      </logic:iterate>
      

      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.getServerName(),
       request.getServerPort(),
       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?

      cheers
      dim