getter which returns boolean.
some tag to check for condition
html:checkbox property=a1
end tag
-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
that particular checkbox info
appears in the row because each checkbox has its respective getter
which returns boolean.
some tag to check for condition
html:checkbox property=a1
end tag
-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
checkbox has its respective
getter which returns boolean.
some tag to check for condition
html:checkbox property=a1
end tag
-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
-
To unsubscribe, e
Is there an elegant way to invoke a global-forward from anywhere in the site when any
given condition is met?
In my case, I want to invoke a global-forward when a certain attribute is missing from the
HTTPSession. I want this rule to be applicable across the whole site, but I don't want
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags?
Please help
sure - just nest them.
On Wednesday, October 29, 2003, at 09:38 AM, [EMAIL PROTECTED]
wrote:
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags
asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
how to achieve this in the jsp using logic tags?
Please help
--- [EMAIL PROTECTED] wrote:
Hello,
I asked this before -
Is it possible to have more than one condition using struts logic
tags...like
If A B C then {
do something...
}
The JSTL provides this capability:
c:if test=${A B C}
do something
/c:if
http://java.sun.com
Thanks all...
David Graham [EMAIL PROTECTED]
10/29/2003 10:06 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Re: more than one condition using logic tags...
--- [EMAIL PROTECTED] wrote
Hello.
I've got a problem with the requiredif condition in the struts validator.
I'm using this dtd:
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
The validation rule is:
formset
form name=icytReviForm
Hello,
I have a little query -
How can I check for more that one condition using struts logic tags? like
if (A B C) {
do something.
}
how do I achieve the same using struts logic tags?
[EMAIL PROTECTED] wrote:
Hello,
I have a little query -
How can I check for more that one condition using struts logic tags? like
if (A B C) {
do something.
}
how do I achieve the same using struts logic tags?
You can do an and test by nesting logic:xxx tags inside each other
.
A better option may be to use the extends capability of tiles to define 2
layouts that extend layout and define the first, e.g. page.login with
the login form and e.g. page.usermenu with the menu form. You can then
forward to the desired layout based-on a condition, as you have indicated.
Hue
Hallo, I thinking about registration form yet.
first form will contain username and password. Validation framework will
chceck if it is filled, if it has minimal length atc.
after it I must check if tehere is no other user who has this username,
of course. So I thinking if to do it in validator
Hallo,
haw I can define condition in tile definition?
for example, I have 3 pages:
basic.jsp:
**
html
head/head
body
blablabbla
|tiles:insert attribute=loginform/|
/body/html
**
loginform.jsp:
**
username:html:text property=uname /br
you should try using a TileController
-Original Message-
From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 5:30 AM
To: Struts Users Mailing List
Subject: tiles: condition in tile definition
Hallo,
haw I can define condition in tile definition?
for example, I
-bean
With validation:
formname=senderEditForm
field property=id depends=integer /
/form
This Action code:
DynaValidatorForm dynaForm = (DynaValidatorForm) form;
if ( CONDITION ) {
// Do Work If id is set
}
Two questions:
1. Am I correct is using String as the form-property
Two questions:
1. Am I correct is using String as the form-property type?
Yes. This is a best practice approach to have form properties
be boolean or String
2. What should be used as CONDITION so that CONDITION is true if the
parameter id has been set? (I assume that my validation should
On 03/29/03 13:17:39 -0500 Robert Taylor wrote:
2. What should be used as CONDITION so that CONDITION is true if the
parameter id has been set? (I assume that my validation should
make sure
id is an integer if it is set.)
DynaValidatorForm dynaForm = (DynaValidatorForm)form;
String id = (String
How do I check if a field hasn't been set at all?
DynaActionForm.get(fieldName) == null, or
DynaActionForm.get(fieldName) ==
doesn't seem to work.
Any hints?
A.
--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819
On Tue, 25 Mar 2003, Adam Sherman wrote:
Date: Tue, 25 Mar 2003 20:50:39 -0500
From: Adam Sherman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DynaActionForm if not set condition
How do I check if a field hasn't been set at all
On 03/25/03 19:37:24 -0800 Craig R. McClanahan wrote:
The first form will correctly check whether the field has been set to
anything or not. The second will never work -- if you want to check for a
zero-length String, do this instead:
.equals((String) DynaActionForm.get(fieldName)
Makes sense,
Greetings,
Can we have something like an if-then-else block in validation.xml?
What I am looking for is that,
a. if nothing is entered in field A, then do not validate field B and field C
b. if something is entered in field A, then check for (depends=required) for field B
and field C
can
-Original Message-
From: Dinesh Samson J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:37 AM
To: [EMAIL PROTECTED]
Subject: if-then-else condition in validation xml
Greetings,
Can we have something like an if-then-else block in validation.xml?
What I am
Where should I send bugs or fixes with common validator. Specifically the
EQUAL condition in RequiredIf doesnt seem to do anything.
if (dependTest.equals(FIELD_TEST_EQUAL)) {
this_required = dependTestValue.equalsIgnoreCase(dependVal
Open a bug report for the issue and attach a patch file to it.
David
From: Weber, Jeremy [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' (E-mail) [EMAIL PROTECTED]
Subject: Where to send bugs/fixes (RequiredIf Equals Condition)
Date
Navaneethan [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2002 22:24
To: Struts Users Mailing List
Subject: if condition with or
Hi,
I want to use logic:equal in my JSP to replace the following code.
if (count = 0 || count = 2 || count = 4)
do something.
How to achieve this using
[mailto:[EMAIL PROTECTED]]
Sent: 04 December 2002 22:24
To: Struts Users Mailing List
Subject: if condition with or
Hi,
I want to use logic:equal in my JSP to replace the following code.
if (count = 0 || count = 2 || count = 4)
do something.
How to achieve this using logic:equal
When the logic is this complex, shouldn't it be in Java or is that
putting too much pressure on the server side?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 6:33 AM
To: 'Struts Users Mailing List'
Subject: Re: if condition with or
Can't
Where do you think tags get run?
-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 21:17
To: 'Struts Users Mailing List'
Subject: RE: if condition with or
When the logic is this complex, shouldn't it be in Java or is that
putting too much
I meant the java programmers, not the server machine.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:16 AM
To: 'Struts Users Mailing List'
Subject: RE: if condition with or
Where do you think tags get run?
-Original Message
, December 05, 2002 21:22
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: if condition with or
I meant the java programmers, not the server machine.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 8:16 AM
To: 'Struts Users
AM
To: Struts Users Mailing List
Subject: RE: if condition with or
snip
what is the difference between having a scriptlet or what you use above?
/snip
Hehe I rather agree Jim!
(Mind you I am rather anti-JSP so my view is probably a bit biased!)
Your question reminds me of an old article I read
: Thursday, December 05, 2002 21:17
To: 'Struts Users Mailing List'
Subject: RE: if condition with or
When the logic is this complex, shouldn't it be in Java or is that
putting too much pressure on the server side?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December
: edgar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 21:22
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: if condition with or
I meant the java programmers, not the server machine.
-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday
On Thu, 5 Dec 2002, Jim Collins wrote:
This is one of the very large number of reasons that you should start
using JSTL if you can (i.e. you're on a Servlet 2.3/JSP 1.2 or later
container):
c:if test=${(count == 0) || (count == 2) || (count == 4)}
... do something ...
On Thu, 5 Dec 2002, Andrew Hill wrote:
Date: Thu, 5 Dec 2002 21:24:09 +0800
From: Andrew Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: if condition with or
Ah, you mean
Hi,
I want to use logic:equal in my JSP to replace the following code.
if (count = 0 || count = 2 || count = 4)
do something.
How to achieve this using logic:equal By the count is index value of the
iterator i.e indexId.
Thanks in advance,
Jana.
--
To unsubscribe, e-mail:
think the JSTL logic tags are more flexible.
-Original Message-
From: Jana Navaneethan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 5 December 2002 9:24 AM
To: Struts Users Mailing List
Subject: if condition with or
Hi,
I want to use logic:equal in my JSP to replace the following code
On Wed, 4 Dec 2002, Jana Navaneethan wrote:
Date: Wed, 4 Dec 2002 17:23:42 -0500
From: Jana Navaneethan [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: if condition with or
Hi,
I want to use
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 12:20 AM
Subject: Re: if condition with or
On Wed, 4 Dec 2002, Jana Navaneethan wrote:
Date: Wed, 4 Dec 2002 17:23:42 -0500
From
: if condition with or
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 12:20 AM
Subject: Re: if condition with or
On Wed, 4 Dec 2002, Jana Navaneethan wrote:
Date: Wed, 4 Dec 2002 17
are trying to work out why I am designing new
HTML elements)
chanoch
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 11:26 PM
Subject: Re: using OR condition with logic tags
logic:equal name=foo value=1
Oh --- OR --- I was thinking ELSE. Sorry.
JSTL solution:
c:if test=${(foo == 1) || (foo == 2)}
!-- relevant code --
/c:if
The Struts-based solution would be the same as I mentioned before, I
believe. Sorry - I somehow understood you wanted an ELSE!
chanoch wrote:
however, this is
Hey, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
i.e. :
logic:equal name=foo value=1 OR logic:equal name=foo value=2
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
On Wed, 16 Oct 2002, chanoch wrote:
Date: Wed, 16 Oct 2002 20:10:47 +0100
From: chanoch [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: using OR condition with logic tags
however, this is quite ugly
Hey, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
i.e. :
logic:equal name=foo value=1 OR logic:equal name=foo value=2
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
, guys!
Do any of you know how to set up an OR condition with logic:equal tags?
i.e. :
logic:equal name=foo value=1 OR logic:equal name=foo value=2
Thanks
--
Eddie Bush
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi ,
Do we have any equivalent custom tag for IF.statement
-Hari
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
It is the Struts taglib logic
Later...
Harinath wrote:
Hi ,
Do we have any equivalent custom tag for IF.statement
-Hari
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail:
Take a look at most of the logic tags:
http://jakarta.apache.org/struts/struts-logic.html
Mark
-Original Message-
From: Harinath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 6:13 AM
To: struts
Subject: Custom tag for If condition
Hi ,
Do we have any equivalent custom tag
Title: RE: Custom tag for If condition
I have some code that I haven't tried, you can use it.
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:50 PM
To: 'Struts Users Mailing List'
Subject: RE: Custom tag for If condition
Take
Hi, Peter,
I hope this'll answer your question.
If you use lt;logic:iterategt; to loop through a collection. you can use
lt;logic:equal ..gt; to compare the value, the best way (in my opinion) is to use a
collection of objects, then you can compare the property in the object. However,
Hi,
How can I declare a value out of a collection and use it as a condition in
an iterate tag? I have to loop through a collection where one value is the
same for several lines. As long as this value is the same, I don't write the
line, else I do with the new value. I'm using Struts 1.0.2
condition in iterate tag
Hi,
How can I declare a value out of a collection and use it as a condition in
an iterate tag? I have to loop through a collection where one value is the
same for several lines. As long as this value is the same, I don't write
the
line, else I do with the new value
The server encountered an unexpected condition which
prevented it from fulfilling the request
I showed this error message to one of our guys in the organisation, but
nobody could find answer to this.
I am running the basic and very common programme which in the
http://www.jspinsider.com
56 matches
Mail list logo