Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic URL using display tag not working

 
Sameer Kunder
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Iam facing issing while creating dynamic url using display tag. I need to pass dynamic region and kpi name with URL. When i hardcode the values to the URL it works. i.e. CODE 1 works. But when iam trying CODE 2, it give Exception given below.
Will appreciate any help that i get. Iam struggeling the dynamic link using display tag it is not working. I also tried using <a href=""> </a> even that did not work.
Please help.


CODE 1:
<display:table style="width:100%;" name="elemList" pagesize="20" export="true" defaultsort="1" defaultorder="ascending" sort="list" requestURI="/MyApplication/reports/report01.html">
<display:column maxLength="30" property="region" title="Region Names" sortable="true" headerClass="sortable"/>
<display:column maxLength="100" property="kpi_name" href="/MyApplication/dailyreport/report01.html?hdregion=Georgia&kpiname=signal dropped" title="KPI Names" headerClass="sortable"/>
<display:column style="text-align:left;width:40;" property="metrics_value" title="Metrics Value" sortable="true" headerClass="sortable"/>
</display:table>


CODE 2:
<display:table style="width:100%;" name="elemList" pagesize="20" export="true" defaultsort="1" defaultorder="ascending" sort="list" requestURI="/MyApplication/reports/report01.html">
<display:column maxLength="30" property="region" title="Region Names" sortable="true" headerClass="sortable"/>
<display:column maxLength="100" property="kpi_name" href="/MyApplication/dailyreport/report02.html?hdregion=<cut value="${elemList.region }"/>" title="KPI Names" headerClass="sortable"/>
<display:column style="text-align:left;width:40;" property="metrics_value" title="Metrics Value" sortable="true" headerClass="sortable"/>
</display:table>

org.apache.jasper.JasperException: /jsp/pf_SegmentElementAlertReport.jsp(82,173) Unterminated <display:column tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

Thanks
Sam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic