Click here to Skip to main content
15,894,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to get the href tag dynamic so that the " " in href gets the String which I will be getting from the above code and Unable to think of any solution I have imported the class in the JSP thats how far I'm able to go

MMTUtil.getDomainComboDocumentationMap().get(objectName);


where objectName is a key and I need to get the value out of it So that it can be used in href

What I have tried:

<%
UMRDocumentationDTO documentationDTO = new UMRDocumentationDTO();
String objectName = documentationDTO.getId().getObjectName();
String tc = MMTUtil.getDomainComboDocumentationMap().get(objectName);
%>


but it still need the outcome of the above last line in the href "tc"

<td><a href="tc" target="_blank"
id="domainName_<s:property value="#rowstatus.index"/>"><s:property
value="domainName" /></a></td>
Posted
Updated 2-Feb-17 5:41am

1 solution

Use script let tag inside href,

HTML
<a href="<%=tc%>" target="_blank"></a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900