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]



URLEncoding a string

2008-08-19 Thread Paolo Niccolò Giubelli
This is my scenario: I'm url-rewriting my web application, so I'm 
putting some strings into the html:link href attributes, so to make my 
links more search-engine friendly.

Obviously, those strings are retrieved from the database.
An example follows:



The problem is ${category.name}, because sometimes string contain 
stressed letters, symbols and so on...

How can I Urlencode ${category.name}, keeping the code tidy?
Thanks in advance!
PAolo

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