This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Can anybody share a code with me for displaying a datagrid in a struts page? The data will be populated from DB and filled in grid.
Is there any other way to display such data on jsp page?
Rgs,
Johannes Geppert
Ranch Hand
Joined: Jan 12, 2010
Posts: 67
posted
0
There exists two proper ways for grids.
The first is the displaytag taglib which work well with struts2 together.
The other soultion is the Struts2 jQuery Grid Taglib which provide a more dynamic Grid.
Yes,
I also have tried it .. and got little bit answer.. but still don't know how to display records into the grid?
and refer to the example..I also don't understand what is in CustomerDAO?
Could you please advise what is in CustomerDAO? ..and how do I show records into the grid? (ie. select from mytable order by myfield)
I also have registered to http://code.google.com and have added a comment.. still no luck
Johannes Geppert
Ranch Hand
Joined: Jan 12, 2010
Posts: 67
posted
0
there exists several tutorials which shows you how to access a database.
I tried to read the source codes ..and currently I am on JsonTable.java..
I met the following stack trace below:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.UnsupportedOperationException: Not supported yet.
Object list = session.get("mylist"); // this line thrown the above exception
please help
thanks & regards
Winan
luckay win
Ranch Hand
Joined: Sep 21, 2010
Posts: 36
posted
1
any clue? .. how to show records to the grid?
the codes below compiled with no errors or warnings .. but still unable to show the records array into the grid.. it seems like the gridModel does not effect the .jsp page..
dips pandey
Greenhorn
Joined: Nov 13, 2010
Posts: 4
posted
0
I Have been facing the same problem no error but my grid does not get populated with values please help..need to resolve this.
Johannes Geppert
Ranch Hand
Joined: Jan 12, 2010
Posts: 67
posted
1
without some informations, it is impossible to help you?
How looks your config and code? Do you have check your JSON result?
Johannes
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.