Forums Register Login

Display tag in JSP.

+Pie Number of slices to send: Send

Hi
I am using display tag library in my JSP page to display a table.

My question is:
1.How can i contol the text displayed on the bottom of page that has page - Info.

For eg:
Now i can see '4 items found, displaying all items.1' and i want to make it '4 records found.Displaying page 1 out of 10'.
I tried googling but could not find a way to change this banner-text.

2. Another question is i want to create a separate column using display tags in table
this column is not tied to any property in my Pojo. Its an additional column that contains edit link or images links and i want to use decorator
for this link as i have to pass multiple parameters but since it doesnt have any property/attribute corresponing in pojo, how should i tie it to decorator method.
I understand i should use Column Decorator here and extend 'TableDecorator' class.

Thanks







+Pie Number of slices to send: Send
Hi,
I would suggest better you create your own display tag and customize it what you want.
+Pie Number of slices to send: Send
display tag is just open code.find out which class is responsible for the displaying

Now i can see '4 items found, displaying all items.1' and i want to make it '4 records found.Displaying page 1 out of 10'.



modify the class..
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1511 times.
Similar Threads
display text in jsp
Struts : display tag : column decorator
Using Displaytag, Checkboxes and Struts to get values - I'm a bit lost
Getting values from properties in validate-using multiple message-resources in struts
create HTML forms frm DataBase fields
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:02:56.