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 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]>
> Subject: logic tag question
> To: user@struts.apache.org
> Date: Wednesday, November 5, 2008, 11:51 AM
> 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:
>
>  property="parentArticleId" value="0">
>
>  property="parentArticleId"
> value=" property="articleMetaId"/>">
>
>  src="../images/icon_merged.png"
> width="13"
> height="13" align="absmiddle">
>
> 
>
> 
>
>
> y

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







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 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

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:



">









Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates
is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







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]>
> Subject: logic tag question
> To: user@struts.apache.org
> Date: Wednesday, November 5, 2008, 11:51 AM
> 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:
> 
>  property="parentArticleId" value="0">
> 
>  property="parentArticleId"
> value=" property="articleMetaId"/>">
> 
>  src="../images/icon_merged.png"
> width="13"
> height="13" align="absmiddle">
> 
> 
> 
> 
> 
> 
> y

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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

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:



">









Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 changed the code to be:


 




Any it still does not write out the value that matches the
accountProfile.getTimeZone() field.  Any other ideas?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, 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.  
> 
> 
>value="${tz}.value">
>   
>   
> 
> 
> How can I say that the value I want to check against if the getValue()
> method from 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 "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.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Logic Tag Question

2006-03-06 Thread Kalcevich, Daniel
Laurie,

I changed the code to be:


 




Any it still does not write out the value that matches the
accountProfile.getTimeZone() field.  Any other ideas?

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Saturday, 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.  
> 
> 
>value="${tz}.value">
>   
>   
> 
> 
> How can I say that the value I want to check against if the getValue()
> method from 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 "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.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logic Tag Question

2006-03-04 Thread Laurie Harper

Change "${tz}.value" to "${tz.value}".

Kalcevich, Daniel wrote:

The  is fine.  I know that works.  The problem is with the
logic:equal comparion.  








How can I say that the value I want to check against if the getValue()
method from 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 "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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
The  is fine.  I know that works.  The problem is with the
logic:equal comparion.  







How can I say that the value I want to check against if the getValue()
method from 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 "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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 iterate tag to work, but the comparison is
> still not working.  I have this now:
> 
> 
>   
>  value="${tz}">
>   
> 
>   
> 
>   
> 
> 
> 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.
> 
> 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 the collection or the property
> attribute but not both.
> http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#lo
> gic:iterate
> 
> For each iteration of the loop you should be able to compare the value
> of the
> id property in you logic:equal tag to the forms value by saying
> 
>value="${tz}">
> //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:
> > 
> > -  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
> the
> > "accountProfileForm".  Here is what I am trying:
> > 
> > 
> > 
> >> value="timeZones.value">
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > I get the following error:
> > 
> > 12:16:59,031 ERROR [action]:253 - Servlet.service() for servlet action
> > threw exception
> > 
> > javax.servlet.jsp.JspException: ServletException in
> > '/jsp/templates/tab_content_template.jsp': ServletException in
> > '/jsp/account/account_profile_form.jsp': Cannot create iterator for
> this
> > collection
> > 
> >   at
> >
> org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
> > g.java:923)
> > 
> > Can someone point me in the right direction or let me know what is
> wrong
> > with the above?  Thanks.
> > 
> > Daniel
> --- End of Original Message ---
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- End of Original Message ---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Logic Tag Question

2006-03-03 Thread Kalcevich, Daniel
OK, I am now able to get the iterate tag to work, but the comparison is
still not working.  I have this now:











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.

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 the collection or the property
attribute but not both.
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#lo
gic:iterate

For each iteration of the loop you should be able to compare the value
of the
id property in you logic:equal tag to 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:
> 
> -  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
the
> "accountProfileForm".  Here is what I am trying:
> 
> 
> 
>value="timeZones.value">
> 
> 
> 
>   
> 
> 
> 
> I get the following error:
> 
> 12:16:59,031 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> 
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/account/account_profile_form.jsp': Cannot create iterator for
this
> collection
> 
>   at
>
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
> g.java:923)
> 
> Can someone point me in the right direction or let me know what is
wrong
> with the above?  Thanks.
> 
> Daniel
--- End of Original Message ---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Logic Tag Question

2006-03-03 Thread [EMAIL PROTECTED]
If I am not mistaking you will use either the collection or the property
attribute but not both.
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#logic:iterate

For each iteration of the loop you should be able to compare the value of the
id property in you logic:equal tag to 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:
> 
> -  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 the
> "accountProfileForm".  Here is what I am trying:
> 
> 
> 
>value="timeZones.value">
> 
> 
> 
>   
> 
> 
> 
> I get the following error:
> 
> 12:16:59,031 ERROR [action]:253 - Servlet.service() for servlet action
> threw exception
> 
> javax.servlet.jsp.JspException: ServletException in
> '/jsp/templates/tab_content_template.jsp': ServletException in
> '/jsp/account/account_profile_form.jsp': Cannot create iterator for this
> collection
> 
>   at
> org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
> g.java:923)
> 
> Can someone point me in the right direction or let me know what is wrong
> with the above?  Thanks.
> 
> Daniel
--- End of Original Message ---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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"
> attribute and compate the "value" to the value of the "timeZone" in the
> "accountProfileForm".  Here is what I am trying:


It looks like a Map would be a better choice than an
ArrayList.  Can you change it?  Then you could just use

[untested]
   

--
Wendy


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 the
"accountProfileForm".  Here is what I am trying:

 



  



  



 

I get the following error:

 

12:16:59,031 ERROR [action]:253 - Servlet.service() for servlet action
threw exception

javax.servlet.jsp.JspException: ServletException in
'/jsp/templates/tab_content_template.jsp': ServletException in
'/jsp/account/account_profile_form.jsp': Cannot create iterator for this
collection

  at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:923)

 

 

 

Can someone point me in the right direction or let me know what is wrong
with the above?  Thanks.

 

Daniel

 



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 called "/index" and forwards to a
Tiles Definition.  

 

My question is, what syntax can I use on the index.jsp page at the root
of my site to forward to that URL?  Thanks.

 

daniel