Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
how to compare two variables in struts logic:equal
zimbu bolleddu
Ranch Hand
Posts: 35
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I'm new to
struts
,
how to compare two variables in <logic:equal > tag.
variables something like : <% var1 %> and <% var2 %>.
please give me an example...!
Thanks in advance
Suresh Kumar
Greenhorn
Posts: 6
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
For comparing two request parameters, you can use
<logic:equal parameter="password" value="${ param.userName }">
Hi User, Thanks for visiting!!!
</logic:equal>
You can also compare attributes of a bean against constant values/rumtime expressions.
<logic:equal name="loginForm" property="username" value="user001">
Hi user001, Thanks for visiting!!!
</logic:equal>
Hope it is useful.
Suresh.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Comparing values in struts using logic:equal..
logic:equal compare two values
logic:equal
logic:equal
simple struts conditional?
More...