Re: How to force Struts to reevaluate logic:equal on client side?

2008-10-06 Thread Dave Newton
Use some simple JavaScript and CSS. --- On Mon, 10/6/08, RemiClaude <[EMAIL PROTECTED]> wrote: > From: RemiClaude <[EMAIL PROTECTED]> > Subject: How to force Struts to reevaluate logic:equal on client side? > To: user@struts.apache.org > Date: Monday, October 6, 2008,

How to force Struts to reevaluate logic:equal on client side?

2008-10-06 Thread RemiClaude
Hi all; I have 2 rows in my table. Each row should be displayed or not depending of the value of a radio button which can be "F" or "M". So, when I clik on "F", I need to display the row with id="repIn" and when I click on "M" the row with id="repOut". I do not need the server for this, all shou

Re: how to use logical operator in struts logic:equal

2008-07-16 Thread hmkmajeed
Thanks for the info Nuwan, but is there anyway to do without using JSTL?.. nuwan chandrasoma-2 wrote: > > Hi, > > Why dont you give a try with JSTL tag. it has more control over > the logic you want to check. > > Thanks, > > Nuwan > > > hmkmajeed wrote: >> Hi All, >> >> I need to tran

Re: how to use logical operator in struts logic:equal

2008-07-16 Thread Nuwan Chandrasoma
Hi, Why dont you give a try with JSTL tag. it has more control over the logic you want to check. Thanks, Nuwan hmkmajeed wrote: Hi All, I need to translate: if ( a == 'option1' || a == 'option2' ) to struts code I don't know how to put || or && in ---

how to use logical operator in struts logic:equal

2008-07-16 Thread hmkmajeed
Hi All, I need to translate: if ( a == 'option1' || a == 'option2' ) to struts code I don't know how to put || or && in http://www.nabble.com/how-to-use-logical-operator-in-struts-logic%3Aequal-tp18502051p18502051.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: How to pass dynamic value to the logic:equal tag?

2008-06-08 Thread VenkatBabu
gt;> >> The problem is: >> I have > property="VectorInBean" >> indexid="index"> >> >> >> logic:equal tag's value attribute shoud get populated by a value from the >> bean(i am storing the size of the vector in bean) which i

Re: How to pass dynamic value to the logic:equal tag?

2008-06-06 Thread Jim Kiley
s forum...forgive me if the question that i am going to > raise > is already present. I dont have time to go through all the messages which > have been raised already. > > The problem is: > I have indexid="index"> > > > logic:equal tag's value attribu

How to pass dynamic value to the logic:equal tag?

2008-06-06 Thread VenkatBabu
I am new to this forum...forgive me if the question that i am going to raise is already present. I dont have time to go through all the messages which have been raised already. The problem is: I have logic:equal tag's value attribute shoud get populated by a value from the bean

Re: Problem with logic:equal tag

2008-03-05 Thread Laurie Harper
Something like should produce what you want. The option values/names will be retrieved from the mobileEmailProviders each time the page is rendered; nothing is hardcoded into the page. Does that not do what you need? L. Ken Bowen wrote: The list comes up out of the database, and

Re: Problem with logic:equal tag

2008-03-05 Thread Antonio Petrelli
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: > The list comes up out of the database, and changes (slowly) over time. > There will be other cases were the list changes rapidly. So I can't > hardcode it onto the page. What do you mean with "hard code"? Can't you use EL to determine the value that it

Re: Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
The list comes up out of the database, and changes (slowly) over time. There will be other cases were the list changes rapidly. So I can't hardcode it onto the page. Antonio Petrelli wrote: 2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: SELECTED > Why did you

Re: Problem with logic:equal tag

2008-03-05 Thread Antonio Petrelli
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>: > > > property="mobileEmailService" > value=" property='key'/>">SELECTED > > > > > > putting the correct "value"? Antonio - To

