G
groovyjman21
Hi all,
Struts 1.3.8 Websphere 5.1 web app, wondering how to test my
Customer bean properties in my JSP against multiple values.
I have a business rule which reads "If (the customer is from AZ,
CA, MS, NE, or WA), and (either their total sales or total credits are
greater than zero) then display the following paragraph."
Pseudocodishly:
if((customer.state == AZ || customer.state == CA || customer.state ==
MS || customer.state == NE || customer.state == WA) &&
(customer.totalsales > 0 || customer.totalcredits > 0){
showParagraph;
}
I can't find an efficient way to do this with struts as the equals and
match tags only take one value at a time. I have read that JSTL might
be a way to do this (ie <c:if test = ${...}>) but can't find
sufficient documentation Any help greatly appreciated.
Struts 1.3.8 Websphere 5.1 web app, wondering how to test my
Customer bean properties in my JSP against multiple values.
I have a business rule which reads "If (the customer is from AZ,
CA, MS, NE, or WA), and (either their total sales or total credits are
greater than zero) then display the following paragraph."
Pseudocodishly:
if((customer.state == AZ || customer.state == CA || customer.state ==
MS || customer.state == NE || customer.state == WA) &&
(customer.totalsales > 0 || customer.totalcredits > 0){
showParagraph;
}
I can't find an efficient way to do this with struts as the equals and
match tags only take one value at a time. I have read that JSTL might
be a way to do this (ie <c:if test = ${...}>) but can't find
sufficient documentation Any help greatly appreciated.