• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Dynamic URL using display tag not working

 
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=<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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!