Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

c:if test with dynamic variable

Thread view: 
harshjain.cs@gmail.com - 22 Mar 2007 19:40 GMT
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
Daniel Pitts - 22 Mar 2007 22:30 GMT
On Mar 22, 11:40 am, "harshjain...@gmail.com" <harshjain...@gmail.com>
wrote:
> Hi Guyz,
>
[quoted text clipped - 12 lines]
> Thanks,
> Hj

You could try: <c:if test="${not empty param[var]}"> </c:if>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.