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,
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
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
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
---
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.
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
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
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
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
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
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
2008/3/5, Ken Bowen <[EMAIL PROTECTED]>:
>
>
> property="mobileEmailService"
> value=" property='key'/>">SELECTED
> >
>
>
>
> putting the correct "value"?
Antonio
-
To
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
--- 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
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'/>">
> > 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
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
; 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
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
> 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
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/
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
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:
> >
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]
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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" %>
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"/>
> >
> >
> > 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,
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
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
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
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:
...
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.
51 matches
Mail list logo