Re: logic tags

2003-10-24 Thread Brad Balmer
Have you looked at the DisplayTag Libray?

http://sourceforge.net/projects/displaytag/

mohamed ebrahim faisal wrote:





E.FAISAL

Hi

I would like to display the form data in JSP using logic:iterate 
tags.

Consider the following situation

ArrayList ar = form.getInfoContents();

for(int i=0;iar.length;i++)
{
   HashMap row = (HashMap) ar.get(i);
tr
  tdhtml:text property=name value=%=(String) row.get(name) 
% /
  tdhtml:text property=age value=%=(String) row.get(age) % /
  tdhtml:text property=address value=%=(String) 
row.get(address) % /

  ...
..
/tr
}
In the above code i am getting a property of type ArrayList whose 
elements are of type HashMap, where each HashMap object represents a 
record.

It works fine , but i want above code purely in struts tag 
logic:iterate or some other technique.

I tried the following and it worked fine

logic:iterate name=beanname id=persons property=infoContents
tr
 logic:iterate name=persons id=row 
td
bean:write name=row /
   /td
  /logic:iterate
/tr
/logic:iterate
But in the above case i am not able to associate every value in the 
HashMap object ie, row to a corresponding property like i got using 
for loop

tr
  tdhtml:text property=name value=%=(String) row.get(name) 
% /
  tdhtml:text property=age value=%=(String) row.get(age) % /
  tdhtml:text property=address value=%=(String) 
row.get(address) % /

  ...
..
/tr
please someone help me out and give the approach to solve the problem

regards

faisal

_
Access Hotmail from your mobile now. 
http://server1.msn.co.in/sp03/mobilesms/ Click here.

-
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 tags with mapped properties

2003-08-14 Thread André
Yes, it is supported.

--- André Moreira [EMAIL PROTECTED] wrote:
 Gurus,
 
 do logic tags suport mapped properties?
 
 In other words, I want to have a HashMap wrapped
 inside a java bean and use its values in a tag like
 logic:equal name=beanName
 property=mappedProperty(key) value=true/
 
 Any help is appreciated.
 
 Regards, 
 
 André.
 
 =
 
 O mundo é bom pra quem sabe viver.
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

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


=

O mundo é bom pra quem sabe viver.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Logic tags and collections?

2003-03-12 Thread niksa_os
 Try struts menu http://sourceforge.net/project/struts-menu.

 Edgar

PAGE NOT FOUND

I try to search at sourceforge.net, but I didn't find anything like
struts-menu.
Where is it?

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



RE: Logic tags and collections?

2003-03-12 Thread Eva Sager
I think he meant http://sourceforge.net/projects/struts-menu

