In pagination how to hilight the links

In pagination how to hilight the links

Dear Sir,
In pagination how to highlight the links or how to change the color of that link when i clickon that particular link....Please help me sir..

Some of the code which i used is as follows..

HashTable htEmp = employeeDataBase
.findAllMassMailDetails();

numRows = htEmp.size();

numPages = numRows / numRecordsPerPage;

int remain = numRows % numRecordsPerPage;

if (remain != 0) {

numPages = numPages + 1;

}



for (int i = 1; i <= numPages; i++) {

if (numRecordsPerPage <= numRows) {
if (i == 1 || i == 2) {
value = numRecordsPerPage;
} else {
value += numRecordsPerPage;
}
if (i == 1) {
%> <a href="mainPage.jsp?" class="current" style="position: visited"><%=i%></a>
<%
} else {
%> <a href="mainPage.jsp?value=<%=value%>&currentpage=<%=i%>" ><%=i%></a> <%
System.out.println("page value is " + i);
System.out.println("Initial value is " + initial);
}
} else {
%> <a href="mainPage.jsp"> </a> <%
}//closing of a else statement
}//closing of a for loop

Thanks and Regards
Harini Veerapur.
View Answers

June 21, 2010 at 3:06 PM

Hi Friend,

Do the following:

<style>
.over { color:red; padding-top: 2px; padding-bottom:2px;}

</style>
<a onclick="this.className='over'" href="a.jsp">Click</a>

Hope that it will be helpful for you.
Thanks

March 16, 2012 at 6:47 PM

yah i was satisfied with this answer









