contents using logic tag
Hi All,
My ArrayList holds a set of ValueObjects.When I try to display the
ArrayList contents using logic tag it is throwing an exception saying can't
find the clientview bean.
In Action class the code is like.
request.setAttribute(ClientList,clientListVO
Hi All,
My ArrayList holds a set of ValueObjects.When I try to display the
ArrayList contents using logic tag it is throwing an exception saying can't
find the clientview bean.
In Action class the code is like.
request.setAttribute(ClientList,clientListVO);
return
/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
All,
I'm trying to do a bean:write based on the user's current language.
Before you ask, this isn't just internationalization using the
properties files. I'm displaying item attributes stored in a database,
where there are german and english descriptions. I know I can set a
bean in my action
All,
I'm trying to do a bean:write based on the user's current language.
Before you ask, this isn't just internationalization using the
properties files. I'm displaying item attributes stored in a database,
where there are german and english descriptions. I know I can set a
bean in my action
: Tsang, F (Fred) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2003 10:01 AM
To: [EMAIL PROTECTED]
Subject: logic tag using locale
All,
I'm trying to do a bean:write based on the user's current
language. Before you ask, this isn't just
internationalization using the properties
All,
I'm trying to do a bean:write based on the user's current language.
Before you ask, this isn't just internationalization using the
properties files. I'm displaying item attributes stored in a database,
where there are german and english descriptions. I know I can set a
bean in my action
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
Please point out my mistakes. Does the 'name'
attribute of the logic tag accept an object only? For
example, I created a session this way:
HttpSession session = request.getSession();
String username = request.getRemoteUser();
session.setAttribute( user, username );
In the LogoffAction, I
We wish to develop a TILE that could render a typical table listing in our
application.
This TILE shall access a particular arraylist to display the table.
This arraylist shall be of different DTO's for different screens. I want to pass the
type of DTO to this TILE while I do tile:get
We wish to develop a TILE that could render a typical table listing in our
application.
This TILE shall access a particular arraylist to display the table.
This arraylist shall be of different DTO's for different screens. I want to
pass the type of DTO to this TILE while I do tile:get
inside
]
[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 !!!
Unfortunately, this did not work, mostly because this will substitute the
value at a later stage than required.
We need some other solution to this
Any more clues !!!
James Mitchell Suggested:
Did you try this?
bean:define
a
placeholder image in there or just display nothing. So I came up
with an idea for a logic tag. It would look like the following
logic:exists page=/assets/graphics/headshots/${member.id}/.jpg
html:img page=/assets/graphics/headshots/${member.id}/.jpg/
/logic:exists
* I am also thinking it might
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
i want to be able to show a message like
No records found is there was no records found or logic/iterate did not do any
iteration.
Can anybody provide us a solution to this kind of problem?
thanks a lot!.
i have this in my JSP:
logic:iterate id=referralsInfo name=referralsinfos
tr
in Logic Tag
i want to be able to show a message like
No records found is there was no records found or logic/iterate did not do
any iteration.
Can anybody provide us a solution to this kind of problem?
thanks a lot!.
i have this in my JSP:
logic:iterate id=referralsInfo name=referralsinfos
Raquepo [mailto:[EMAIL PROTECTED]]
Sent: Friday, 21 February 2003 2:05 PM
To: Struts Users Mailing List
Subject: Help in Logic Tag
i want to be able to show a message like
No records found is there was no records found or logic/iterate did not do
any iteration.
Can anybody provide us a solution
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 11:07 AM
Subject: RE: Help in Logic Tag
With Struts tags:
bean:size name=list id=collectionSize /
logic:greaterThan name=collectionSize value=0
logic:iterate ...
...
/logic:iterate
Got it! Thanks everyone!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
PROTECTED]]
Sent: Friday, 21 February 2003 2:57 PM
To: Struts Users Mailing List
Subject: Re: Help in Logic Tag
i have this code but i have an error Cannot find bean referralsinfo in any
scope
my referralsinfo is in my request session and i know its working cause i can
use it in
my logic:iterate tag
get executed regardless of outcome of the logic tag. So,
if details is NOT in request, form, I get an error:
details does not exist... etc...
Any help would be appreciated!
Khalid
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 %= % HELP
Hi,
How do I check a boolean value of a method/bean using the logic tags. Can
Struts-El do this? Essentially I have a method called getXYZ() that returns
a boolean value. I can't change the name of the method to isXYZ so I have
to leave it as is.
thanks
Jordan
--
To unsubscribe, e-mail:
2003. január 22. 12:03 dátummal Jordan Thomas ezt írtad:
Hi,
How do I check a boolean value of a method/bean using the logic tags. Can
Struts-El do this? Essentially I have a method called getXYZ() that returns
a boolean value. I can't change the name of the method to isXYZ so I have
to
. is there a
direct method for using a property in the logic tag?
thanks,
/gp
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can someone please help me out I need. I need to make my first logic tag
like the one below
logic:checkuser myrole=client
You are a client
/logic:checkuser
Any tips or samples would be great. I have to get this done fast
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Tag
Can someone please help me out I need. I need to make my first logic tag
like the one below
logic:checkuser myrole=client
You are a client
/logic:checkuser
Any tips or samples would be great. I have to get this done fast
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional
Have a look at the one in the struts example application. That should get
you started.
-Original Message-
From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 20:18
To: '[EMAIL PROTECTED]'
Subject: Need to make Logic Tag
Can someone please help me out I
Hi,
i'm not sure if this is what you need. But here is an example for free use
and uses the container managed security model (in our app we use the
SecurityFilter impl from SourceForge.com):
This is an excerpt of the tag class:
package com.company.taglib;
...
public class UserInRolesTag
, October 08, 2002 9:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Need to make Logic Tag
Hi,
i'm not sure if this is what you need. But here is an example for free use
and uses the container managed security model (in our app we use the
SecurityFilter impl from SourceForge.com):
This is an excerpt
Hi,
you are right. I've tried the present tag at the beginning of our dev. But
had no success with applying multiple roles. After your posting today i
tried again. No success again, until i recognized that the tag is not
trimming the role strings. So if you use for example logic:present role
Thanks for pointing out, you are right Chris
I did not include logic tag lib, I should have thought of this before.
Now, I tried other ways as suggested by other members of the forum (at least
now I get Exception :))
(a)
logic:notPresent property='mytaglib:getvalue name=cost /'
FREE
Hi,
I have a question on using logic tags.
In the following example, mytaglib is the tag library developed by me. I am
printing the value returned by the following tag on the JSP page.
TD
mytaglib:getvalue name=cost /
/TD
Now, I want to check that if the value returned by mytag is , then I
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
[mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 8: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
developed by me. I am
printing the value returned by the following tag on the JSP
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
PROTECTED]]
Sent: Friday, July 12, 2002 11:20 AM
To: Struts Users Mailing List
Subject: logic tag to check value of bean
Hi,
can I compare an attribute value of a bean with the logic TagLib?
eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute
Hi,
can I compare an attribute value of a bean with the logic TagLib?
eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.
How would the logic tag look like
of your jsp?
~ Keith
http://www.buffalo.edu/~kkamholz
-Original Message-
From: rainer juenger [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:20 AM
To: Struts Users Mailing List
Subject: logic tag to check value of bean
Hi,
can I compare an attribute value of a bean
Hi,
can I compare an attribute value of a bean with the logic TagLib?
eg.:
my beans name is myobject and it has session scope
Wirthin that bean there is an attribute:
boolean myattribute = true;
There is of course a setter and a getter for that attribute.
How would the logic tag look like
This probably isn't what you want to hear, but this
sounds like a great time to extend the logic tags in
your own application and create your own Custom tag.
There are a couple of examples in the example
application.
Adrian
--- Rick Reumann [EMAIL PROTECTED] wrote: Is
there a way to check
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
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
but I'm not shure if what I'm trying to do is supported. (The child
bean has a method Map getProperties().)
--
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 logic:equal / or any other comparison tag compares
the value with a constant.
any suggestions.
Thanks
Amit
-Original Message-
From: Boyalla, Raveendra [mailto
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
Hi,
To check if an object is null or not in MVC2 model I followed below code,
Object obj1= new Object();
if(obj1==null){
//do some
}else{
//do some
}
How do i exactly use logic tag lib in above case.I tried with empty/notEmpty
and present/notPresent tags but I got
Hi,
I am here again,
Is there any way to compare an object is null??
if( myObject==null){ ]
using struts logic tag.
TAI
RAYAKU
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hello,
I am using logic tags to implement paging through a recordset (like in a
search engine).
In order to determine whether or not to display the next page button (i.e.
when the user is nearing the end of the recordset) it seems I need an
expression in my logic:greaterEqual tag.
I have a
Add a property on your bean that returns the value of maxRecords +
rowPosition then refer to that property in the tag.
-Original Message-
From: T. Wheeler [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: How to use an expression in a logic
Hi,
Any ideas on what tag, or how to compare to attributes from my form bean?
Typically I would do
logic:greaterThan property=number value=7
A little lower...
/logic:greaterThan
But, I need to see to compare two properties.
Thanks,
Beth.
This message contains information
Use indexId,
logic:iterate id=bean name=formBean
property=list indexId=myIndex
logic:greaterThan name=myIndex value=0
At 12:46 pm 26-10-2001 +0200, you wrote:
Hi,
How can I acces the index of a iterator-tag within a logic-tag ?
logic:iterate id=bean name
Hi,
How can I acces the index of a iterator-tag within a logic-tag ?
logic:iterate id=bean name=formBean property=list
logic:greaterThan ?
Index over 0
/logic:greaterThan
/logic:iterate
THANKS !
Hi,
the following declaration does not compile on iPlanet 6.0 SP2:
logic:equal name=something value=
...
/logic:equal
here's a snippet of the generated java file:
((org.apache.struts.taglib.logic.EqualTag)_JSP__0).setName(sqc_submenu_
currentitem);
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
Hello,
I can see the errors if I say html:erros/
But I want to use 'errors' bean in logic tag. I want to perform some
operation on presence of error.
How can I achieve this??
e.g.
logic:present name=errors
do something.
/logic:present
The above lines
Subject: Use of error in logic tag.
Hello,
I can see the errors if I say html:erros/
But I want to use 'errors' bean in logic tag. I want to perform some
operation on presence of error.
How can I achieve this??
e.g.
logic:present name=errors
do something.
/logic:present
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
Has anyone used logic:iterator to display a list of records, and
corresponding list navigation links at the bottom?
For instance, I have an Iteration of DataObjects that I can list through
with the following code:
while (iteratorName.hasNext()) {
dataObject =
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
Hello Matt,
Pager - this one
PagerIterator - iterator to review Pager without cach
PagerEntry - link to page representation
JDBCPagerFactory - sample of Pager utilization
pager.jsp - displaying of pager data and current page
Friday, June 08, 2001, 12:17:19 AM, you wrote:
MR Please send it -
Hello,
It's a long mail, after a long day.
Following is the scenario I am trying to get it done.
My current processing:
I have a BuddyListForm bean that has three instance variables
name,alias and phoneno.
code on my JSP page to iterate over the collection:
logic:iterate id="buddylist"
Hello,
It's a long mail, after a long day.
Following is the scenario I am trying to get it done.
My current processing:
I have a BuddyListForm bean that has three instance variables
name,alias and phoneno.
code on my JSP page to iterate over the collection:
logic:iterate
77 matches
Mail list logo