[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.7

How to disable some div tag using some condition !!

Asked by dravidnsr in Java Standard Tag Library (JSTL) & Server Tags, Java Server Pages (JSP), New to Java Programming

Tags: jsp

Hi

I have a jsp page that contaion div tag ,( see my code where attached)
i have a list that contain some value that is prestent in the that jsp page

i want to enable that list value only other are i want to disable

How can i do that i am realy confusing in that !!

eg :
that List conatain  createPR,usermanagment i want enable this to menu only not others
How cani do that ??
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
<%@ include file="/jsp/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<table width="970" border="0" align="center" cellpadding="0"
	cellspacing="0">
	<tr>
		<td height="12" colspan="4"><img src="images/space.gif" width="1"
			height="12" alt="" /></td>
	</tr>
	<tr>
		<td width="11" background="images/topheaderbg.gif"><img
			src="images/left-corner.gif" width="11" height="64" alt="" /></td>
		<td width="248" background="images/topheaderbg.gif"><span
			style="width: 248px; height: 64px; display: inline-block; filter: progid : DXImageTransform . Microsoft . AlphaImageLoader(src = 'images/ford-papa.png');"><img
			style="filter: progid : DXImageTransform . Microsoft . Alpha(opacity = 0);"
			src="images/ford-papa.png" width="248" height="64" border="0" alt="" /></span></td>
		<td width="700" background="images/topheaderbg.gif">
		<table border="0" align="right" cellpadding="0" cellspacing="0">
			<tr>
				<td height="25" align="center">Welcome <span
					class="text-yellow">${userDescription}</span></td>
				<td width="20" rowspan="2" align="center"><img
					src="images/devider.gif" width="2" height="51" alt="" /></td>
				<td align="center" style="font-weight: bold; color: white">	
	        	<fmt:setLocale value="${languageCode}"/>
	        	<fmt:formatDate value="${date}" type="date" dateStyle="medium" />
				<td width="20" rowspan="2" align="center">
				<img
					src="images/devider.gif" width="2" height="51" alt="" /></td>
				<td rowspan="2" align="center"><a href="#"><img
					src="images/search.gif" width="43" height="46" border="0"
					alt="Search" /></a><a href="#"><img src="images/question.gif"
					width="44" height="46" border="0" alt="Help" /></a></td>
				<td width="20" rowspan="2" align="center"><img
					src="images/devider.gif" width="2" height="51" alt="" /></td>
				<td rowspan="2" align="center"><a href="#"><img
					src="images/close.gif" width="39" height="46" border="0"
					alt="Close" /></a></td>
			</tr>
			<tr>
				<td height="25" align="center">
				<a href="${pageContext.request.contextPath}/changePassword.htm" style="color: white">Change Password</a>&nbsp;<span class="text-yellow">|</span> <label style="font-weight: bold;color: white">Business Unit</label>
				<select name="primaryOploc">
					<c:forEach var="userOplocCode" items="${userOplocCodes}">
						<c:forEach var="userOplocCodeValue" items="${userOplocCode.value}">
							<c:forEach var="userOplocCodeKey" items="${userOplocCode.key}">
							 	<c:choose >
							 		<c:when test="${domainCode eq userOplocCodeKey}">
							 			<option value="${userOplocCodeKey}"> ${userOplocCodeValue}</option>
							 		</c:when>
							 		<c:otherwise>
									<option value="${userOplocCodeKey}"> ${userOplocCodeValue}</option>
									</c:otherwise>
							   </c:choose>
							  
								
							</c:forEach>
						</c:forEach>
					</c:forEach>
<<<<<<< header.jsp
				</select></td>
				<td align="center"></td>
			</tr>
		</table>
		</td>
		<td width="11" align="right"><img src="images/right-corner.gif"
			width="11" height="64" alt="" /></td>
	</tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10"><span style="width:10px;height:24px;display:inline-block; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/nav1.png');"><img style="
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); "src="images/nav1.png" width="10" height="24" border="0"></span></td>
    <td width="950" background="images/navbg.gif"><table id="menu1" class="dmx" cellpadding="0" cellspacing="0">
 <tbody>
    <tr>
      <td><a id="menu1-0" class="item1" href="javascript:void(0)">Purchase Request(PR)</a>
        <div id="menu1-0-section" style="width: 150px; top: 82px; left: 26px;" class="section"> 
        <a id="menu1-0-0" class="item2" href="${pageContext.request.contextPath}/papaCreatePR.htm">Create PR</a>
        <a id="menu1-0-0" class="item2" href="${pageContext.request.contextPath}/papaEditPRController.htm">Modify PR</a>
        <a id="menu1-0-0" class="item2" href="${pageContext.request.contextPath}/papaViewController.htm">Search PR</a>
        <a id="menu1-0-0" class="item2" href="${pageContext.request.contextPath}/papaApprovePRController.htm">Approve PR</a>
         </div>
         </td>
          
      <td><a id="menu1-1" class="item1" href="javascript:void(0)">Purchase order(PO)</a>
        <div id="menu1-1-section" style="width: 152px; top: 82px; left: 98px; visibility: hidden; z-index: -1;" class="section"> 
        <a id="menu1-1-0" class="item2" href="${pageContext.request.contextPath}/purchaseOrderController.htm">Build PO</a> 
        <a id="menu1-1-0" class="item2" href="${pageContext.request.contextPath}/papaApprovePOController.htm">Approve PO</a>
        <a id="menu1-1-0" class="item2" href="${pageContext.request.contextPath}/papaOrderSearchLoadController.htm">Search PO</a>
        <a id="menu1-1-0" class="item2" href="${pageContext.request.contextPath}/papaReleaseOrderFormController.htm">Release Order</a>
		</div>
        
 	  </td>
        
      <td><a id="menu1-2" class="item1" href="javascript:void(0)">Maintenance</a>
        <div id="menu1-2-section" style="width: 99px; top: 82px; left: 181px; visibility: hidden; z-index: -1;" class="section"> 
        <a id="menu1-2-0" class="item2" href="${pageContext.request.contextPath}/createUserManagement.htm?">User Management</a>
         <a id="menu1-2-1" class="item2" href="${pageContext.request.contextPath}/menuAccess.htm?">User Role Maintenance</a> 
          
          <a id="menu1-2-2" class="item2 arrow" href="javascript:void(0)">OpLoc Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-2-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-2-0" class="item2" href="${pageContext.request.contextPath}/papaCreateOploc.htm">Create Oploc</a> 
          	<a id="menu1-2-2-1" class="item2" href="${pageContext.request.contextPath}/papaOplocModify.htm ">Modify Oploc</a> 
		</div>
         
         <a id="menu1-2-3" class="item2 arrow" href="javascript:void(0)">Approval Limit Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-3-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-3-0" class="item2" href="${pageContext.request.contextPath}/papaCApprover.htm">Create Approver</a> 
          	<a id="menu1-2-3-1" class="item2" href="${pageContext.request.contextPath}/papaSApprover.htm">Search Approver</a> 
          	<a id="menu1-2-3-2" class="item2" href="${pageContext.request.contextPath}/papaMApprover.htm?modify=modify">Modify Approver</a>
		</div>
 
		   <a id="menu1-2-4" class="item2 arrow" href="javascript:void(0)">Buyer Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-4-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-4-0" class="item2" href="${pageContext.request.contextPath}/papaCreateBuyer.htm">Create Buyer</a> 
          	<a id="menu1-2-4-1" class="item2" href="${pageContext.request.contextPath}/papaSearchBuyer.htm">Search Buyer</a> 
          	<a id="menu1-2-4-2" class="item2" href="${pageContext.request.contextPath}/papaModifyBuyer.htm">Modify Buyer</a>
		</div>
		
		   <a id="menu1-2-5" class="item2 arrow" href="javascript:void(0)">Supplier Management<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-5-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-5-0" class="item2" href="${pageContext.request.contextPath}/papaSupplierC.htm">Create Supplier</a> 
          	<a id="menu1-2-5-1" class="item2" href="${pageContext.request.contextPath}/papaSupplierS.htm">Search Supplier</a> 
          	<a id="menu1-2-5-2" class="item2" href="${pageContext.request.contextPath}/papaSupplierU.htm">Modify Supplier</a>
		</div>
		
		
		   <a id="menu1-2-6" class="item2 arrow" href="javascript:void(0)">Commodity Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-6-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-6-0" class="item2" href="${pageContext.request.contextPath}/papaCreateCommodity.htm">Create Commodity</a> 
          	<a id="menu1-2-6-0" class="item2" href="${pageContext.request.contextPath}/papaModifyCommodity.htm">Modify Commodity</a> 
		</div>
		
		 <a id="menu1-2-3" class="item2 arrow" href="javascript:void(0)">UOM Order<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-3-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-3-0" class="item2" href="${pageContext.request.contextPath}/papaUomOrder.htm">Order</a> 
        </div>
		
		
		   <a id="menu1-2-7" class="item2 arrow" href="javascript:void(0)">Organization Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-7-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-7-0" class="item2" href="${pageContext.request.contextPath}/papaOrgnizationLevelController.htm">Create</a> 
          	<a id="menu1-2-7-1" class="item2" href="http://192.168.3.17/ReportServer$dev/Pages/ReportViewer.aspx?%2fPAPA_Reports%2fOrganisational_Hierarchy&amp;rs:Command=Render" target="_blank">View</a> 
          	
		</div>
		   <a id="menu1-2-8" class="item2 arrow" href="javascript:void(0)">Code List Maintenance<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-8-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-8-0" class="item2" href="${pageContext.request.contextPath}/papaCodeListCreateController.htm">Create</a> 
          	<a id="menu1-2-8-1" class="item2" href="${pageContext.request.contextPath}/papaCodeListEditController.htm">Modify</a> 
          	
		</div>
		
		<a id="menu1-2-9" class="item2 arrow" href="javascript:void(0)">Service Item Generator<img src="dd_menu/arrow1.gif" alt="" width="10" height="12"></a>
          <div id="menu1-2-9-section" style="width: 124px; top: 20px; left: 154px; visibility: hidden; z-index: -1;" class="section"> 
        	  <a id="menu1-2-9-0" class="item2" href="${pageContext.request.contextPath}/papaServiceItemCreate.htm">Create</a> 
          	 
          	
		</div>
         
         <a id="menu1-2-10" class="item2" href="${pageContext.request.contextPath}/papaCOAFormController.htm">COA Search</a> 
         </div></td>
        
      <td><a id="menu1-4" class="item1" href="javascript:void(0)">Reports</a>
        <div id="menu1-4-section" style="width: 107px; top: 82px; left: 316px; visibility: hidden; z-index: -1;" class="section"> 
        <a id="menu1-4-0" class="item2" href="http://192.168.3.17/ReportServer$dev/Pages/ReportViewer.aspx?%2fPAPA_Reports%2fPR_Report&rs%3aCommand=Render" target="_blank">Cost Center-PR Summary Report</a> 
        
          </div>
          </td>
       
      
    </tr>
  </tbody>
</table></td>
    <td width="10"><span style="width:10px;height:24px;display:inline-block; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/nav2.png');"><img style="
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); "src="images/nav2.png" width="10" height="24" border="0"></span></td>
  </tr>
</table>
[+][-]10/05/09 08:19 AM, ID: 25496087Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Java Standard Tag Library (JSTL) & Server Tags, Java Server Pages (JSP), New to Java Programming
Tags: jsp
Sign Up Now!
Solution Provided By: MuraliKanth
Participating Experts: 2
Solution Grade: B
 
[+][-]10/05/09 08:32 AM, ID: 25496194Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 08:34 AM, ID: 25496213Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 08:39 AM, ID: 25496263Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 09:41 AM, ID: 25496890Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/08/09 10:56 PM, ID: 25532622Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/21/09 10:57 PM, ID: 25631164Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625