RE: logic tag using locale

2003-12-11 Thread Tsang, F (Fred)
/jsp do the presentation work. You could be right though... maybe a simple presentation bean that just handles internationalised fields. cheers, Fred -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: 10 December 2003 20:04 To: Struts Users Mailing List Subject: Re: logic

RE: logic tag using locale

2003-12-11 Thread Joe Hertz
I agree entirely. A pointer bean to the right data in the request. I'm so there. Thanks Ted. YTH -Joe -Original Message- From: Tsang, F (Fred) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 5:06 AM To: Struts Users Mailing List Subject: RE: logic tag using locale

RE: logic tag using locale

2003-12-10 Thread Joe Hertz
I've got a similar problem. You could write a scriptlet function that appended the correct languageCode onto your default property name and use the result of that string in the bean:write tag. Please let me know if you find a more elegant way around this. -Original Message- From:

Re: logic tag using locale

2003-12-10 Thread Ted Husted
I'd suggest resolving this type of language choice in the Action. For example, there could be one product bean that is populated with whatever language is preferred by the client. The page could then just write whatever has been placed into the bean. HTH, Ted. Tsang, F (Fred) wrote: All, I'm

Re: [Logic Tag] Can This work

2003-03-30 Thread Puneet Agarwal
] [EMAIL PROTECTED]cc: ache.orgSubject: Re: [Logic Tag] Can This work

Re: [Logic Tag] Can This work

2003-03-29 Thread James Mitchell
On Sat, 2003-03-29 at 02:46, Puneet Agarwal wrote: Unfortunately, this did not work, mostly because this will substitute the value at a later stage than required. I can't really help, if you don't specify your requirements. We need some other solution to this Any more clues !!!

Re: logic tag addition proposal

2003-03-20 Thread David Graham
This kind of logic is better done in an Action, not in the view layer. David From: Dan Allen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-User List [EMAIL PROTECTED] Subject: logic tag addition proposal Date: Thu, 20 Mar 2003 08:23:26 -0600 While coding my

Re: logic tag addition proposal

2003-03-20 Thread Dan Allen
David Graham ([EMAIL PROTECTED]) wrote: This kind of logic is better done in an Action, not in the view layer. David I disagree in this case. Assets should only be the concern of the view and sometimes, the view has to make sure that a certain state exists before it can display the asset.

Re: logic tag addition proposal

2003-03-20 Thread David Graham
PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: logic tag addition proposal Date: Thu, 20 Mar 2003 09:48:26 -0600 David Graham ([EMAIL PROTECTED]) wrote: This kind of logic is better done in an Action, not in the view

Re: logic tag addition proposal

2003-03-20 Thread Arron Bates
David Graham ([EMAIL PROTECTED]) wrote: This kind of logic is better done in an Action, not in the view layer. David I disagree in this case. Assets should only be the concern of the view and sometimes, the view has to make sure that a certain state exists before it can display the

RE: logic tag and %= % HELP!

2003-01-24 Thread Pani, Gourav
wouldn't using bean:write instead of using the %= % part solve your problem or am i trying to make this too simple??? -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 4:21 PM To: [EMAIL PROTECTED] Subject: logic tag and %= % HELP! Regardless

RE: logic tag and %= % HELP!

2003-01-24 Thread Karr, David
This might work better for you: logic:present name=details scope=request bean:write name=details property=value/ /logic:present -Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: logic tag and %= %

RE: Logic tag

2002-09-23 Thread Tejas Bavishi
' Subject: RE: Logic tag This sort of approach... logic:isPresent property=mytaglib:getvalue name=cost / FREE /logic:isPresent ...will not work because you can't nest XML tags like that (a tag within an attribute). Most JSP compilers blow up when they see stuff like that. Since

RE: Logic tag

