Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

sorting in JSP page

sorting in JSP page

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
raytheon



Joined: 04 Feb 2009
Posts: 1

PostPosted: Fri Feb 06, 2009 11:56 am    Post subject: sorting in JSP page Reply with quote

Hi
I want to sort my JSP data and give user to sort record at there end. I am using Mysql as back end database. I know sorting option in mysql as order by desc and order by ascending asc. How can user sort at client side data.
Please help me. I think it can be done by javascript function to submit page.
Back to top
View user's profile Send private message
seniormember
Site Admin


Joined: 20 Jul 2008
Posts: 77

PostPosted: Tue Feb 10, 2009 12:32 pm    Post subject: Reply with quote

sorting in jsp you need to use

1. hidden field of html
2. javascript function

and logic in javascript to send sorting field and order by asc or desc in query string to get in next page to sort in query.

better way to use javascript sorting
available many in javascript sorting of table if you search on google.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack