Home Answers Viewqa JSP-Servlet In pagination how to hilight the links

 
 


harini
In pagination how to hilight the links
2 Answer(s)      3 years ago
Posted in : JSP-Servlet

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 Pages:
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
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
Pagination
Pagination  How to create pagination in jsp with EJB using MS SQL
Pagination
Pagination  How to implement pagination in struts using hibernate
Pagination
Pagination  How to apply pagination in JSP. Please help
pagination
pagination  How to set pagination using java script to display data
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  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  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 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...; <tr> <td><font ><b>Select the following links
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
links with different colors.
links with different colors.  How can I have two sets of links with different colors
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 - 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
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 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
JSP Tutorials Resource - Useful Jsp Tutorials Links and Resources
are text-based documents that describe how to process a request and construct... might not know how to convert them in order to take advantage of the benefits of a dynamic site. This tutorial will show you how to do just
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 problem - JSP-Servlet
(),my problem is that where i have to put & how to do pagination? my code...pagination problem   Thanks sir for posting the answer.But i have 2 problems 1.i have created one employee class in that i use getter and setter
pagination problem - JSP-Servlet
(),my problem is that where i have to put & how to do pagination? my code...pagination problem  Thanks sir for posting the answer.But i have 2 problems 1.i have created one employee class in that i use getter and setter
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 with condition using servlet or jsp
Pagination with condition using servlet or jsp  Hi, Thanks...")", Then I want perform the pagination based on the string value(I mean pagination... trying to click 2 page onwords that time name variable will become null. How
store pagination form fields - Struts
store pagination form fields   hi,iam working online exams project... table. here iam using pagination for questions to be displayed to client... to populate all the data that has been answered by client intothe db. how can i
save links clicked in search engine results
; But i'm not able to find how to save the links the user clicks.hope you...save links clicked in search engine results  hello i need to access... found how to access the search page of search engines(yahoo) from javascript
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
Php Sql Paging OR Pagination
Php Sql Paging OR Pagination       This application illustrates how to create a pagination.... Displaying all data in one page in not a good idea. For this situation, pagination
What's wrong with my pagination code in JSP?
What's wrong with my pagination code in JSP?  Dear experts, I've.... Hope someone can advise me how to. Thanks! print("code sample"); <...; print("code sample");   JSP Pagination The given code retrieves
Rich Editor 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...;<font ><b>Select the following links to test
Inbound Links: Importance of inbound links
Inbound Links: Importance of inbound links...; In this section we will understand the importance of inbound links for getting higher ranking in search engine and search result or SERPs. Inbound links are also
Struts Links - Links to Many Struts Resources
Struts Links - Links to Many Struts Resources Jakarta Struts Tutorials One of the Best Jakarta Struts available on the web. Struts... you how to develop Struts applications using ant and deploy on the JBoss
Ajax Links
Ajax Links       AJAX links, code samples and news Read full Description
Java Pagination
Java Pagination Pagination is the simplest and standard way of handling large amount of database records. It breaks the data into several manageable chunks. Here, we are going to create paging and displaying records in JTable using java
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
Servlet Tutorials Links
Servlet Tutorials Links      ... to join, with links for more information and to archives. Servlets.com..., and user reviews. The reviews should help you find out how the ISP you're looking
Web Services Tutorials and Links
Web Services Tutorials and Links Web services... that, no matter how promising a new technology is, promoting and encouraging its usage through... a framework for describing what is in a message and how to process it, a set of encoding
JSP Pagination
to be shown, I want to implement Pagination.. Can someone show me a sample code which I could possibly use??   JSP Pagination pagination.jsp: <%@ page..."); } %> <html><h3>Pagination of JSP page</h3> <body><
Hibernate Pagination
In this tutorial we will discuss concept of pagination in hibernate
links open new windows
links open new windows  Why do my links open new windows rather than update an existing frame
jsf pagination
of pagination. In the given code,we have taken the database table student(rollNo,name,marks...()) { totalRows=rs2.getInt("cnt"); } %> <html> <h3>Pagination of JSP
Pagination in jsp - JSP-Servlet
Pagination in jsp  I need an example of pagination in JSP using display tag
Jsp code to enable and disable certain links using jsp code - Java Beginners
but with only a certain links only visible and enabled. now my doubt is how can i...Jsp code to enable and disable certain links using jsp code  Hi... redirected to home page where all the links under a menu should be visible and enabled
pagination in hibernate with jsp
pagination in hibernate with jsp  Hi, plz give me example on pagination .   Hi Friend, Visit Here Thanks