Re: string concatenation within an EL conditional

2011-05-10 Thread Maurizio Cucchiara
I don't know if it works and/or it what you're looking for, but it worths at least a try: ${m.dispName} Please let me know if it works. On 10 May 2011 17:44, Scott Koenig wrote: > Hello, > > This may fall under nested EL expressions, which to my understanding are > intentionally d

Re: string concatenation within an EL conditional

2011-05-10 Thread Dave Newton
On Tue, May 10, 2011 at 11:44 AM, Scott Koenig wrote: > This may fall under nested EL expressions, which to my understanding are > intentionally disallowed, but I was wondering if there was EL syntax that > would support what I am trying to do, namely, set a URL based on a > conditional, or if I sh

string concatenation within an EL conditional

2011-05-10 Thread Scott Koenig
Hello, This may fall under nested EL expressions, which to my understanding are intentionally disallowed, but I was wondering if there was EL syntax that would support what I am trying to do, namely, set a URL based on a conditional, or if I should stick with . Currently I have ${m.dispName

Re: [OT] EL expressions and string concatenation

2007-11-07 Thread Adam Hardy
Antonio Petrelli on 05/11/07 08:14, wrote: 2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: Antonio Petrelli on 04/11/07 16:17, wrote: 2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: I want to concatenate 2 vars into a string in EL but since one is a Long, EL can't do it, and throws a NumberFormatExcep

RE: EL expressions and string concatenation

2007-11-05 Thread Karr, David
Would this work? href="${pc:url('/category/edit.html?category.id=')}${category.id}" > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 04, 2007 8:07 AM > To: Struts Users Mailing List > Subject: EL expressions an

Re: [OT] EL expressions and string concatenation

2007-11-05 Thread Antonio Petrelli
2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: > > Antonio Petrelli on 04/11/07 16:17, wrote: > > 2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: > >> I want to concatenate 2 vars into a string in EL but since one is a > Long, EL > >> can't do it, and throws a NumberFormatException because it wants them > b

Re: [OT] EL expressions and string concatenation

2007-11-04 Thread Adam Hardy
Antonio Petrelli on 04/11/07 16:17, wrote: 2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: I want to concatenate 2 vars into a string in EL but since one is a Long, EL can't do it, and throws a NumberFormatException because it wants them both to be Longs so it can do arithmetic addition instead. Yo

[OT] Re: EL expressions and string concatenation

2007-11-04 Thread Antonio Petrelli
2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: > I want to concatenate 2 vars into a string in EL but since one is a Long, EL > can't do it, and throws a NumberFormatException because it wants them both to > be > Longs so it can do arithmetic addition instead. You could set a string variable this way

EL expressions and string concatenation

2007-11-04 Thread Adam Hardy
This is slightly off-topic but I hope not too much, and there is a reference to struts here because I used to do this with struts1 taglibs! I want to concatenate 2 vars into a string in EL but since one is a Long, EL can't do it, and throws a NumberFormatException because it wants them both to

Re: String concatenation

2005-07-29 Thread Dave Newton
Laurie Harper wrote: Konrad Billewicz wrote: I unfortunately don't know anything about JSTL. My project is so urgent that currently I am not able to experience and use this technology. But I'll look at it closely. Thank you for advice. Invest an hour on some learning and you'll be repaid w

Re: String concatenation

2005-07-29 Thread Laurie Harper
Konrad Billewicz wrote: I unfortunately don't know anything about JSTL. My project is so urgent that currently I am not able to experience and use this technology. But I'll look at it closely. Thank you for advice. Invest an hour on some learning and you'll be repaid within a day ;-) -- Laurie

Re: String concatenation

2005-07-29 Thread Stéphane Zuckerman
Konrad Billewicz a écrit : do you need to put dictionaryId to querystring? i come up with "> as an alternative It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in Struts-driven applications? I am quite new in Struts and I don't want to get bad habits. :-) In

Re: String concatenation

2005-07-29 Thread Konrad Billewicz
Laurie Harper holoweb.net> writes: > Firstly, you can combine get with forms; if you use method="GET" the hidden > parameter Dave suggested will show up in the URL. Either way, you wouldn't > have to 'check the request and secondly the form' since GET and POST > parameters are both accessed th

Re: String concatenation

2005-07-28 Thread Laurie Harper
Konrad Billewicz wrote: Dave Newton pingsite.com> writes: I've never put a parameter in a form's action attribute--why would you want to do that? Wouldn't it be much cleaner to use a hidden form field with the appropriate parameter name? So your original example would be (minus whatever sill

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
Dave Newton pingsite.com> writes: > I've never put a parameter in a form's action attribute--why would you > want to do that? Wouldn't it be much cleaner to use a hidden form field > with the appropriate parameter name? > > So your original example would be (minus whatever silly syntax mistake

Re: String concatenation

2005-07-28 Thread Dave Newton
Konrad Billewicz wrote: value="<%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING %>" /> It's not exactly what I expected, but it's better solution than mine. Ideally I thought about complete aviodance of <% and %> tags. I wish to use only Struts

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
> do you need to put dictionaryId to querystring? > i come up with > > "> > as an alternative It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in Struts-driven applications? I am quite new in Struts and I don't want to get bad habits. :-) Best regards, Konrad B

Re: String concatenation

2005-07-28 Thread Konrad Billewicz
> I'm not sure I've understood correctly what you want to do, but here's > what I would do : > > id="myBean" >value="<%= SomeConstantsHolderClass.CONSTANT_STRING + > SomeConstantsHolderClass.CONSTANT_STRING %>" /> > > > ... It's not exactly what I expected, but it's better solution th

Re: String concatenation

2005-07-28 Thread ichy
hi, Konrad. do you need to put dictionaryId to querystring? i come up with "> as an alternative regards ichy

Re: String concatenation

2005-07-28 Thread Stéphane Zuckerman
Hello Konrad, I'm not sure I've understood correctly what you want to do, but here's what I would do : value="<%= SomeConstantsHolderClass.CONSTANT_STRING + SomeConstantsHolderClass.CONSTANT_STRING %>" /> ... Don't forget that you can still use an action _before_ you go to your JSP to

String concatenation

2005-07-28 Thread Konrad Billewicz
Hi, I would like to use Struts tags in JSP file in order to dynamically merge two beans. First is constant String, second is an Integer. The current, very dirty : -(, version is as follows (I present it in order to give you a better view of what I'm trying to do): ... <% String action = "cr

Re: JSTL String concatenation

2004-09-20 Thread Kris Schneider
For reference, here's a snippet from the JSTL 1.0 Spec., Section 3.1 Expressions and Attribute Values: It is also possible for an attribute to contain more than one EL expression, mixed with static text. For example, the following would display "Price of productName is productPrice" for a list of

Re: JSTL String concatenation

2004-09-20 Thread Adrian Kamiński
> > > a href= XX > > > > > where XX is the problem bit. I want to concatenate "/" + path + > "${sound.fileName}" so that the href gets the full path and but only the > filename is displayed. Hi, Please look at this article maybe it helps you some way: http://www.samspublishing

Re: JSTL String concatenation

2004-09-20 Thread Kris Schneider
Quoting andy wix <[EMAIL PROTECTED]>: > Hi, > > I have been trying for about 4 hours to get something to work that would > take about 4 minutes using scriplets! (and I can find no reference to this > in my Core Jstl book). > > Basically, I have an arraylist of sound objects in the session an

JSTL String concatenation

2004-09-20 Thread andy wix
Hi, I have been trying for about 4 hours to get something to work that would take about 4 minutes using scriplets! (and I can find no reference to this in my Core Jstl book). Basically, I have an arraylist of sound objects in the session and when the user clicks one - it should play. The obje