checkbox condition check

2003-12-04 Thread Clark Kent
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

Re: checkbox condition check

2003-12-04 Thread Hien Q Nguyen
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

Re: checkbox condition check

2003-12-04 Thread Hien Q Nguyen
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

Global forward from anywhere in site when condition met

2003-11-05 Thread Russell Healy
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

more than one condition using logic tags...

2003-10-29 Thread VKeswani
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

Re: more than one condition using logic tags...

2003-10-29 Thread Jeff Kyser
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

Re: more than one condition using logic tags...

2003-10-29 Thread Sasha Borodin
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

Re: more than one condition using logic tags...

2003-10-29 Thread David Graham
--- [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

Re: more than one condition using logic tags...

2003-10-29 Thread VKeswani
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

requiredif don't execute the condition

2003-10-27 Thread Ruben Orta Magan
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

More than one condition using struts logic tags???

2003-10-27 Thread VKeswani
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?

Re: More than one condition using struts logic tags???

2003-10-27 Thread Craig R. McClanahan
[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

RE: tiles: condition in tile definition

2003-08-27 Thread Hue Holleran
. 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

check posible username (was: Re: tiles: condition in tile definition)

2003-08-27 Thread Jiri Chaloupka
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

tiles: condition in tile definition

2003-08-26 Thread Jiri Chaloupka
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

RE: tiles: condition in tile definition

2003-08-26 Thread Yann Lebreton
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

Form Field Unset Condition

2003-03-29 Thread Adam Sherman
-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

RE: Form Field Unset Condition

2003-03-29 Thread Robert Taylor
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

RE: Form Field Unset Condition

2003-03-29 Thread Adam Sherman
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

DynaActionForm if not set condition

2003-03-25 Thread Adam Sherman
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

Re: DynaActionForm if not set condition

2003-03-25 Thread Craig R. McClanahan
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

Re: DynaActionForm if not set condition

2003-03-25 Thread Adam Sherman
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,

if-then-else condition in validation xml

2003-01-28 Thread Dinesh Samson J
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

RE: if-then-else condition in validation xml

2003-01-28 Thread James Turner
-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 to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread Weber, Jeremy
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

Re: Where to send bugs/fixes (RequiredIf Equals Condition)

2003-01-27 Thread David Graham
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

RE: if condition with or

2002-12-05 Thread Jon.Ridgway
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

Re: if condition with or

2002-12-05 Thread Mark
[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

RE: if condition with or

2002-12-05 Thread edgar
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

RE: if condition with or

2002-12-05 Thread Andrew Hill
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

RE: if condition with or

2002-12-05 Thread edgar
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

RE: if condition with or

2002-12-05 Thread Andrew Hill
, 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

RE: if condition with or

2002-12-05 Thread Assenza, Chris
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

RE: if condition with or

2002-12-05 Thread micael
: 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

RE: if condition with or

2002-12-05 Thread micael
: 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

Re: if condition with or

2002-12-05 Thread Craig R. McClanahan
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 ...

RE: if condition with or

2002-12-05 Thread Craig R. McClanahan
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

if condition with or

2002-12-04 Thread Jana Navaneethan
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:

RE: if condition with or

2002-12-04 Thread Todd Pierce
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

Re: if condition with or

2002-12-04 Thread Craig R. McClanahan
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

Re: if condition with or

2002-12-04 Thread Jim Collins
- 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

RE: if condition with or

2002-12-04 Thread Andrew Hill
: 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

Re: using OR condition with logic tags

2002-10-16 Thread chanoch
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

Re: using OR condition with logic tags

2002-10-16 Thread Eddie Bush
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

using OR condition with logic tags

2002-10-16 Thread Sukhenko, Mikhail (Contr)
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]

Re: using OR condition with logic tags

2002-10-16 Thread Craig R. McClanahan
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

using OR condition with logic tags

2002-10-15 Thread Sukhenko, Mikhail (Contr)
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]

Re: using OR condition with logic tags

2002-10-15 Thread Eddie Bush
, 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]

Custom tag for If condition

2002-07-23 Thread Harinath
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]

Re: Custom tag for If condition

2002-07-23 Thread ajTreece
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:

RE: Custom tag for If condition

2002-07-23 Thread Galbreath, Mark
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

RE: Custom tag for If condition

2002-07-23 Thread Arik Levin ( Tikal )
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

Re: using condition in iterate tag

2002-03-31 Thread struts-user
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,

using condition in iterate tag

2002-03-26 Thread Peter Cnops
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

Re: using condition in iterate tag

2002-03-26 Thread Daniel Jaffa
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

2001-09-06 Thread Chandana Perera
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