• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hide the link in jsp

 
rachu agarwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to hide the link in jsp using Struts Property tag as mentioned below code.

i want to hide the href link then how?

<li>
<s:url id="manageInventory" action="manageInventoryAction" escapeAmp="false">
<s:param name="stcId" value="stcId"></s:param>
<s:param name="buttonCurrent" value="%{'true'}"></s:param>
</s:url>
<a href="<s:property value='manageInventory'/>">Initial Inventory Report</a>
</li>
 
Ganesan Ponnusamy
MyExamCloud Support
Ranch Hand
Posts: 264
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want to hide from display ( on browser)? or Do you want to completely href tag?
 
rachu agarwal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ganesan for reply.


From display ( on browser) i want to hide the link.

and also i want to use some condition. same hiding need to do for the following code also.any reply would be appreciate.

<%if(!(((StcProfile)session.getAttribute("stcProfile")).isPOD2()))
{
%>
<li>
<s:url id="cust" action="correctiveSplitUstAction" escapeAmp="false">
<s:param name="stcId" value="stcId"></s:param>
<s:param name="buttonInit" value="%{'true'}"></s:param>
<s:param name="custType" value="%{'U'}"></s:param>
</s:url>
<a href="<s:property value='cust'/>">Corrective UST, Utilization</a>
</li>
</li>
<li>
<s:url id="cust" action="correctiveSplitUstAction" escapeAmp="false">
<s:param name="stcId" value="stcId"></s:param>
<s:param name="buttonInit" value="%{'true'}"></s:param>
<s:param name="custType" value="%{'I'}"></s:param>
</s:url>
<a href="<s:property value='cust'/>">Corrective UST, Inventory Adjustment</a>
</li>
<%} %>
</ul>
</s:if>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic