• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamic URL using display tag not working

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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=<c:out 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
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic