RE: logic tag question

2008-11-05 Thread Russo, Joe
Thanks for your reply. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 12:03 PM To: Struts Users Mailing List Subject: Re: logic tag question The issue is the bean tag inside the logic tag; that isn't valid JSP. You'll n

RE: logic tag question

2008-11-05 Thread Russo, Joe
Thanks for your reply. -Original Message- From: Kawczynski, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 11:59 AM To: Struts Users Mailing List Subject: RE: logic tag question You can't nest taglibs. Try using the el tags and using an expression in

Re: logic tag question

2008-11-05 Thread Dave Newton
The issue is the bean tag inside the logic tag; that isn't valid JSP. You'll need to use EL there via the EL tags or JSP 2.0 support, depending on your container. Dave --- On Wed, 11/5/08, Russo, Joe <[EMAIL PROTECTED]> wrote: > From: Russo, Joe <[EMAIL PROTECTED]

RE: logic tag question

2008-11-05 Thread Kawczynski, David
You can't nest taglibs. Try using the el tags and using an expression in place of the Nested bean:write taglib call. -Original Message- From: Russo, Joe [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 11:52 AM To: user@struts.apache.org Subject: logic tag question H

logic tag question

2008-11-05 Thread Russo, Joe
Hi, I am trying to use a nested logic tag and I get an error: equal symbol expected Any help would be appreciated. Thanks, Joe Here is the code: ">

RE: Logic tag library

2008-02-13 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > Keeping tags actually renders perfectly well for me right now > (no exceptions, no apparent problems with the resulting page), but with > peculiar results for the actual logic it's supposed to be doing, so I > wasn't sure whether that was a configur

RE: Logic tag library

2008-02-13 Thread Allen, Daniel
Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 3:36 PM To: Struts Users Mailing List Subject: Re: Logic tag library --- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > Is there any reason we shouldn't use the Logic tab li

Re: Logic tag library

2008-02-13 Thread Dave Newton
--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote: > Is there any reason we shouldn't use the Logic tab library > (http://struts.apache.org/tags-logic) with Struts 2? Because it won't work. > If so, is there any subsitute? > I'm looking specifically for and > (along with the old ) I thought I alr

Logic tag library

2008-02-13 Thread Allen, Daniel
Is there any reason we shouldn't use the Logic tab library (http://struts.apache.org/tags-logic) with Struts 2? If so, is there any subsitute? I'm looking specifically for and (along with the old ) ~Dan Allen -Original Message- From: Zheng, Xiahong [mailto:[EMAIL PROTECTED] Sent: Wedne

Re: problems when using logic tag with jsp scriptlet

2007-05-05 Thread Jian Zhan
Hi Laurie, Thanks for info and help. The problem looks rare. We load the example coming with Struts (struts-mailreader), it works, which use struts. That means application server is OK. The struts's , , and works fine except action servlet. We think there is only a little issue somewhere block

Re: problems when using logic tag with jsp scriptlet

2007-05-05 Thread Laurie Harper
Sounds like a problem with your application server. Runtime Expressions are handled by it, not by Struts, so I don't think this is a Struts issue. L. zuzg wrote: I'm sorry, the seconde code has some typing error, is should be: some other codes... zuzg wrote: I am using struts 1.2.8 in m

Re: problems when using logic tag with jsp scriptlet

2007-05-05 Thread zuzg
ssed the J2EE > standards 1.4 certification(it's name is Kingdee Apusic). > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this messag

problems when using logic tag with jsp scriptlet

2007-05-05 Thread zhu zhiguo
I am using struts 1.2.8 in my jsp file, I wrote such codes: some other codes... when running on tomcat5.0, it is ok, but when I depoy it on another middleware AS,I got an error:invalide tag lib using, I can only change value to a const like this: some other codes... it works. I want to know

DynaValidator and logic-tag

2007-03-27 Thread bjorn.de.bakker
Is there any way to show appropriate errors using DynaValidator? I have a form with 3 fields, one for the username and two fields for a password. When you enter no values, a global error must be shown to the user. When the user enters an invalid character for the username, a messages that s

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Dave Newton
J Gotsch wrote: > I guess my problem is larger than using an if/else statement. This much is certainly true ;) > I figured how to do that, but I'm iterating over a List in the JSP, and want > to be able to exit the loop whenever certain item exist. I don't suppose > there's a way to do that, i

Re: Conditional Statements (if/else) Using logic tag

2006-05-15 Thread Jorge Martín Cuervo
Filter the List before sent to jsp, can you do it? or you must do it in jsp? you can implement your own custom tag extending iterate. Other solution is to define a variable in jsp with c:set when you found and item, and only print when variable isn't set or false. Take a look to jstl common tag

Re: Conditional Statements (if/else) Using logic tag

2006-05-14 Thread J Gotsch
I guess my problem is larger than using an if/else statement. I figured how to do that, but I'm iterating over a List in the JSP, and want to be able to exit the loop whenever certain item exist. I don't suppose there's a way to do that, is there? My requirement in a nutshell: the List cou

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread Philihp Busby
Jerome is referring to tags in the JSTL Core tag library. mmm code-bloat. On 5/14/06, J Gotsch <[EMAIL PROTECTED]> wrote: Which package does this belong to? I can't find it anywhere. Jerome Gagner <[EMAIL PROTECTED]> wrote: use On 5/13/06, J Gotsch wrote: > Hello All, > > How do I

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread J Gotsch
Which package does this belong to? I can't find it anywhere. Jerome Gagner <[EMAIL PROTECTED]> wrote: use On 5/13/06, J Gotsch wrote: > Hello All, > > How do I perform an If/else with ? > > In the below logic:iterate tag, If my collection contains both ROLE1 AND > ROLE2, Then both statem

Re: Conditional Statements (if/else) Using logic tag

2006-05-13 Thread Jerome Gagner
use On 5/13/06, J Gotsch <[EMAIL PROTECTED]> wrote: Hello All, How do I perform an If/else with ? In the below logic:iterate tag, If my collection contains both ROLE1 AND ROLE2, Then both statements will be displayed. And that's now what I want. I want to implement something like thi

Conditional Statements (if/else) Using logic tag

2006-05-13 Thread J Gotsch
Hello All, How do I perform an If/else with ? In the below logic:iterate tag, If my collection contains both ROLE1 AND ROLE2, Then both statements will be displayed. And that's now what I want. I want to implement something like this: if(securityRoleName.equals("ROLE1"))

using logic tag

2006-03-10 Thread temp temp
I am using struts 1.1 I using logic equal tag to check whether a page context attribute value. here is my code So only one logic equal will be true but not both .But when I call this jsp in the browser I get

RE: Logic Tag Question

2006-03-06 Thread Shasirekha Engala
is the timeZone membervariable of timeZones? then replace the logic:equal tag with the following -Original Message- From: Kalcevich, Daniel [mailto:[EMAIL PROTECTED] Sent: Monday, March 06, 2006 8:41 PM To: Struts Users Mailing List Subject: RE: Logic Tag Question Laurie, I

RE: Logic Tag Question

2006-03-06 Thread Kalcevich, Daniel
, March 04, 2006 6:01 PM To: user@struts.apache.org Subject: Re: Logic Tag Question Change "${tz}.value" to "${tz.value}". Kalcevich, Daniel wrote: > The is fine. I know that works. The problem is with the > logic:equal comparion. > &

Re: Logic Tag Question

2006-03-04 Thread Laurie Harper
om the "tz" variable? -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 1:29 PM To: Struts Users Mailing List Subject: Re: Logic Tag Question On 3/3/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: But the problem is that the &

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
lto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 1:29 PM To: Struts Users Mailing List Subject: Re: Logic Tag Question On 3/3/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > > But the problem is that the "value" that I want to compare in the > logic:equal tag is really

RE: Logic Tag Question

2006-03-03 Thread [EMAIL PROTECTED]
wouldn't that be: Bryan LaPlante -- Original Message --- From: "Kalcevich, Daniel" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Fri, 3 Mar 2006 13:17:02 -0800 Subject: RE: Logic Tag Question > OK, I am now able to get the itera

Re: Logic Tag Question

2006-03-03 Thread Michael Jouravlev
On 3/3/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: > > But the problem is that the "value" that I want to compare in the > logic:equal tag is really ${tz}.value. But how can I set the value to > the "getValue()" from the "tz" variable. None of these works? Michael. ---

RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
lue to the "getValue()" from the "tz" variable. Daniel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 12:52 PM To: Struts Users Mailing List Subject: Re: Logic Tag Question If I am not mistaking you will use either

Re: Logic Tag Question

2006-03-03 Thread [EMAIL PROTECTED]
the forms value by saying //do something Bryan LaPlante -- Original Message --- From: "Kalcevich, Daniel" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Fri, 3 Mar 2006 12:21:18 -0800 Subject: Logic Tag Question > I have the following:

Re: Logic Tag Question

2006-03-03 Thread Wendy Smoak
On 3/3/06, Kalcevich, Daniel <[EMAIL PROTECTED]> wrote: I have the following: > - An ArrayList in the ServletContext called > "timezones" > > - A Form Bean in the request scope called "accountProfileForm" > > I want to be able to loop through the values in the "timezones" > attri

Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
I have the following: - An ArrayList in the ServletContext called "timezones" - A Form Bean in the request scope called "accountProfileForm" I want to be able to loop through the values in the "timezones" attribute and compate the "value" to the value of the "timeZone" in

Logic Tag Question

2006-02-10 Thread Kalcevich, Daniel
Everyone, I have two modules defined (/ & /app). I want to use the logic tag (either redirect or forward) to take me to the URL "/myApp/index.htm" when I enter in just "/myApp/". I have defined an action within the "/" module Struts Config File that is calle

Re: logic tag - to check form elements

2005-09-28 Thread Murray Collingwood
Hi Raghu What's the name of the form bean? Let's assume it's "myformbean" for the example: ... Use the 'name' parameter to reference the form bean name. Use the 'property' parameter to reference the property. Note, you will be testing the value in the form- bean, not the value in the h

Re: logic tag - to check form elements

2005-09-28 Thread Michael Jouravlev
On 9/28/05, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote: > I have a hidden html varibale called operation. > This defines a field in an HTML form, server knows nothing about it. > Now I want to conditionally display some buttons based on the value of > this hidden field. I am trying somet

logic tag - to check form elements

2005-09-28 Thread Raghu Kanchustambham
I have a hidden html varibale called operation. Now I want to conditionally display some buttons based on the value of this hidden field. I am trying something like this... # display update related buttons This doesnt seem to work. What am I doing wrong? I know that if 'operation' was a

RE: Antwort: Clarrifications on Usage of logic tag library

2005-02-24 Thread Kris Schneider
uest_uri: servlet_name: See the servlet spec for details... > I also tried > But this time it encountered some parsing error. > > How exactly an object instance is passed to a JSTL tag? I'm not very clear on > that. > Let me know where I'm doing wrong. > >

RE: Antwort: Clarrifications on Usage of logic tag library

2005-02-24 Thread Ashutosh Satyam
sh -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 4:51 PM To: Karsten Krieg; Struts Users Mailing List Subject: Re: Antwort: Clarrifications on Usage of logic tag library At 11:40 AM +0100 2/23/05, Karsten Krieg wrote: >Hi! > >It'

Re: Help with Struts-Logic Tag

2005-02-24 Thread Tim Christopher
Sorry slight typo - try something of the form: Note the <%= at the start of the name value. If you look using Google you can problem find a simple tutorial to explain all about the logic tags but put simply the above statement checks for the presence of a bean named the value of Konstants

Re: Help with Struts-Logic Tag

2005-02-24 Thread Richard Reyes
Hi Tim/Guys, the 2nd option is not working. can you elaborate on the first one? how do i declare the user? usebean? thanks Richard On Tue, 22 Feb 2005 12:53:55 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > Try using: > > > > > > Where user = Konstants.SESSION_USER_KEY, or maybe

Re: Antwort: Clarrifications on Usage of logic tag library

2005-02-23 Thread Joe Germuska
H Fon +49 (0)721 3 84 79 - 28 Fax +49 (0)721 3 84 79 - 60 e-mail [EMAIL PROTECTED] http://www.intarsys.de "Ashutosh Satyam" <[EMAIL PROTECTED]> schrieb am 23.02.2005 11:19:48: Hi, Can you suggest how t

Antwort: Clarrifications on Usage of logic tag library

2005-02-23 Thread Karsten Krieg
IL PROTECTED] http://www.intarsys.de "Ashutosh Satyam" <[EMAIL PROTECTED]> schrieb am 23.02.2005 11:19:48: > Hi, > Can you suggest how to use

Clarrifications on Usage of logic tag library

2005-02-23 Thread Ashutosh Satyam
Hi, Can you suggest how to use the logic tag library to achieve the following scenario. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - In my Action class I expect few Exceptions to be thrown. Incase if

Re: Help with Struts-Logic Tag

2005-02-22 Thread Tim Christopher
Try using: Where user = Konstants.SESSION_USER_KEY, or maybe even: Tim Christopher On Tue, 22 Feb 2005 19:40:36 +0800, Richard Reyes <[EMAIL PROTECTED]> wrote: > Hello Guys, > > I have this tag ... > > href="routes-login.rr" /> > > And I need to change hello.world to Konstants

Help with Struts-Logic Tag

2005-02-22 Thread Richard Reyes
Hello Guys, I have this tag ... And I need to change hello.world to Konstants.HELLO_WORLD. Now this... does not seem to work( of course ). Please help. Thanks Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: about logic tag

2004-12-13 Thread Webmaster
D] Subject: Re: about logic tag > Are there stairs in your house? > > Pramod wrote: > > > I have done the steps but i didn't get results > > > > - > > To unsubscribe, e-mail: [EMAIL PRO

