struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken.H...@ubsw.com
Subject RE: "if" tag
Date Fri, 15 Feb 2002 17:51:29 GMT
I think you are. :o) Do you really want two pages if the "if" statement 
only changes one line? You could predetermine the line in an action but 
it depends if you follow push or pull styles.. I prefer pull.

Bring on the if tag .. unless the equal tag is really "if" in disguise 
(still learning the struts 1.0 tags). Can I use equals to do:

<equal property="myBean.subBean.active" value="true" >
...
</equal><notEqual property="myBean.subBean.active" value="true" >
...
</notEqual>

where getActive() or isActive() returns boolean? In which case, if 
already exists.. A Java if statement only checks a boolean value. 
everything else (no pun intended) is an expression evaluating to 
boolean.

-----Original Message-----
From: adam.hardy 
Sent: 12 February 2002 17:54
To: struts-user
Cc: adam.hardy
Subject: RE: "if" tag


How many pages do you need an If tag / scriplet for? Why not switch the 
Action forward to choose the right page? Just have 2 pages with no Ifs. 
Perhaps I'm being too simplistic.

On Tue, 12 February 2002, "Knoll, Zach" wrote:

> 
> I totally agree with you. The only issue/desire that I have is that 
because
> scriplets can get easily out of hand by developers with little 
patience or
> time to learn tags, I would love it if we could enforce the JSP 
compiler to
> only compile XML compliant JSP's thereby forcing the developer to not 
code
> with scriplets. Of-course the downside is that if we do this we will 
have to
> use tags for everything including simple "if's" on the other hand 
though, we
> will guarantee that the JSP's will not have 100's of lines of 
un-readable
> scriplets which outweighs the negatives by an exponential factor. 
Therefore
> if my dream should ever come true we will need the "if" tag. 
> 
> -----Original Message-----
> From: Jonathan Gibbons [mailto:jonathan.gibbons@db.com]
> Sent: Tuesday, February 12, 2002 12:06 PM
> To: Struts Users Mailing List
> Subject: RE: "if" tag
> 
> 
> 
> How can
> 
> <logic:if   name="blah" value="xxx">
> 
> <logic:else>
> </logic:else>
> </logic:if>   (or whatever)
> 
> be better.  It's just different, but not better, and scriptlets are 
evil
> when they go mad and get out of hand, they are not evil of themselves.
> 
> Jonathan
> 
> 
> ---------------------------------------- Message History
> ----------------------------------------
> 
> 
> From: "Mattos, John" <jmattos@Indemand.com> on 12/02/2002 11:52 EST
> 
> Please respond to "Struts Users Mailing List"
> <struts-user@jakarta.apache.org>
> 
> To:   "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> cc:
> Subject:  RE: "if" tag
> 
> 
> Ya think?
> 
> Well, if that's true, forget it. I'll just use scriptlets, although I 
feel
> like we're mixing too much java that way.
> 
> John
> 
> -----Original Message-----
> From: Jonathan Gibbons [mailto:jonathan.gibbons@db.com]
> Sent: Tuesday, February 12, 2002 11:38 AM
> To: Struts Users Mailing List
> Subject: Re: "if" tag
> 
> 
> 
> If there are plans for an if then else tag can they please be dropped.
> 
> Scriptlets are far cleaner than inventing a tag which exactly mimics 
java.
> 
> Jonathan
> 
> 
> 
> ---------------------------------------- Message History
> ----------------------------------------
> 
> 
> From: "Mattos, John" <jmattos@Indemand.com> on 12/02/2002 10:59 EST
> 
> Please respond to "Struts Users Mailing List"
> <struts-user@jakarta.apache.org>
> 
> To:   "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> cc:
> Subject:  "if" tag
> 
> 
> Hi all
> 
> Are there any plans in the next release of Struts to have a logic:if 
tag?
> 
> John
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. 
If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in 
this
> e-mail is strictly forbidden.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> 
> 
> 
> 
> --
> 
> This e-mail may contain confidential and/or privileged information. 
If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in 
this
> e-mail is strictly forbidden.
> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 
> **********************************************************************
> 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 postmaster at postmaster@sothebys.com.
> 
> 
> www.sothebys.com
> **********************************************************************
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
<mailto:struts-user-help@jakarta.apache.org>


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

--
To unsubscribe, e-mail:   
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: 
<mailto:struts-user-help@jakarta.apache.org>



Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message