-Original Message-
From: niksa_os [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 6:13 AM
To: Struts Users Mailing List
Subject: Re: Logic tags and collections?


 Try struts menu http://sourceforge.net/project/struts-menu.

 Edgar

PAGE NOT FOUND

I try to search at sourceforge.net, but I didn't find anything like
struts-menu.
Where is it?

-
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 tags and collections?

2003-03-11 Thread Edgar Dollin
Try struts menu http://sourceforge.net/project/struts-menu.

Edgar

 -Original Message-
 From: niksa_os [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 11:37 AM
 To: 'Struts Users Mailing List'
 Subject: Logic tags and collections?
 
 
 How can I make something like this with Struts or someone 
 have better idea?
 
 I have few Admin: MainAdmin, UserAdmin, EmailAdmin.
 MainAdmin can do anything, UserAdmin manage users and emails, 
 and EmailAdmin make emails only.
 
 So, I need this:
 -without Struts, I make Collection in session and
 
 If session.getAdminTypeCollection contain MainAdmin {
 do something
 If session.getAdminTypeCollection contain UserAdmin OR MainAdmin {
 do something
 If session.getAdminTypeCollection contain EmailAdmin OR 
 UserAdmin OR MainAdmin {
 do something
 } End EmailAdmin
 } End UserAdmin
 } End MainAdmin
 
 For MainAdmin Collection:
 Collection.add(MainAdmin)
 Collection.add(UserAdmin)
 Collection.add(EmailAdmin)
 
 For UserAdmin Collection:
 Collection.add(UserAdmin)
 Collection.add(EmailAdmin)
 
 For EmailAdmin Collection:
 Collection.add(EmailAdmin)
 
 -do something are links
 
 MainAdmin see all links
 UserAdmin see UserAdmin and EmailAdmin links
 EmailAdmin only EmailAdmin links
 
 I can't use role or principal or anything from JAAS.
 
 So, I need somehow to check Coolection with logic:present or 
 some others tags?
 
 Thanks.
 

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



RE: Logic tags and collections?

2003-03-11 Thread Marco Tedone
First of all I would suggest you to reverse the if order so that, it the
first if returns true, you don't' have to perform the other if
statements(Like now, to get to a consistent result, you should perform all
the three if statements); secondly, you could iterate trough the Collection
retrieved from the session[by means of
(java.util.YourCollection)session.getAttribute? By means of bean:define
id=yourInternal name=yourSessionScopeCollectionName
type=java.util.YourCollection?]

and, depending on how many if are satisfied by logic:present, you could
show the consistent links.

My 2 cents.

Marco

 -Original Message-
 From: niksa_os [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 4:37 PM
 To: Struts Users Mailing List
 Subject: Logic tags and collections?
 
 
 How can I make something like this with Struts or someone 
 have better idea?
 
 I have few Admin: MainAdmin, UserAdmin, EmailAdmin.
 MainAdmin can do anything, UserAdmin manage users and emails, 
 and EmailAdmin make emails only.
 
 So, I need this:
 -without Struts, I make Collection in session and
 
 If session.getAdminTypeCollection contain MainAdmin {
 do something
 If session.getAdminTypeCollection contain UserAdmin OR MainAdmin {
 do something
 If session.getAdminTypeCollection contain EmailAdmin OR 
 UserAdmin OR MainAdmin {
 do something
 } End EmailAdmin
 } End UserAdmin
 } End MainAdmin
 
 For MainAdmin Collection:
 Collection.add(MainAdmin)
 Collection.add(UserAdmin)
 Collection.add(EmailAdmin)
 
 For UserAdmin Collection:
 Collection.add(UserAdmin)
 Collection.add(EmailAdmin)
 
 For EmailAdmin Collection:
 Collection.add(EmailAdmin)
 
 -do something are links
 
 MainAdmin see all links
 UserAdmin see UserAdmin and EmailAdmin links
 EmailAdmin only EmailAdmin links
 
 I can't use role or principal or anything from JAAS.
 
 So, I need somehow to check Coolection with logic:present or 
 some others tags?
 
 Thanks.
 

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



RE: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Maris Orbidans


Yes, of course, it's possible.  There is no requirement that class you work with must 
be derived from ActionForm.
A class derived from ActionForm is a bean.

Logic tags also can work with cookies, request headers etc.   ( see doc. of logic tags 
)

I'd suggest you to create some JavaBean ( in session or request scope ) that contains 
info about user permissions  and access it from JSP.

Maris







equal - Evaluate the nested body content of this tag if the requested variable is 
equal to the specified value.  
Compares the variable specified by one of the selector attributes against the 
specified constant value. The nested body content of this tag is evaluated if the 
variable and value are equal. 

 
Attribute Name  Description 
 

cookie  The variable to be compared is the value of the cookie whose name is 
specified by this attribute.


header  The variable to be compared is the value of the header whose name is 
specified by this attribute. The name match is performed in a case insensitive manner.


nameThe variable to be compared is the JSP bean specified by this 
attribute, if property is not specified, or the value of the specified property of 
this bean, if property is specified.


parameter   The variable to be compared is the first, or only, value of the 
request parameter specified by this attribute.




 -Original Message-
 From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 15, 2002 1:25 PM
 To: [EMAIL PROTECTED]
 Subject: logic-tags related to beans not derived from ActionForm?
 
 
 Subject: logic-tags related to beans not derived from ActionForm?
 From: Johannes Wolfgang Woger [EMAIL PROTECTED]
  ===
 Hallo,
 I need logic:equal/present etc. etc  in my application
 to make them more dynamic depending on the permissions of a user. The
 information for these tags
 should not appear in the ActionForm object. Is here
 a possibility to fuel these tags with data from an other 
 class, not derived
 from ActionForm?
 
 Thank in advance
 Wolfgang
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Re: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Johannes Wolfgang Woger

Thank you Maris,
exactly what I needed. I suppose that is the way to
overcome the restriction that an Action can have only one
ActionForm.

Wolfgang


- Original Message -
From: Maris Orbidans [EMAIL PROTECTED]
Newsgroups: Struts
Sent: Monday, April 15, 2002 1:29 PM
Subject: RE: logic-tags related to beans not derived from ActionForm?



 Yes, of course, it's possible.  There is no requirement that class you
work with must be derived from ActionForm.
 A class derived from ActionForm is a bean.

 Logic tags also can work with cookies, request headers etc.   ( see doc.
of logic tags )

 I'd suggest you to create some JavaBean ( in session or request scope )
that contains info about user permissions  and access it from JSP.

 Maris







 equal - Evaluate the nested body content of this tag if the requested
variable is equal to the specified value.
 Compares the variable specified by one of the selector attributes against
the specified constant value. The nested body content of this tag is
evaluated if the variable and value are equal.


 Attribute Name Description


 cookie The variable to be compared is the value of the cookie whose name
is specified by this attribute.


 header The variable to be compared is the value of the header whose name
is specified by this attribute. The name match is performed in a case
insensitive manner.


 name The variable to be compared is the JSP bean specified by this
attribute, if property is not specified, or the value of the specified
property of this bean, if property is specified.


 parameter The variable to be compared is the first, or only, value of the
request parameter specified by this attribute.




  -Original Message-
  From: Struts Newsgroup (@Basebeans.com) [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 15, 2002 1:25 PM
  To: [EMAIL PROTECTED]
  Subject: logic-tags related to beans not derived from ActionForm?
 
 
  Subject: logic-tags related to beans not derived from ActionForm?
  From: Johannes Wolfgang Woger [EMAIL PROTECTED]
   ===
  Hallo,
  I need logic:equal/present etc. etc  in my application
  to make them more dynamic depending on the permissions of a user. The
  information for these tags
  should not appear in the ActionForm object. Is here
  a possibility to fuel these tags with data from an other
  class, not derived
  from ActionForm?
 
  Thank in advance
  Wolfgang
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 

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



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




Re: logic-tags related to beans not derived from ActionForm?

2002-04-15 Thread Johannes Wolfgang Woger

Thanks,
missing comercial support is often a argument against
open source software , some decition maker think that
way. They should have visited this wonderfull newsgroup

Wolfgang
- Original Message -
From: Maris Orbidans [EMAIL PROTECTED]
Newsgroups: Struts
Sent: Monday, April 15, 2002 2:56 PM
Subject: RE: logic-tags related to beans not derived from ActionForm?



  Thank you Maris,
  exactly what I needed. I suppose that is the way to
  overcome the restriction that an Action can have only one
  ActionForm.

 Yes.

 BTW  You can add properties to you form bean, that don't correspond to
HTML input fields.

 For example a field that determines that input fields are read only.

 // Action class...
  form.setReadOnly(false);

 // JSP

 logic:notEqual name=Lim1vkontrole property=readOnly value=false 
 html:text property=datums readonly=true size=10
styleId=text maxlength=10/
 /logic:notEqual
 logic:equal name=Lim1vkontrole property=readOnly value=false 
 html:text property=datums size=10 styleId=text
maxlength=10/
 /logic:equal



 Maris

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



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




RE: Logic Tags

2001-08-29 Thread Assenza, Chris

Could you be more specific so we can help? :) 

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 10:32 AM
To: '[EMAIL PROTECTED]'
Subject: Logic Tags


I'm having some problems getting the Logic present tag to fire when I pass
it a request parameter.  



RE: Logic Tags

2001-08-29 Thread Mike Bungay

I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



RE: Logic Tags

2001-08-29 Thread Roumen Ganeff

You should check with 

logic:present name=success scope=request

the parameter checks only for parameters set in the URL or by form fields

G.
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 6:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??





RE: Logic Tags

2001-08-29 Thread George, Carl

It is firing it's just false.  Parameter checks the url.  
try
logic:present name=success 
name - checks the session, not sure about the request, you page have to do:
logic:present name=success scope=request 
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



RE: Logic Tags

2001-08-29 Thread Mike Bungay

Yes But i just passed in a string value not a variable because I don't
really care what the value is I just want to check that it's present

-Original Message-
From: juraj Lenharcik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Logic Tags


did you have:

String message = blabla;
request.setAttribute(success, message);

in your actionBean?


-juraj

-Ursprüngliche Nachricht-
Von: Mike Bungay [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 17:17
An: '[EMAIL PROTECTED]'
Betreff: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



RE: Logic Tags

2001-08-29 Thread Mike Bungay

The present tag is not firing at all.  I tried the scope=request but there
was no change.  THe tag still doesn't fire..

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


It is firing it's just false.  Parameter checks the url.  
try
logic:present name=success 
name - checks the session, not sure about the request, you page have to do:
logic:present name=success scope=request 
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



RE: Logic Tags

2001-08-29 Thread George, Carl

but did you change parameter to name?

-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


The present tag is not firing at all.  I tried the scope=request but there
was no change.  THe tag still doesn't fire..

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


It is firing it's just false.  Parameter checks the url.  
try
logic:present name=success 
name - checks the session, not sure about the request, you page have to do:
logic:present name=success scope=request 
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



RE: Logic Tags

2001-08-29 Thread Mike Bungay

Carl George,

Thanks for the tip,  It is finally working...


-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 12:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


but did you change parameter to name?

-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


The present tag is not firing at all.  I tried the scope=request but there
was no change.  THe tag still doesn't fire..

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


It is firing it's just false.  Parameter checks the url.  
try
logic:present name=success 
name - checks the session, not sure about the request, you page have to do:
logic:present name=success scope=request 
-Original Message-
From: Mike Bungay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 11:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute(success,yes);) parameter
back to the jsp but in the jsp when I try this code: 

logic:present parameter=success 
SCRIPT LANGUAGE=JavaScript  
window.open(welcome.jsp, popupPage, top=0,left=0,resizable=yes,
status=yes +   ,width= + screen.width +
,height= + screen.height);
/script
/logic:present

the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??



Re: Hi All, especially Nial Pemberton and Ted Husted - Re Logic Tags

2001-08-24 Thread Ted Husted

Personally, I would tend to want to stand pat on the Struts tag
extensions while the JSPTL is being sorted out. Ideally, I believe we
would want to include a bare minimum number of tags with Struts, and
leave everything else to places like Jakarta Taglibs. It's possible that
Nial might want to propose his Taglibs over there, for wider
distribution. We'll probably be moving our own logic tags there too
eventually.

An important point generally is that Struts is not meant to be an
omnibus platform for Web development. We do not want to include
everything any developer might ever want to use to write an application.
Struts is designed as a lightweight platform that fills the gaps between
Servlets, JavaServer Pages, i18n, and a MVC type design. We included
some general purpose tags to begin with, because when we started, places
like Jakarta Taglibs and the Commons didn't exist. Now that they do,
we'll be moving whatever functionality we can over there, so Struts can
focus on only doing the things Struts absolutely needs to do. 

When Craig decided to name the framework Struts, I think part of what he
had in mind was that the less of it that shows, the better ;-)

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


Dudley Butt@i-Commerce wrote:
 
 Hi All,
 
 I just want to know wether Nials extra logic tags will ever be put into the
 Struts build?
 
 Thanx
 
 Regards,
 Dudley Butt



Hi All, especially Nial Pemberton and Ted Husted - Re Logic Tags

2001-08-23 Thread Dudley [EMAIL PROTECTED]

Hi All, 

I just want to know wether Nials extra logic tags will ever be put into the
Struts build?

Thanx

Regards,
Dudley Butt

Software Analyst/Developer
Phone:   +27 (0)21 936 7517
Mobile:  +27 (0)83 327 5709
E-mail:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: logic tags

2001-06-20 Thread Jon.Ridgway

Hi Pratima,

I guess the simple answer is that in JSP getters and setters should handle
strings only. So the logic tags expect strings.

There is no if/else tag, there are plans for if/else and switch in the 1.1
to do list (see http://jakarta.apache.org/struts/todo-1.1.html).


Jon.

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]] 
Sent: 19 June 2001 23:00
To: '[EMAIL PROTECTED]'
Subject: logic tags


Hi,

I am trying to see if there is a less clumsy way of doing the following ...
I have a boolean bean property - I was trying to use one of the logic tags
to test if this value is true.
my question is why do I need to supply a value attribute even for bean
properties that are boolean? 

I guess I am looking for an logic:if tag.
Or have I not read the manual/guide properly  missed something?

Would the fact that there is no tag - that assumes a bean property is
boolean mean that - having boolean properties is discouraged/restricted to
using in special cases? 

for example I have to do something like this:
logic:equal name=myBean property=isEditEnabled
scope=session value=true
!--- some code here --
  /logic:equal

I was hoping to do something like:
logic:if name=myBean property=isEditEnabled
scope=session
!--- some code here --
  /logic:equal

Thanks
Pratima