-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Display Records from Database Column for given Order?
PostPosted: Mon Jul 10, 2006 6:37 am 
Beginner
Beginner

Joined: Tue Jun 06, 2006 7:56 am
Posts: 20
Display Records from Database Column for given Order?
Hi,

I am Using Struts with Hibernate.
I have one table in database.
Fields : id, name , code, date

I want to change the display order format
for eg.

name, code, id, date

tell me some idea.


Top
 Profile  
 
 Post subject: Re: Display Records from Database Column for given Order?
PostPosted: Mon Jul 10, 2006 7:52 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
edward_durai wrote:
I am Using Struts with Hibernate.
I have one table in database.
Fields : id, name , code, date

I want to change the display order format
for eg.

name, code, id, date

Well, it seems that your question has nothing to do with Hibernate... You want to show your data in a different order in your jsp, as I seem to understand ?

If so, then that's not the right place to ask for it. But, I can just say that it's very simple, just inverse the tags in your jsp file and that should do.

Getting the data with Hibernate to build objects has nothing to do with the way you want to present it.

Quote:
Tell me some idea.

Maybe you could use a less imperative form for your request :). Maybe a please would have been a good idea...

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 10, 2006 8:08 am 
Beginner
Beginner

Joined: Tue Jun 06, 2006 7:56 am
Posts: 20
How? Pls explain with sample example


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 10, 2006 8:15 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
No, I can't. I don't particularly like jsp to do it on the Hibernate forum. This is not the right place as I said. Moreover, if you're not able to do it, even if I show you things, you won't be able to apply it correctly.
You should begin with the jsp basis.

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 10, 2006 8:17 am 
Beginner
Beginner

Joined: Tue Jun 06, 2006 7:56 am
Posts: 20
pls send reply edward_durai@hotmail.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.