Re: about logic tag

2004-12-13 Thread Pramod
This is the code in the model class's method if(result!=null || result.size()>0) { objectVector = new Vector(); for(int i=0;i

Re: about logic tag

2004-12-13 Thread Andrew Hill
opps. Didnt see this post when I replied just now. The syntax seems ok. When you say its not producing results, is there any error message or stack trace, or is it just that that part of the page is blank? If blank it sounds like the results vector is empty. I presume you initialise it in your

Re: logic tag

2004-12-13 Thread Andrew Hill
Sorry mate, you going to have to be a bit more specific about the problems your having, and precisely what result it is that you are actually trying to achieve, as we are having some trouble understanding the question! I am having a vector object in jsp In a request or session attribute I pre

Re: about logic tag

2004-12-13 Thread Pramod
i didnt get u - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: about logic tag

2004-12-13 Thread Andrew Hill
Are there stairs in your house? Pramod wrote: I have done the steps but i didn't get results - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -

logic tag

2004-12-13 Thread Pramod
I am having a vector object in jsp. An ActionForm's two instances are stored in that vector. Action form contains only one variable. How can i produce the results using logic & bean tags

Re: about logic tag

2004-12-13 Thread Pramod
I have done the steps but i didn't get results - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: about logic tag

2004-12-12 Thread Pramod
I can't produce the result. The bean tag creating new instance of ActionForm.Get me a solution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: about logic tag