2002-09-20 Thread Galbreath, Mark
Use logic:isPresent instead. Mark -Original Message- From: Tejas Bavishi [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 11:55 AM To: '[EMAIL PROTECTED]' Subject: Logic tag Hi, I have a question on using logic tags. In the following example, mytaglib is the tag library

RE: Logic tag

2002-09-20 Thread Tejas Bavishi
this using the logic taglib, is there another elegant way to do this ? Many Thanks, Tejas -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 5:49 PM To: 'Struts Users Mailing List' Subject: RE: Logic tag Use logic:isPresent instead. Mark

RE: Logic tag

2002-09-20 Thread Bartley, Chris P [PCS]
: Logic tag Hi again, Thanks for the pointer. I tried the following two variations of codes, however, the results were same as per the earlier email. logic:isPresent property=mytaglib:getvalue name=cost / FREE /logic:isPresent logic:notPresent property=mytaglib:getvalue name=cost

RE: Logic tag

2002-09-20 Thread Galbreath, Mark
Try it with the property= value in single quotes. -Original Message- From: Tejas Bavishi [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 1:31 PM To: 'Struts Users Mailing List' Subject: RE: Logic tag Hi again, Thanks for the pointer. I tried the following two variations

RE: Logic tag

2002-09-20 Thread Joe Barefoot
Hi, AFAIK, nesting jsp tags inside attributes of other jsp tags does not work. peace, Joe -Original Message- From: Tejas Bavishi [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:31 AM To: 'Struts Users Mailing List' Subject: RE: Logic tag Hi again, Thanks

RE: Logic tag

2002-09-20 Thread Martin Cooper
You'll need to do this: bean:define id=costmytaglib:getvalue name=cost //bean:define logic:empty name=cost FREE /logic:empty logic:notEmpty name=cost bean:write name=cost/ /logic:notEmpty To test if a value is empty, you need to have something to test against. Since your tag

Re: Logic tag

2002-09-20 Thread Bryan Hilterbrand
Message - From: Martin Cooper [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, September 20, 2002 12:52 PM Subject: RE: Logic tag You'll need to do this: bean:define id=costmytaglib:getvalue name=cost //bean:define logic:empty name=cost FREE

RE: Logic tag

2002-09-20 Thread Martin Cooper
-Original Message- From: Bryan Hilterbrand [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 2:14 PM To: Struts Users Mailing List Subject: Re: Logic tag Pardon me for jumping into this thread... Once you use bean:define, is it possible to change the value? I

Re: Logic tag

2002-09-20 Thread Bryan Hilterbrand
Thanks for the answer -- I should have seen that one. Bryan - Original Message - From: Martin Cooper [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, September 20, 2002 4:04 PM Subject: RE: Logic tag You can't redefine a bean of the same name

Re: logic tag to check value of bean

2002-07-13 Thread rainer juenger
thanks Keith, you are write, now it works!! (wrong bean name, I was using the objekt name instead of the stored variable name within the session context!) Rainer I don't see why that wouldn't work. I use the same syntax, the only difference is that I don't put scope=session. I suppose you

RE: logic tag to check value of bean

2002-07-12 Thread Kamholz, Keith (corp-staff) USX
I don't see why that wouldn't work. I use the same syntax, the only difference is that I don't put scope=session. I suppose you could try it without specifying the scope, but I don't think it would make much of a difference. What is the error message? Do you import the logic taglib at the top

Re: logic tag: checking presense of key or value in a map?

2002-02-26 Thread Torgeir Veimo
Torgeir Veimo wrote: Is there a simple way of checking wether a map contains a given key or value? I tried something like logic:equal name=child property=properties.key value=keyname /logic:equal I guess I have to do this myself. I need a logic:containsKey value= and

RE: logic tag

2002-02-22 Thread Dua, Amit
no response from any one so far -Original Message- From: Dua, Amit Sent: Friday, February 22, 2002 12:03 PM To: 'Struts Users Mailing List' Subject: logic tag Hi how can I compare two variables which are stored in my session attribute by using the logic tag. As what I know is the

Re: logic tag and empty string value () problem

2001-09-04 Thread Matt Raible
The workaround is to use a scriplet: logic:equal name=something value=%=% kinda silly - but it works! --- Paradis,_André [EMAIL PROTECTED] wrote: Hi, the following declaration does not compile on iPlanet 6.0 SP2: logic:equal name=something value= ... /logic:equal here's a

RE: logic tag and empty string value () problem

2001-09-04 Thread Paradis, André
Thanks matt, Is it fixed in SP3 ? -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: September 4, 2001 10:53 AM To: [EMAIL PROTECTED] Subject: Re: logic tag and empty string value () problem The workaround is to use a scriplet: logic:equal name=something value

RE: Logic Tag Library and (Iterator) List Navigation

2001-06-11 Thread Shamdasani Nimmi-ANS004
Hi Oleg, Could you please send me the class and JSP too. Thanks. -Nimmi -Original Message- From: Oleg V Alexeev [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 3:07 PM To: Matt Raible Subject: Re: Logic Tag Library and (Iterator) List Navigation Hello Matt, I can send you

Re: Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Oleg V Alexeev
Hello Matt, I can send you Pager class, used to generate ArrayList of links to the pages in this result set, and a piece of jsp code to display it. I think it can used for any container wich implements Collection interface. Thursday, June 07, 2001, 5:57:12 PM, you wrote: MR Has anyone used

Re: Logic Tag Library and (Iterator) List Navigation

2001-06-07 Thread Matt Raible
Please send it - and an example if you have one. Thanks, Matt - Original Message - From: Oleg V Alexeev [EMAIL PROTECTED] To: Matt Raible [EMAIL PROTECTED] Sent: Thursday, June 07, 2001 2:07 PM Subject: Re: Logic Tag Library and (Iterator) List Navigation Hello Matt, I can send