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%>¤tpage=<%=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-ServletIn
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-ServletIn
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
PaginationPagination
How to create
pagination in jsp with EJB using MS SQL
paginationpagination
How to set
pagination using java script to display data
PaginationPagination
How to implement
pagination in struts using hibernate
PaginationPagination
How to apply
pagination in JSP.
Please help
PaginationPagination 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
paginationpagination Simple way for
pagination in jsp using java script to display data without send database
PaginationPagination Is their plug n play approach for creating
pagination?
1) Server side as well as client side
PaginationPagination I want to write one where condition in sql query in
pagination concept
paginationpagination 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
paginationpagination
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
paginationpagination 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
PaginationPagination
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
PaginationPagination
how to use these two SQL_CALC_FOUND_ROWS, FOUND_ROWS in database?
Is these are Columns in table
paginationpagination please let me know
how to fetch records from database and display them using paging in jsp and struts
Pagination in javaPagination 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 pageTwo
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 - JSP-Servletpagination 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
pagination in jsfpagination 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 paginationjsp 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 - PHPPagination 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