2004-12-12 Thread Pramod
It is not displaying the results. The code producing new instances of ActionForm. i will send my code - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: about logic tag

2004-12-12 Thread Sunny
Pramod wrote: I have a vector object in a jsp page. An ActionForm's two instances are stored in that vector. How can i display the values using bean & logic tag? - To unsubscribe, e-mai

about logic tag

2004-12-12 Thread Pramod
I have a vector object in a jsp page. An ActionForm's two instances are stored in that vector. How can i display the values using bean & logic tag?

Re: logic tag

2004-12-10 Thread Sunny
Pramod wrote: I have a bean object in the jsp page. How can i use the logic:iterate tag to producing the result? If the bean has a Collection say "collection" , you can do note: you should have a getter method for "collection" in the "bean", for e.g. getCollection() --

logic tag

2004-12-10 Thread Pramod
I have a bean object in the jsp page. How can i use the logic:iterate tag to producing the result?

RE: Logic tag to JSTL

2004-11-10 Thread Robert Taylor
> -Original Message- > From: TroyGeek [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 10, 2004 4:25 PM > To: Struts Users Mailing List > Subject: Logic tag to JSTL > > > How would I turn the following logic tag into a JSTL tag. Woul

Re: Logic tag to JSTL

2004-11-10 Thread Erik Weber
Erik TroyGeek wrote: How would I turn the following logic tag into a JSTL tag. Would it use the core tags? thank you! Troyston Campano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

RE: Logic tag to JSTL

2004-11-10 Thread Slattery, Tim - BLS
> How would I turn the following logic tag into a JSTL tag. > > >property="projectName"/> -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Logic tag to JSTL

2004-11-10 Thread TroyGeek
How would I turn the following logic tag into a JSTL tag. Would it use the core tags? thank you! Troyston Campano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: FW: property element in logic tag

2004-10-21 Thread Jeff Beal
I think you have a few extra layers of nesting. What exactly are your system.out checks? What's being called in the custom tags is the same as session.getAttribute("PersonStatus").getPerson().getCountryCode().getCountryCode() The value portion of the tag is session.getAttribute("CountryCode")

FW: property element in logic tag

2004-10-21 Thread Suzy Fynes
Hi, Can anyone see why the following will would not work PersonStatus is a session object that contains a nested object countryCode of type CountryCode and the class CountryCode contains a string m_countryCode. There is also a session object CountryCode that is an arraylist of different

RE: nested logic tag

2004-05-13 Thread Kathy Zhou
Just follow-up my previous note: I got this work by using: fyi, Kathy -Original Message- From: Kathy Zhou [SMTP:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 2:39 PM To: '[EMAIL PROTECTED]' Subject: nested lo

nested logic tag

2004-05-13 Thread Kathy Zhou
I need your help on how to use nested logic tag: I have a ArrayList list1. each element of the list1 is a ArrayList too. In Java code, it will be like: for(int i=0; i

nested logic tag

2004-05-13 Thread Kathy Zhou
I need your help on how to use nested logic tag: I have a ArrayList list1. each element of the list1 is a ArrayList too. In Java code, it will be like: for(int i=0; i

Re: logic tag

2004-05-09 Thread Craig McClanahan
[EMAIL PROTECTED] wrote: I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true

Re: logic tag

2004-05-09 Thread Sven Kiesewetter
[EMAIL PROTECTED] wrote: I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true

logic tag

2004-05-09 Thread vancega
I am new to struts. I have a question regarding logic tag. I was replacing those if else if . end if stuffs with logic tags on jsp pages. For example: if num==1 {// condition 1 block 1; }else if num==2 {// condition 2 block 2; } Usually if condition 1 is true, condition 2 does not be