Re: Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
Argh! Can you point me at a technique for accomplishing this? The input for the SELECT is a list of pairs of string (A1,A2) where A1 is to be the value tag of the option, and A2 is the visible display for the option element. The list comes up out of the database, and changes (slowly) over tim

Re: Problem with logic:equal tag

2008-03-05 Thread Dave Newton
--- Ken Bowen <[EMAIL PROTECTED]> wrote: > property="mobileEmailService" > value=" property='key'/>">SELECTED > > That's not valid JSP; you can't nest custom tags like that. Dave - To unsubscrib

Problem with logic:equal tag

2008-03-05 Thread Ken Bowen
Hi, I'm using: Struts 1.2.7; Tomcat 5.5.25; Java 1.5 I am having a problem using logic:equal in implementing a SELECT statement on a page. It should be simple. The code snippet is this (stripped out scopes to simplify it): value="property='key'/>">

RE: EL Statements are not evaluated in logic:equal tag

2007-11-26 Thread Slattery, Tim - BLS
> > You can use EL without the EL libraries if your servlet container > > supports J2EE version 2.4. If you have that support, you can use EL > > anyplace in your jsp page, and the container will take care of it. > I hope that you meant Servlet 2.4, included in J2EE 1.4. > Anyway EL is in JSP

Re: EL Statements are not evaluated in logic:equal tag

2007-11-22 Thread Antonio Petrelli
2007/11/21, Slattery, Tim - BLS <[EMAIL PROTECTED]>: > > > I saw many examples on the net with the normal logic:equal > > tag and the el > > statement: > > > > > So I thought I don't need > You can use EL without the EL libraries if your servlet

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Dave Newton
; any party other than intended recipient. Sender does > not necessarily endorse content contained within > this transmission.> Subject: RE: EL Statements are > not evaluated in logic:equal tag> Date: Wed, 21 Nov > 2007 12:46:30 -0500> From: [EMAIL PROTECTED]> To: > user@st

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Martin Gainty
official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.> Subject: RE: EL Statements are not evaluated in logic:eq