Related Tutorials/Questions & Answers:
In pagination how to hilight the links - JSP-Servlet
In pagination how to hilight the links  Dear Sir, In pagination how to highlight the links or how to change the color of that link when i clickon that particular link....Please help me sir.. Some of the code which i
In pagination how to hilight the links - JSP-Servlet
In pagination how to hilight the links  Dear Sir, Thanks... pagination ,in that if i click on a number only that number color will be changed like that i want in my code.So how to do this sir please help me . Thanks and Regards
Advertisements
Pagination
Pagination  How to create pagination in jsp with EJB using MS SQL
pagination
pagination  How to set pagination using java script to display data
Pagination
Pagination  How to implement pagination in struts using hibernate
Pagination
Pagination  How to apply pagination in JSP. Please help
Pagination
Pagination  I want to know how to use pagination in jsp. I have a list object from that i want to display 3 questions per page can u help me
pagination
pagination   Simple way for pagination in jsp using java script to display data without send database
Pagination
Pagination  Is their plug n play approach for creating pagination? 1) Server side as well as client side
Pagination
Pagination  I want to write one where condition in sql query in pagination concept
pagination
pagination  I need to give pagination with where condition (query="select * from qtn where qid='"+replyQuesionId+"'limit "+iPageNo+","+showRows+"" ) like this I want, without where condition it is working but with condition
pagination
pagination  how can i start pagination in jsp?   Hi Friend, Try the following code: <%@ page language="java" %> <%@ page import...;Pagination of JSP page</h3> <body> <form> <input type="hidden
pagination
me how to paginate questions without refreshing page   Here is a jsp code of pagination. In the given code,we have taken the database table student...;Pagination of JSP page</h3> <body> <form> <input type="hidden
pagination
pagination  I need to give pagination with where condition (query.......   Here is a simple jsp pagination code where we have used mysql database...()) { totalRows=rs2.getInt("cnt"); } %> <html> <h3>Pagination of JSP
Pagination
=rs2.getInt("cnt"); } %> Pagination of JSP page Terr_Code Terr_Name
Pagination
Pagination  pagination in jsp   Hi Friend, Try the following code: <%@ page language="java" %> <%@ page import="java.sql.*" %>...()) { totalRows=rs2.getInt("cnt"); } %> <html> <h3>Pagination of JSP
Pagination
Pagination  how to use these two SQL_CALC_FOUND_ROWS, FOUND_ROWS in database? Is these are Columns in table
pagination
pagination  please let me know how to fetch records from database and display them using paging in jsp and struts
Pagination in java
Pagination in java  How to handle pagination when there are records like say in millions in java? Or do we handle this using SQL? I as asked... far good performance then Java pagination. Thanks
Two Pagination in one page
Two Pagination in one page  hai friends any one help me. how do u make two pagination script in same page i'm used some ajax coding one pagination script is working but another pagination is not working please help me urgent
Pagination without using database in php
Pagination without using database in php  How can I show multiple images in multiple rows with pagination in php
pagination - JSP-Servlet
pagination  Hi, could u tell me how i will handle pagination... friend, Simple pagination in jsp Simple pagination in JSP... Simple pagination in jsp Displaying Records
How to generate pdf file on click of the links using jsp..
How to generate pdf file on click of the links using jsp..  How to generate the pdf file using jsp file. Generate table in pdf by using jsp.   Here is an example that will generate a pdf file into c drive.The pdf file
ModuleNotFoundError: No module named 'apistar-pagination'
named 'apistar-pagination' How to remove the ModuleNotFoundError: No module named 'apistar-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'apistar-pagination'  Hi, My
ModuleNotFoundError: No module named 'codingsoho-pagination'
: No module named 'codingsoho-pagination' How to remove the ModuleNotFoundError: No module named 'codingsoho-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'codingsoho-pagination'  Hi
ModuleNotFoundError: No module named 'codingsoho-pagination'
: No module named 'codingsoho-pagination' How to remove the ModuleNotFoundError: No module named 'codingsoho-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'codingsoho-pagination'  Hi
ModuleNotFoundError: No module named 'codingsoho-pagination'
: No module named 'codingsoho-pagination' How to remove the ModuleNotFoundError: No module named 'codingsoho-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'codingsoho-pagination'  Hi
ModuleNotFoundError: No module named 'django-pagination'
named 'django-pagination' How to remove the ModuleNotFoundError: No module named 'django-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'django-pagination'  Hi, My
ModuleNotFoundError: No module named 'dj-pagination'
'dj-pagination' How to remove the ModuleNotFoundError: No module named 'dj-pagination' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'dj-pagination'  Hi, My
ModuleNotFoundError: No module named 'falcon-pagination'
named 'falcon-pagination' How to remove the ModuleNotFoundError: No module named 'falcon-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'falcon-pagination'  Hi, My
ModuleNotFoundError: No module named 'filter-and-pagination'
: No module named 'filter-and-pagination' How to remove the ModuleNotFoundError: No module named 'filter-and-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'filter-and-pagination'  Hi
ModuleNotFoundError: No module named 'filter-and-pagination'
: No module named 'filter-and-pagination' How to remove the ModuleNotFoundError: No module named 'filter-and-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'filter-and-pagination'  Hi
ModuleNotFoundError: No module named 'incuna-pagination'
named 'incuna-pagination' How to remove the ModuleNotFoundError: No module named 'incuna-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'incuna-pagination'  Hi, My
ModuleNotFoundError: No module named 'pyramid_pagination'
named 'pyramid_pagination' How to remove the ModuleNotFoundError: No module named 'pyramid_pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'pyramid_pagination'  Hi, My
ModuleNotFoundError: No module named 'sqlalchemy-pagination'
: No module named 'sqlalchemy-pagination' How to remove the ModuleNotFoundError: No module named 'sqlalchemy-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'sqlalchemy-pagination'  Hi
ModuleNotFoundError: No module named 'terminal-pagination'
named 'terminal-pagination' How to remove the ModuleNotFoundError: No module named 'terminal-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'terminal-pagination'  Hi, My
ModuleNotFoundError: No module named 'api_pagination'
named 'api_pagination' How to remove the ModuleNotFoundError: No module named 'api_pagination' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'api_pagination'  Hi, My
ModuleNotFoundError: No module named 'apistar-pagination'
named 'apistar-pagination' How to remove the ModuleNotFoundError: No module named 'apistar-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'apistar-pagination'  Hi, My
ModuleNotFoundError: No module named 'codingsoho-pagination'
: No module named 'codingsoho-pagination' How to remove the ModuleNotFoundError: No module named 'codingsoho-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'codingsoho-pagination'  Hi
ModuleNotFoundError: No module named 'django-pagination'
named 'django-pagination' How to remove the ModuleNotFoundError: No module named 'django-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'django-pagination'  Hi, My
ModuleNotFoundError: No module named 'dj-pagination'
'dj-pagination' How to remove the ModuleNotFoundError: No module named 'dj-pagination' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'dj-pagination'  Hi, My
ModuleNotFoundError: No module named 'falcon-pagination'
named 'falcon-pagination' How to remove the ModuleNotFoundError: No module named 'falcon-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'falcon-pagination'  Hi, My
ModuleNotFoundError: No module named 'filter-and-pagination'
: No module named 'filter-and-pagination' How to remove the ModuleNotFoundError: No module named 'filter-and-pagination' error? Thanks   Hi...ModuleNotFoundError: No module named 'filter-and-pagination'  Hi
ModuleNotFoundError: No module named 'Flask-Pagination'
named 'Flask-Pagination' How to remove the ModuleNotFoundError: No module named 'Flask-Pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'Flask-Pagination'  Hi, My
ModuleNotFoundError: No module named 'incuna-pagination'
named 'incuna-pagination' How to remove the ModuleNotFoundError: No module named 'incuna-pagination' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'incuna-pagination'  Hi, My
pagination in jsf
pagination in jsf  Hi , i am implemeting an online exam system , i have placed my questions as an arraylist in my jsp file within tag , but now i want to paginate these questions based on respective questions by clicking
jsp pagination
jsp pagination  I want to implement pagination on jsp page Each jsp page having some radio buttons, on click of next previous page selected radio buttons are reset. I want to maintain state of selected radio buttons on previous
Pagination Example
; In this section, you will learn how to create pagination in struts 2. For creating pagination in your application follows the certain steps: Download... the following links to test the examples</b></font></td>
Pagination in PHP code - PHP
Pagination in PHP code  3.Pagination in PHP codeIs it possible to get the paging in PHP without database call? How will I show the image instead of numbering? any code that can help
Hibernate Pagination
In this tutorial we will discuss concept of pagination in hibernate

Ads