sorry
List<String> reportingLevelAccess = papaUserManagementInter.ge
is return [JPN, CHN, IND, 2155, APAC, US, UK, EU, CFMA, AND, ANDP, GLOBE, FTSI]
List<String> checkReportingLevel=papaUs
it return [IND,FTSI]
Main Topics
Browse All TopicsHi
i have to 2 list
List<String> checkReportingLevel=papaUs
it return [IND,FTSI]
List<String> checkReportingLevel=papaUs
it reurn [JPN, CHN, IND, 2155, APAC, US, UK, EU, CFMA, AND, ANDP, GLOBE, FTSI]
i want to comapre in jsp
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Your forEach tag still doesn't make sense. The var and the items attributes will have to have different identifiers. Maybe something like
<c:forEach var="current" items="${reportingLevel}">
<form:option value="${current}" <c:if test="${current == slecectedMap}">selected</c:i
</c:forEach>
Also give us more details. How do you want to compare the lists ?
slecectedMap is really a list ? Ok, but confusing.
>i want to compared the value with reportingLevelAccess
You will have to do that in a scriptlet or a custom EL function.
You can use
boolean isEqual = reportingLevel.equals(slec
For reference on EL custom function, see
http://www.experts-exchang
If you want to create a custom EL function and need help, then tell me.
In standard EL you could just compare the length of the two lists.
<%@taglib uri="http://java.sun.com/j
...
<c:if test="${fn:length(reportin
reportingLevel is dropdown which is multiple selection possible
it reurn [JPN, CHN, IND, 2155, APAC, US, UK, EU, CFMA, AND, ANDP, GLOBE, FTSI]
slecectedMap value is same values present in reportingLevel but some value only
[IND,FTSI]
in jsp
i want to select the IND ,FTSI as defult while page load how can i do that !!
>i want to select the IND ,FTSI as defult while page load how can i do that !!
I wrote a test page to demonstrate. I tested it. It uses a custom EL function. Please read
http://www.experts-exchang
for reference.
Business Accounts
Answer for Membership
by: rrz@871311Posted on 2009-10-02 at 08:27:17ID: 25478835
I dont understand. It looks like you have only one list. They are both called checkReportingLevel. You need two different identifiers.