*
The moose likes Other Open Source Projects and the fly likes Dynamic URL using display tag not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Dynamic URL using display tag not working" Watch "Dynamic URL using display tag not working" New topic
Author

Dynamic URL using display tag not working

Sameer Kunder
Greenhorn

Joined: May 22, 2012
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic URL using display tag not working
 
Similar Threads
Question on using DisplayTag in JSPs
Display Tag horizontal scroll bar issues
SpringMVC 2.5 and DisplayTags
Pagination in Struts2
display:column + javascript