Urmi Garad

Greenhorn
+ Follow
since Jun 20, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Urmi Garad


Struts2 tag could not work inside the display tag. I resolved this problem by creating two lists in action class with the help of if else condition. Then I used these list to display two different tables using display tag.

Happy Coding !!!
11 years ago

I was also facing this problem for Struts2 web application. Please use following steps to solve your problem

1) The solution will be to add the displaytag.properties to the path where ApplicationResource.properties is saved

2) displaytag.properties should have the below lines


3) Copy the below code to a new java class "I18nStruts2Adapter" at "com.web.displaytag.resourceslookup"(package path can be change as per your package structure) in your project.


Hope this will helps to other struts2 user who are facing this problem. Happy Coding !!!
I am using display tag with struts2 for pagination in my project. I want to display table for specific type and my arraylist contains different product types like stationary, grossary, bakery and other. I want to display table for grossary and bakery products. I used "s:if" struts2 tag but it is not working. The result is it display all the product list. Please suggest me how to use condition statements in display tag. My jsp code is like -

11 years ago