RE: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Slattery, Tim - BLS
> I saw many examples on the net with the normal logic:equal > tag and the el > statement: > > So I thought I don't need I run tomcat 5.5.12 I don't know whether that supports J2EE 2.4 or not. -- Tim

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Not bad ;-) Works like a charm. > -Ursprüngliche Nachricht- > Von: Antonio Petrelli [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. November 2007 16:27 > An: Struts Users Mailing List > Betreff: Re: EL Statements are not evaluated in logic:equal tag > > 2007/11/

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Antonio Petrelli
2007/11/21, Peter Neu <[EMAIL PROTECTED]>: > > Yes that works but I need to declare much more code which seems a little > senseless You are right only if you are using dyna-beans. Otherwise you can use a more complex expression: Antonio

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
6:07 > An: Struts Users Mailing List > Betreff: Re: EL Statements are not evaluated in logic:equal tag > > 2007/11/21, Peter Neu <[EMAIL PROTECTED]>: > > I have a problem with the evaluation of EL statement: > >

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Antonio Petrelli
2007/11/21, Peter Neu <[EMAIL PROTECTED]>: > I have a problem with the evaluation of EL statement: > Did you try using ? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hi, I saw many examples on the net with the normal logic:equal tag and the el statement: -Ursprüngliche Nachricht- > Von: Dave Newton [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. November 2007 15:45 > An: Struts Users Mailing List > Betreff: Re: EL Statements are not

Re: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Dave Newton
Are you using the EL taglib? ARe you running on a JSP 2.0 container? d. --- Peter Neu <[EMAIL PROTECTED]> wrote: > Hello, > > I have a problem with the evaluation of EL > statement: > property="codeTal"> > > When I use just jstl like this: > > I get the value without any trouble. I use stru

EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hello, I have a problem with the evaluation of EL statement: When I use just jstl like this: I get the value without any trouble. I use struts 1.2.9 Any help is much appreciated. Cheers, Pete - To unsubscribe, e-mail

R: [beginner] need to use logic:equal with request attribute

2007-10-18 Thread Marchioni Francesco
way thanks ! >It does not make sense, the way you specify "logic:equal" is correct, >but >I once had a similar problem, and in that case I forgot to specify the >taglib in the JSP page. >Are you sure you specified the "logic" tag library correctly? >Anton

Re: [beginner] need to use logic:equal with request attribute

2007-10-18 Thread Antonio Petrelli
2007/10/18, Marchioni Francesco <[EMAIL PROTECTED]>: > > Hi all, > I have an action class which sets some attributes > > request.setAttribute("pValueIn", vFlagms); > > then it forwards to a jsp page. > > Now I'd like to use logic:equal (or anothe

[beginner] need to use logic:equal with request attribute

2007-10-18 Thread Marchioni Francesco
Hi all, I have an action class which sets some attributes request.setAttribute("pValueIn", vFlagms); then it forwards to a jsp page. Now I'd like to use logic:equal (or another struts tag) which controls the value of this field OK but unfortunately I can see "OK

Re: Runtime Expression in logic:equal

2006-08-01 Thread Puneet Lakhina
On 8/2/06, Chetan Pandey <[EMAIL PROTECTED]> wrote: Why don't you use displaytags ( http://www.jamesgood.com:8080/displaytag-examples-1.1-SNAPSHOT/docs/tut_bas ic.html) this thing looks fantastically easy. but alas i didnt have the time to dirty my hands into it.Did it with plain old javascri

RE: Runtime Expression in logic:equal

2006-08-01 Thread Chetan Pandey
ntime Expression in logic:equal Hi, I have a collection over which Im iterating using logic iterate tag and inside that im creating the rows of a table. I need to color the rows of the table alternately. I have used the attribute indexId in in the iterate tag But i need to use some kind of ru

Runtime Expression in logic:equal

2006-08-01 Thread Puneet Lakhina
Hi, I have a collection over which Im iterating using logic iterate tag and inside that im creating the rows of a table. I need to color the rows of the table alternately. I have used the attribute indexId in in the iterate tag But i need to use some kind of runtime expression in logic:equal tag

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
Frank, Thanks for your advise. I wish to look into the onLoad option that you suggested, but please tell me, how to set the value attribute of logic:equal to the value of the opening form's field. For example, if opener.forms[0].to_country.value has a value of UK, how can I get this

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
eed from formA > as request parameters formB can then access during > rendering. > > L. > > O. Oke wrote: > > Help please! > > > > BACKGROUND > > == > > A parent window/form - formA opens up formB. In > > formB, I am using logic:equal.

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread Frank W. Zammetti
ROUND == A parent window/form - formA opens up formB. In formB, I am using logic:equal. In the value attribute of logic:equal, I want to dynamically get the current value of a field in formA - opener. PART OF SOURCE CODE === PROBLEM === None of the lines below (value

Re: How to get the value of parent form field in child - logic:equal

2005-09-11 Thread Laurie Harper
an HTTP request), include the information you need from formA as request parameters formB can then access during rendering. L. O. Oke wrote: Help please! BACKGROUND == A parent window/form - formA opens up formB. In formB, I am using logic:equal. In the value attribute of logic:e

How to get the value of parent form field in child - logic:equal

2005-09-11 Thread O. Oke
Help please! BACKGROUND == A parent window/form - formA opens up formB. In formB, I am using logic:equal. In the value attribute of logic:equal, I want to dynamically get the current value of a field in formA - opener. PART OF SOURCE CODE === PROBLEM === None of

Re: Setting value at runtime in logic:equal

2005-06-28 Thread Kjersti Berg
On 6/28/05, Brad Rhoads <[EMAIL PROTECTED]> wrote: > Nitesh wrote: > > > You are probably looking for... > > > > Unfortunately, that gives: > > cannot find symbol > symbol : method getOrderStatus() > location: class java.lang.Object > _jspx_th_logic_equal_0.setValue( orderObj.get

Re: Setting value at runtime in logic:equal

2005-06-28 Thread Brad Rhoads
t; Sent: Wednesday, June 22, 2005 7:25 PM Subject: Re: Setting value at runtime in logic:equal Nitesh wrote: You could use value="<%= val %>"> where you can set val depending on any conditions, input at runtime! That's exactly what I *want* to do. orderObj is a collect

Re: Setting value at runtime in logic:equal

2005-06-22 Thread Nitesh
You are probably looking for... Nitesh - Original Message - From: "Brad Rhoads" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 22, 2005 7:25 PM Subject: Re: Setting value at runtime in logic:equal Nitesh wrote: You could use

Re: Setting value at runtime in logic:equal

2005-06-22 Thread Brad Rhoads
urrent" iteration? HTH Nitesh - Original Message - From: "Brad Rhoads" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 21, 2005 11:08 PM Subject: Setting value at runtime in logic:equal How do I test statusCode for some other property i

Re: Setting value at runtime in logic:equal

2005-06-21 Thread Nitesh
You could use where you can set val depending on any conditions, input at runtime! HTH Nitesh - Original Message - From: "Brad Rhoads" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 21, 2005 11:08 PM Subject: Setting value at runt

Re: Setting value at runtime in logic:equal

2005-06-21 Thread Wendy Smoak
From: "Brad Rhoads" <[EMAIL PROTECTED]> > How do I test statusCode for some other property in my orderObj, instead > of hard coding "On Hold" as I'm doing now? > > Here's one option... <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

Setting value at runtime in logic:equal

2005-06-21 Thread Brad Rhoads
How do I test statusCode for some other property in my orderObj, instead of hard coding "On Hold" as I'm doing now? value="On Hold"> disabled="false"> filter="true"/>-filter="true"/>

Re: Problem using logic:equal and logic:notEqual

2005-01-27 Thread Norris Shelton
> > > > > > javax.servlet.jsp.JspException: No selector attribute > > (cookie/header/name/parameter) was specified > > http://struts.apache.org/userGuide/struts-logic.html#equal > > Your logic:equal tag is missing an attribute, either cookie, > header,

Re: Problem using logic:equal and logic:notEqual

2005-01-27 Thread Wendy Smoak
elector attribute > (cookie/header/name/parameter) was specified http://struts.apache.org/userGuide/struts-logic.html#equal Your logic:equal tag is missing an attribute, either cookie, header, name, or parameter. Given that you're using 'property', you need to tell it the 

Problem using logic:equal and logic:notEqual

2005-01-27 Thread Norris Shelton
I'm trying to determine which block of HTML to output. This is on a page that will be included by many different forms. Anybody have a suggestion? Here is the beginning of the exception: javax.servlet.jsp.JspException: No selector attribute (cookie/header/name/parameter) was

Re: logic:equal tag always evaluates the body

2004-10-11 Thread Bill Siggelkow
iplanet 6 (jvm 1.2) and struts 1.0 There's a simple jsp with a lot of logic:equal (they're not nested) and all of them eval the same attributed stored in the session. Something like this: ... ... ... This code works fine but "sometimes" the body of all logic:equal are

logic:equal tag always evaluates the body

2004-10-09 Thread David Alcoba
Hi, We've a very rare problem with our webapp. We've a webapp running under an iplanet 6 (jvm 1.2) and struts 1.0 There's a simple jsp with a lot of logic:equal (they're not nested) and all of them eval the same attributed stored in the session. Something like this: ...

Use logic:equal tag to compare date?

2004-04-02 Thread Daynell Trent
Hi, Does anyone ever use the tag to compare a date value. I can not get it to work because of the format that the Date object return.