Re: c:if test with dynamic variable
- From: "Daniel Pitts" <googlegroupie@xxxxxxxxxxxxx>
- Date: 22 Mar 2007 14:30:56 -0700
On Mar 22, 11:40 am, "harshjain...@xxxxxxxxx" <harshjain...@xxxxxxxxx>
wrote:
Hi Guyz,
I have a set of variable that I am generating. For example xyz_1,
xyz_2, xyz_3 and I want to test if these variable are passed as param
how would i write a c:if statement such that it changes the variable
name in loop.
forexample.. something like.
<c:if test="${not empty param.$var}"/>
where var generates xyz_1, xyz_2,xyz,_3 .. and so on.
Kindly let me know.
Thanks,
Hj
You could try: <c:if test="${not empty param[var]}"> </c:if>
.
- References:
- c:if test with dynamic variable
- From: harshjain.cs@xxxxxxxxx
- c:if test with dynamic variable
- Prev by Date: Challenge with simple proxy server
- Next by Date: Re: ant javac exclude not working for directories
- Previous by thread: c:if test with dynamic variable
- Next by thread: ant javac exclude not working for directories
- Index(es):
Relevant Pages
|
Loading