Hello

with mac on #axkit we saw where one of the problems is happening, even if we still don't know why and, most of all, why it worked on 1.5 and it doesn't work any more.

The requests to this XSP page are managed with mod_rewrite, also[*].

For some reason, the subrequests generated by this snippet of XSP:

    <![CDATA[
    for (my $i = 0 ; $i <= 19 ; $i++) {
      my $file = "$docroot/id".($id-$i).".xml" ;
      next unless -e $file and -f _ ;
    ]]>
    <util:include-file>
      <util:name><xsp:expr>$file</xsp:expr></util:name>
    </util:include-file>
    }

hit mod_rewrite again, and get garbled. e.g., a subrequest for /var/www/messygee/id1234.xml got rewritten in /var/www/messygee/var/www/messygee/id1234.xml

This works:

    <![CDATA[
    for (my $i = 0 ; $i <= 19 ; $i++) {
      my $file = "$docroot/id".($id-$i).".xml" ;
      next unless -e $file and -f _ ;

      my $href = "axkit:/id".($id-$i).".xml" ;
    ]]>
    <util:include-uri>
      <util:href><xsp:expr>$href</xsp:expr></util:href>
    </util:include-uri>
    }

The encoding problem still remains.

Ciao and thanks for the help
--M

_____________
[*] this was to give more mnemonic names to the people: headlines.html seemed easier to remember than headlines.xsp?style=html


--
Marco Marongiu                         Email: [EMAIL PROTECTED]
CRS4 Research Center                   Phone: +39 070 9250 336
NCS Division                           Fax:   +39 070 9250 216
NSM Group                              WWW: http://bugs.unica.it:4444/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to