You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by John McNally <jm...@collab.net> on 2002/01/04 18:05:09 UTC

Re: Comma in $link.setPage("foo,bar.vm") causes HTTP 400 Bad Request in Tomcat 4.0.1

I believe comma is %2C and %2F is / (slash).  If you are really getting
%2F it would cause problems which is the reason for using comma.  Are
you using a stock link tool?  Which one?

john mcnally

"Weaver, Scott" wrote:
> 
> Using Turbine 2.2b1
> 
> If I use this in the post action of my form I get a HTTP 400 Bad Request
> from Tomcat:
> 
> <form action="$link.setAction("my.action").setPage("foo,bar.vm")"
> method="post">
> 
> which renders to:
> 
> <form
> action="http://localhost:8080/app/action/my.action/template/foo%2Fbar.vm"
> method="post">
> 
> As soon as I remove setPage("foo,bar") or change it to another top-level
> template, setPage("foo"), everything works fine.
> 
> I think it has something to do with the %2F (comma).
> 
> My work around is just to:
> 
> <input type="hidden" name="template" value="foo,bar">
> 
> This is probably more of a Tomcat issue, but I thought I would bring to the
> group's attention and see if anybody had experienced it and may have a
> different solution.
> 
> Scott
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>