Re: URLEncoding a string

2008-08-20 Thread Dave Newton
--- On Wed, 8/20/08, Paolo Niccolò Giubelli wrote:
>> Dave Newton wrote:
>>> I'm pretty sure it's Struts 1, since there are both  [...]
> Yeah, it's struts1.
> So, should I use ? Does it perform an urlencoding?

Wouldn't it have been quicker to either (a) try it, or (b) search the fine web, 
rather than waiting for a meta-Google?

http://www.ibm.com/developerworks/java/library/j-jstl0318/#N105D1

Dave


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



Re: URLEncoding a string

2008-08-20 Thread Paolo Niccolò Giubelli

Oleg Mikheev ha scritto:

Dave Newton wrote:
I'm pretty sure it's Struts 1, since there are both  and 


Yeah, it's struts1.
So, should I use ? Does it perform an urlencoding?

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



Re: URLEncoding a string

2008-08-19 Thread Oleg Mikheev

Dave Newton wrote:

I'm pretty sure it's Struts 1, since there are both  and  tags. 
The  answer, however, is probably the easiest.


My bad :)
I always keep forgetting that two Struts' share one mail list

Oleg


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



Re: URLEncoding a string

2008-08-19 Thread Dave Newton
--- On Tue, 8/19/08, Oleg Mikheev wrote:
> Paolo Niccolò Giubelli wrote:
>> 
> 
> What is your Struts 2 version? I thought that at some point
> Struts 2 made it impossible to use JSTL expressions inside its
> tags... But anyway URLEncoding cannot be done in JSTL.
> You could use  to assign your URL to a variable 
> and then use it in your html:link (with an OGNL expression :)

I'm pretty sure it's Struts 1, since there are both  and  
tags. The  answer, however, is probably the easiest.

Dave


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



Re: URLEncoding a string

2008-08-19 Thread Oleg Mikheev

Paolo Niccolò Giubelli wrote:






What is your Struts 2 version? I thought that at some point Struts 2
made it impossible to use JSTL expressions inside its tags...
But anyway URLEncoding cannot be done in JSTL.
You could use  to assign your URL to a variable and then use it
in your html:link (with an OGNL expression :)

Oleg


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



Re: urlencoding

2005-06-13 Thread Leon Rosenberg
aehm... dont trust what you see in the system.out. What you see depends
on what encoding your console actually drives, and that would be
probably something different from what java does (typically iso-8589-1)

regards
leon

On Mon, 2005-06-13 at 11:44 -0400, Franck wrote:
> Hi,
> 
> in my webapp,  I have the following tag :
> 
>  paramProperty="fullName">folder
> 
> In some case, "fullName" has special chars
> In the result source I can see :
> 
> folder
> 
> The URL seems  to be correctly UTF-8 encoded
> 
> In the "folder.do" Action, if I SysOut the "folder" parameter, I just can 
> see some other special chars in the String (a special "A" and a "copyright")
> an URLDecode.decode(myString, "UTF-8") doesn't work.
> 
> Where is my mistake ?
> 
> Thanks
> Bye 
>  
> 
>  
> 
> 
> Orange Caraibe 
> IMPORTANT.  
> CONFIDENTIEL : Les informations contenues dans ce message sont 
> confidentielles et peuvent etre protegees par la loi. Ce message est etabli a 
> l'intention exclusive de ses destinataires. Si vous recevez ce message par 
> erreur, toute lecture, exploitation ou transmission des informations 
> contenues dans ce message est interdite. Merci de prevenir l'expediteur et de 
> supprimer de votre ordinateur le message et tous les fichiers eventuellement 
> attaches.  
> Tout message electronique est susceptible d'alteration. Orange Caraibe 
> decline toute responsabilite au titre de ce message s'il a ete altere, 
> deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de 
> l'absence de tout virus.http:/www.orangecaraibe.com 
> IMPORTANT.  
> CONFIDENTIALITY : this e-mail is confidential and meant for only the intended 
> recipients of the transmission, and may be a communication privileged by law. 
>  If you received this e-mail in error, any review, use, dissemination, 
> distribution or copying of this e-mail is strictly prohibited. Please notify 
> the sender immediately of the error by return e-mail and please delete this 
> message and any attachments from your system. Thank you in advance for your 
> cooperation.  
> E-mails are susceptible to alteration. Orange Caraibe shall not be liable for 
> the message if altered, changed or falsified. the recipient should ensure 
> they are actually virus free. Orange Caraibe may monitor all incoming and 
> outgoing e-mails in line with current legislation. 
> http:/www.orangecaraibe.com 
>  
> 



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



RE: urlencoding

2005-06-13 Thread Deb, Sujan
Hi there,

Try to use the following before you write anything to response:

response.setContentType("text/html; charset=UTF-8");

Make sure you use this before any call - response.getWriter();

Cheers
Sujan

-Original Message-
From: Franck [mailto:[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 11:45 AM
To: struts-user@jakarta.apache.org
Subject: urlencoding


Hi,

in my webapp,  I have the following tag :

folder

In some case, "fullName" has special chars
In the result source I can see :

folder

The URL seems  to be correctly UTF-8 encoded

In the "folder.do" Action, if I SysOut the "folder" parameter, I just can 
see some other special chars in the String (a special "A" and a "copyright")
an URLDecode.decode(myString, "UTF-8") doesn't work.

Where is my mistake ?

Thanks
Bye 
 

 
 
 
Orange Caraibe 
IMPORTANT.  
CONFIDENTIEL : Les informations contenues dans ce message sont
confidentielles et peuvent etre protegees par la loi. Ce message est etabli
a l'intention exclusive de ses destinataires. Si vous recevez ce message par
erreur, toute lecture, exploitation ou transmission des informations
contenues dans ce message est interdite. Merci de prevenir l'expediteur et
de supprimer de votre ordinateur le message et tous les fichiers
eventuellement attaches.  
Tout message electronique est susceptible d'alteration. Orange Caraibe
decline toute responsabilite au titre de ce message s'il a ete altere,
deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de
l'absence de tout virus.http:/www.orangecaraibe.com 
IMPORTANT.  
CONFIDENTIALITY : this e-mail is confidential and meant for only the
intended recipients of the transmission, and may be a communication
privileged by law.  If you received this e-mail in error, any review, use,
dissemination, distribution or copying of this e-mail is strictly
prohibited. Please notify the sender immediately of the error by return
e-mail and please delete this message and any attachments from your system.
Thank you in advance for your cooperation.  
E-mails are susceptible to alteration. Orange Caraibe shall not be liable
for the message if altered, changed or falsified. the recipient should
ensure they are actually virus free. Orange Caraibe may monitor all incoming
and outgoing e-mails in line with current legislation.
http:/www.orangecaraibe.com 
 
 

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