Thread: Re: [Actionframework-users] Problems sending input parameters
Status: Inactive
Brought to you by:
ptoman
From: <rp...@ho...> - 2003-01-16 10:49:25
|
As you wish. It's not important at all. But it'd be good that it was considered for the future. Thanks for your work! > > > > <action name="/votar/$seccion/$nombre" > > method="addVote(String seccion, String nombre, int opcion)"> > > <input-variable name="opcion" value="0" if="!$opcion" /> > > </action> > > > > GET /votaciones/votar/a/b/?opcion=1 > > GET /votaciones/votar/a/b/?opcion=2 > > > > Input variable $opcion is always 0, though $seccion is 'a' and $nombre > > is 'b' > > > > Apparently two diferents ways to pass input variables are not considered > > in the same <action>. > > This is true. If regex action is used, values of ?parameters are not > retrieved. We can change this behaviour for next release, if you like. > > -Petr > -- > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > > > > > > --__--__-- > > _______________________________________________ > Actionframework-users mailing list > Act...@li... > https://lists.sourceforge.net/lists/listinfo/actionframework-users > > > End of Actionframework-users Digest > > |
From: Petr T. <Pet...@pi...> - 2003-01-19 18:39:03
|
I'm sorry, my mistake. This is the same bug that reported B.Martin. I have fixed it and I hope to release beta2 during this week. -Petr -- [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] |
From: <bm...@ho...> - 2003-01-20 18:53:14
|
well, the error I reported was that the input parameters were not evaluated with the <input-variable> tag and the error raul reported was that there were no possibility of sending variables using tow different ways(regexp and get method) eventually, we found another bug while trying to send parameters with the regexp method: if the parameters contains any special char, the value of the param that receives the method is changed before it arrives. for example, I have the following url: /detalles/Cáceres I in the console, I get the following output: C%C3%A1ceres <-- this is the param I put and use as key of hashmap null <-- this is the object I should get but if I put in the url detalles?localidad=Cáceres , I have that output: Cßceres com.hola.viajes.eltiempo.PrevisionLocalidad@12501 So, it seems that the input parameter is encoded in some way. Thx in advance. ----- Original Message ----- From: "Petr Toman" <Pet...@pi...> To: <act...@li...> Sent: Sunday, January 19, 2003 7:40 PM Subject: Re: [Actionframework-users] Problems sending input parameters > I'm sorry, my mistake. This is the same bug that reported B.Martin. > I have fixed it and I hope to release beta2 during this week. > > -Petr > -- > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Actionframework-users mailing list > Act...@li... > https://lists.sourceforge.net/lists/listinfo/actionframework-users > > |
From: Petr T. <Pet...@pi...> - 2003-01-21 10:39:17
|
> eventually, we found another bug while trying to send parameters with > the regexp method: if the parameters contains any special char, the=20 > value of the param that receives the method is changed before it arrive= s. > for example, I have the following url: > /detalles/C=E1ceres In general, it is STRONGLY recommended not to use special chars for URLs! Unless you encode them acording to the URL/HTTP(?) specification, you get unpredictable behaviour in different browsers and versions. -Petr |
From: <bm...@ho...> - 2003-01-21 15:17:52
|
well, the problem was that we also tried to encode it with URLEncoder class, but then we got an error saying that we was using characters not accepted by the utf-8 encoding. we just found curious that these characters were accepted or not depending from the method we were using. bye. ----- Original Message ----- From: "Petr Toman" <Pet...@pi...> To: <act...@li...> Sent: Tuesday, January 21, 2003 11:39 AM Subject: Re: [Actionframework-users] Problems sending input parameters > eventually, we found another bug while trying to send parameters with > the regexp method: if the parameters contains any special char, the > value of the param that receives the method is changed before it arrives. > for example, I have the following url: > /detalles/Cáceres In general, it is STRONGLY recommended not to use special chars for URLs! Unless you encode them acording to the URL/HTTP(?) specification, you get unpredictable behaviour in different browsers and versions. -Petr ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Actionframework-users mailing list Act...@li... https://lists.sourceforge.net/lists/listinfo/actionframework-users |