aspose file tools*
The moose likes Struts and the fly likes hide the link in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "hide the link in jsp" Watch "hide the link in jsp" New topic
Author

hide the link in jsp

rachu agarwal
Greenhorn

Joined: Aug 24, 2011
Posts: 6
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
EPractice Labs Support
Ranch Hand

Joined: Nov 07, 2005
Posts: 249
Do you want to hide from display ( on browser)? or Do you want to completely href tag?


Ganesan Ponnusamy Java Certification | Test Generator | OCAJP | OCPJP | OCEJWSD | EJB Certification
OCEJPAD | SCJD | SCWCD | SCBCD | SCDJWS | OCMJEA | Web Services Certification | SCMAD
rachu agarwal
Greenhorn

Joined: Aug 24, 2011
Posts: 6
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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hide the link in jsp