Questions tagged [displaytag]

The display tag library is an open source suite of custom Java Server Pages (JSP) tags that provide high-level web presentation patterns which will work in an MVC model.

Display tag is a tag library for Java Server Pages (JSP) handling the pagination and sorting of result sets, with optional PDF, XML and Excel export.

607 questions
2
votes
1 answer

Condition checking inside a Display tag

I am displaying a student list(Name ,Mark, Result) using display tag in my struts 2 application. if student scored more than 80 i need to display the entire row in green color else i need to display it in red color .Below is my scenario , i am not…
Mohan
  • 3,893
  • 9
  • 33
  • 42
2
votes
1 answer

How to show nested array lists using display tag on JSP?

I have two array lists. Employee List and Allocation List. Each employee has allocation list. Employee class is as follows. public class Employee { private int id; private String firstname; private String lastname; private…
ajm
  • 12,863
  • 58
  • 163
  • 234
2
votes
1 answer

checkbox with display tag

I want to retain the check boxes values which are previously checked on the first page, then user moves on the next pages and make additional selection. Due to my current code, whenever user click Next or Previous link of display tag, the track of…
kitokid
  • 3,009
  • 17
  • 65
  • 101
2
votes
5 answers

Javascript: Changing innerHTML vs display

I'm developing a web form, where I want different inputs to appear depending on what the user previously selects. So I was wondering what's the difference between having an empty div and changing what it contains with innerHTML vs. having several…
user
  • 105
  • 2
  • 9
2
votes
1 answer

Display tag append query parameters to sort URL

I am currently using displaytag with spring MVC like so:
mogronalol
  • 2,946
  • 8
  • 38
  • 56
2
votes
1 answer

How to hide rows in displaytag?

I have created a table using display tag library (version 1.1) and I'm filling it with values from a data base. I do not want to show certain rows. For example i only want to show the records that match a given string or regular expression. Records…
cosmincalistru
  • 1,283
  • 9
  • 20
2
votes
3 answers

Display tag export to excel with the css formatting of the HTML page

I am using display tag in my web application. I am successfully able to export the data displayed by display tag to excel. The problem is I also want the header and data row styles and css to be included in the exported excel. e.g. Header row is…
ajm
  • 12,863
  • 58
  • 163
  • 234
2
votes
4 answers

how to format currency in displaytag

I am getting the value of amount like 4567.00 , 8976.00 etc. Now while dispalying this value in displaytag i would like to print it as $4567.00 instead of just 4567.00. How can i do that? Provided i just want to use display tag. I can acheive the…
Rakesh Juyal
  • 35,919
  • 68
  • 173
  • 214
1
vote
1 answer

MVC 3 Razor not displaying selected item from dropdown list

I have created a form with a dropdown list for 'Region'. Once the form has been submitted I want to be able to view the details from the form. In particular I want the name of the 'Region' to be displayed but I am currently getting the name, ID and…
1
vote
1 answer

exporting multiple tables to multiple sheets of same excel files using displaytag

I know that we can export a table to excel using displaytag in spring.But i need to export multiple tables in same excel file as different excel sheets using the displaytag.Is there any way to do it.
rakesh menon
  • 1,081
  • 3
  • 15
  • 30
1
vote
1 answer

java.lang.ArithmeticException: divide by zero in displaytag

I am using display tag in portals(Struts Portal Framework) deployed in websphere portal, using external paging using value list paging (implement PaginatedList) a strong exception has shown up java.lang.ArithmeticException: divide by zero in the…
Sherif Omar
  • 113
  • 2
  • 2
  • 8
1
vote
1 answer

displaytag - issue with export, when radio button is displayed with media=html

I am using displaytag library for displaying table. following is the jsp code snippet. I need to display a radio button on each row. since i do not want to export this i have kept media="html. In the below example when i am sorting the data with…
1
vote
2 answers

Providing edit and delete button for each row of a table using display tag

I am using display tag to display data in a table on a JSP (using struts 2). Now I want to give two links for each row, one for editing & one for deleting the row. My jsp structure and what I am currently trying is :
kanishk
  • 713
  • 4
  • 15
  • 31
1
vote
2 answers

Get row Id from a display tag table on a jsp, into a struts 2 action class

I am using display tag to display data in a table on a JSP. Now I want to give two links for each row, one for editing & one for deleting the row. There are some posts on stackoverflow regarding the same([question]: How to use multiple buttons (one…
kanishk
  • 713
  • 4
  • 15
  • 31
1
vote
1 answer

Display tag Issues with pagination and sorting

I am using display tag to render tables in my application. When I click either pagination or sorting, it's querying the database again and then sorting/paging. In my opinion, when we are only sorting/paging, we need not query database. I see…
dpsdce
  • 5,290
  • 9
  • 45
  • 58