displaytag

Struts tag inside display tag

I am getting error when i refer display tag reference from struts tag. <display:table name="lstEntities" uid="prty"> <display:column property="propertyType.propertyTypeName" titleKey="common.propertytype" /> <display:column property="propertyName" titleKey="common.property" /> <display:column titleKey...

How to map Application resources key in display tag titlekey?

I have tried to use Applciatioon resource properties in dislay tag title key.Nothing diaplsyed.please help to proceed. i am using struts2. ...

Multiple DisplayTag tables in a page

Hi, I am using spring with appfuse framework and I would like to display two or three tables in my JSP page. Something like below, <display:table name="users" cellspacing="0" cellpadding="0" requestURI="" id="names" class="table" export="true">.....</display:table> .... in controller : return new ModelAndView(getSuccessView(), Cons...

How to apply different formats for column text based on codition(active==true) in display tag ?

I have to display text in different format in display tag column based on the condition. how do i achieve? Entity contains the following attributes, condition statementText active <display:table name="lstEntities" uid="row"> <display:column property="condition" titleKey="common.condition" /> <display:column property="st...

how to apply page size in display tag as per user request?

I have created one drop down for pasize selection. <s:select name="pageSize" cssClass="drop" list="#actResultLimitValue.lstEntities" listKey="code" listValue="value" onchange="document.forms[0].submit()"> And pageSize attribute is there in Actionclass. I used this variable in display tag. Nothing happend. i am getting error. <di...

Struts2 + Freemarker + DisplayTag: how to make it work

I am currently upgrading our application from Webwork to Struts2. Today I run into strange error: displayTag stopped working after the upgrade. This is a snipped from my FTL file: <#assign display=JspTaglibs["http://displaytag.sf.net"]> <@s.set name="entries" value="historyEntries" scope="page"/> <@display.table class="data" name="p...

Struts2/Spring Project, is there an alternative to displaytag?

I'm developing a Java project using Struts2 and Spring, among another frameworks. In the past I used displaytag to show data tables and to export data to pdf and xls files. My doubt: Is there alternatives to displaytag? I would like to have pdf and xls export features to. ...

Memory usage concern for using display:table jstl tag

Hi all, I have written my jsp using <display:table> to display search results. The <display:table> requires a javabean list to be passed in as an argument. Currently a controller will build the list, then the jsp displays it. My concern is that what happen if 1000 users perform search at a time. That means all results will need to be l...

Exporting data with Display Tag and external pagination

We use the Display Tag Library to display grid data in our JSP's. We use external sorting and pagingation. And we also use the library's export feature to allow exporting to Excel or PDF. Issue is the export is only exporting the data on the current set of results (ie: rows 20-40) while we want the export to include all rows. Any...

displayTag display images in tabular format

Is it possible to display images in a tabular format using displayTag libaries? The displayTag examples shows display of text values in tabular format; but could not find anything related to display content other than text values. ...

Make a Struts2 Table into a table that uses the DisplayTag library (in JSP page)

Hi, I have a table in my JSP page generated with Struts2 tags and some HTML: <table border="1"> <tr> <th>Action</th> <s:iterator value="columnNames" id="name"> <th> <s:property value="name" /> </th> </s:iterator> </tr> <s:iterator value="%{table}" id="row"> <tr> <td> <s:form theme="simple"> <s:hidden key="row" /> ...

Get value from a row in a JSP page using display tag

Hi, Sorry for a bunch of Struts2 / JSP questions, but I have a table generated with Display tag: <display:table name="table" pagesize="10" id="row" requestURI=""> <display:column title="Action"> <s:form theme="simple"> <s:submit action="remove" value="Remove" onclick="return confirm('Are you sure you want to delete...

Retrieving Value from Row in Struts2 Table While using Displaytag

Hi, I am aware that this is somewhat a re-post, but I feel like re-posting my question will make things more clear. Here is the code for my table in my JSP page: <display:table name="table" pagesize="25" requestURI=""> <display:column title="Action" > <s:form theme="simple"> <s:hidden key="cpc" /> <s:submit action=...

display tag in struts

How to use display tag in struts? can any one give a sample code or tutorial link? thanks in advance Bhagyaraj ...

jQuery - add new row in a table after each row

Table: <table id='t1' style='border:1px solid #000000'> <tr> <td><span id='flight_1'>1</span></td><td>1</td> </tr> <tr> <td><span id='flight_2'>2</span></td><td>2</td> </tr> <tr> <td><span id='flight_99'>99</span></td><td>99</td> </tr> </table> I want to search for each 'flight_xx' id ...

Problem using external paging in a portlet

Hello, I'm trying to use external paging in a JSR-286 portlet with DisplayTag 1.2. I would like DisplayTag to generate the paging links from a parameterized Action URL that i have defined, but i can't seem to make that work. Here is the code in my JSP: < portlet:actionURL var=actionUrl > < portlet:param name="someParam" value="someVal...

how to open popup window in Display tag column link

How to open popupwindow while clicking on Display tag column. I have popupSmallWindow(this, 'update') javascript to open the popup. i need to call this from display tag.while clicking this below column. paramName = "propertyTypeId" Value = propertyType.propertyTypeId action= editType.action And need to call popupSmallWindow(this, '...

Display Tag with serach feature (like Jquery).

Hai , my name is madhu.. i want to know how to implement Display tag with Search feature, like on giving a letter , based on that , the data in the tables should sort or display, if there is no data, an error message should display. ...

How do I use typecast in struts2 display tags?

I need to typecast to float so i do some simple math inside the view. To my dismay the following does not work: <s:property value="%{(double)(touristicZones.size()) / 2}"/> but this works fine <s:property value="%{(touristicZones.size()) / 2}"/> ...

Display tag pagination problem

In display tag i used pagination feature ,when i want to see the list of 15 rows but display tag featch all the rows from database. every time when i click on pagination number,it featch all of the rows from db.bcoz of that it slow the performace of application. I want that in display tag when i want to see the 15 rows then display ta...