Jsp display tag simple demo code

Code

====

<display:table cellpadding=”0″ cellspacing=”0″ name=”cityDataList” id=”cityData” requestURI=”/regionManagement.do?action=view&method=post” pagesize=”2″ style=”width:100%;margin:0px 0 0px 0″>
<display:column headerClass=”tblheaderfirstcol” style=”border:1px solid rgb(204, 204, 204);width:40px;border-top:0px;” title=’Sr#’>&nbsp;&nbsp;&nbsp;&nbsp;<%=pageContext.getAttribute(“cityData_rowNum”)%></display:column>
<display:column headerClass=”tblheaderlastcol” style=”border:1px solid rgb(204, 204, 204);padding-left:5px;border-left:0px;border-top:0px;” title=”City”>
<a href=”<%=basePath%>/cityManagement.do?method=view&cityId=<bean:write name=”cityData” property=”cityId”/>”>
<bean:write name=”cityData” property=”cityName”/>
</a>
</display:column>
<display:setProperty name=”paging.banner.first” value='<span class=”pagelinks”> [ First / Prev ] {0} [ <a href=”{3}”>Next</a> / <a href=”{4}”>Last</a> ] </span>’></display:setProperty>
<display:setProperty name=”paging.banner.last” value='<span class=”pagelinks”> [ <a href=”{1}”>First</a> / <a href=”{2}”>Prev</a> ] {0} [ Next / Last ] </span>’></display:setProperty>
<display:setProperty name=”paging.banner.full” value='<span class=”pagelinks”> [ <a href=”{1}”>First</a> / <a href=”{2}”>Prev</a> ] {0} [ <a href=”{3}”>Next</a> / <a href=”{4}”>Last</a> ]</span>’></display:setProperty>
<display:setProperty name=”paging.banner.placement” value=”bottom”></display:setProperty>
<display:setProperty name=”basic.empty.showtable” value=”true”></display:setProperty>
<display:setProperty name=”paging.banner.item_name” value=”Area”></display:setProperty>
<display:setProperty name=”paging.banner.items_name” value=”Areas”></display:setProperty>
<display:setProperty name=”paging.banner.no_items_found” value='<tr><td colspan=”{0}” class=”table-gray” align=”center”></td></tr>’></display:setProperty>
<display:setProperty name=”basic.msg.empty_list_row” value='<tr><td colspan=”{0}” class=”table-gray” style=”text-align:center;background-color: #D9E6F6;” align=”center”>No Record Found</td></tr>’></display:setProperty>
<display:setProperty name=”paging.banner.onepage” value='<span class=”pagelinks” style=”width:59.6%”></span>’></display:setProperty>
</display:table>

 

ouput image

===========

Image

Advertisements

About rajkirpal

i am a software engineer. and i have decent knowledge about java technologies like ANDROID, Servlet, Jsp, Struts, Hibernet, Spring, J2ME, Java Script, Ajax, JQuery, CSS. Further i am Preparing Easy understandable materials/documents upon the same java technologies and developing project in core java , advanced java and j2me , ANDROID as per the requirements Also designing the web sites and logos Thank You.
This entry was posted in J2EE. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s