/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
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
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:
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
]
[EMAIL PROTECTED]cc:
ache.orgSubject: Re: [Logic Tag] Can This work
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 !!!
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
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.
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
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
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
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 %= %
'
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
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
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
: 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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
31 matches
Mail list logo