JSP - Problem of displaying result at webpage

JSP - Problem of displaying result at webpage

Can anyone please help to solve my problem below. My webpage has problem in displaying result position. The result should be display below my title. How do i solve it? Thank you so much!

<html>
    <head>
        <link rel="StyleSheet" type="text/css" href="${pageContext.request.contextPath}/myStyle.css">
        <title>IPTV Profile Scan</title>
    </head>
    <body>   
        <form method="post">
        <table border="1" width="100%" cellspacing="0" cellpadding="3" bgcolor="#6495ED"  borderColorLight="#FFFFFF">
            <tr>

                <td width="15%"><b>
                        <font color="#FFFFFF" size="4">ADSL Number

                                <input name="ADSLNO" type="text" />

                         <input name="Submit" type="submit" value="Confirm" />


                        </font></b></td>
                        </tr>
                </table>
         </form> 
                       <%

                    String ADSL = request.getParameter("ADSLNO");
                    if(ADSL!= null)
                    {
                    String connectionURL = "jdbc:mysql://10.152.31.82/poller";
                    Connection connection = null;
                    String buffer = "<div class='divTable'>";
                    Class.forName("com.mysql.jdbc.Driver").newInstance();
                    connection = DriverManager.getConnection(connectionURL, "dipadm", "dipadm123");
                    Statement stmt = connection.createStatement();
                    ResultSet rs = stmt.executeQuery("select DT, PROFILE, DS_BW, SNR_DW, AT_DW, UCE, MODEL, CRC, RETRAIN from scanProfileData where ADSLNO='" + ADSL + "' order by DT DESC;");
                    if (rs != null) {
                    buffer="<div class='divRowh'><div class='divCellDT'>DATE/TIME</div>" ;
                    buffer=buffer+"<div class='divCellPROFILE'>PROFILE</div>";
                    buffer=buffer+"<div class='divCellBANDWIDTH'>BANDWIDTH</div>";
                    buffer=buffer+"<div class='divCellSNR'>SNR</div>";
                    buffer=buffer+"<div class='divCellATTENUATION'>ATTENUATION</div>";
                    buffer=buffer+"<div class='divCellCRC'>CRC</div>";
                    buffer=buffer+"<div class='divCellUCE'>UCE</div>";
                    buffer=buffer+"<div class='divCellMODEL'>MODEL</div>";
                    buffer=buffer+"<div class='divCellRETRAIN'>RETRAIN</div></div>";

                    while(rs.next()){
                    buffer =buffer+"<div class='divRow'>"
                                  +"<div class='divCellDTr'>"+rs.getString("DT")+"</div>"
                                  +"<div class='divCellPROFILEr'>"+rs.getString("PROFILE")+"</div>"
                                  +"<div class='divCellBANDWIDTHr'>"+rs.getString("DS_BW")+"</div>"
                                  +"<div class='divCellSNRr'>"+rs.getString("SNR_DW")+"</div>"
                                  +"<div class='divCellATTENUATIONr'>"+rs.getString("AT_DW")+"</div>"
                                  +"<div class='divCellCRCr'>"+rs.getString("CRC")+"</div>"
                                  +"<div class='divCellUCEr'>"+rs.getString("UCE")+"</div>"
                                  +"<div class='divCellMODELr'>"+rs.getString("MODEL")+"</div>"
                                  +"<div class='divCellRETRAINr'>"+rs.getString("RETRAIN")+"</div></div>";

                    }
                    }
                    buffer=buffer+"</div>";
                    response.getWriter().println(buffer);
                    }
                %>
              </body>               
</html>
View Answers









Related Tutorials/Questions & Answers:
displaying a calendar of only current month in jsp on webpage using javascript
displaying a calendar of only current month in jsp on webpage using javascript  how can we display a calendar of only current month in jsp on webpage using javascript
displaying a physical webpage with frames in iframe
displaying a physical webpage with frames in iframe  i have iframe in my webpage, i have done the coding part for browsing the folders and viewing... sources.i tried to display a sample webpage without frames and it was a success
Advertisements
How to print a webpage without url and date in jsp ?
How to print a webpage without url and date in jsp ?  How to print a webpage without url and date in jsp
Displaying image using jsp and spring.
Displaying image using jsp and spring.  how to display an image stored in WEB-INF/images folder on the browser using jsp and spring
hide and show result in jsp
hide and show result in jsp  what codes do i have to change to make my result display if only i enter the correct value? suppose if i click search,then the result will be display at the bottom.. if not.. only the header
Displaying Rows - JSP-Servlet
Displaying Rows  Hi, I need your support on how to display data from ms sql 2000 database into an html form text box and text area, using java servlet or jsp  Hi friend, This is form code, display data
display resume content in webpage - JSP-Servlet
display resume content in webpage  Hi everbody, I have to display resume(.pdf, .doc,.rtf..txt)file content into a webpage(jsp or html). please i want help like are there any APIs available or any solution?? thank in advance
Uploading a software and displaying it on the jsp page
Uploading a software and displaying it on the jsp page  I have a Downloads page in my website, I want it to display the name of softwares as soon as it is uploaded in the backend by the administrator. And the admin may be a non
webpage
webpage  design a webpage student database using forms and frameset
Data displaying with limited records in jsp
Data displaying with limited records in jsp  How to display table with limited 10 records , after clicking next button another 10 records from database upto last record please help me
title and keywords don't refresh in webpage - JSP-Servlet
title and keywords don't refresh in webpage  Hi, I changed the title and keywords on my main jsp page that is the entry point into my web... and keywords. If I change anything else on the jsp page it refreshes
XSL Result and its example
;/result> <result name="input">/jsp/index.jsp</result> <...XSL Result and its example XSLT stands for XSL Transformations. It is the most... or add the attribute from the output file. An Example of XSLT result is given
Displaying java.util.Calendar using JSP struts tags
Displaying java.util.Calendar using JSP struts tags  My question is in regard to displaying a date whose source is java.util.Calendar and not java.util.Date. In all the examples I have found they only refer to the java.util.Date
displaying data retrieved from a database in a jsp page
displaying data retrieved from a database in a jsp page  the page should display username, emailid, telephone in addition to tthe tagline however none of the required information is displayed except the tagline protected void
Displaying image when clicked on URL in jsp - JSP-Servlet
Displaying image when clicked on URL in jsp  Hi, I am using.../Images/abc.jpg. Similarly, many such jpg's are there. The jsp would have different... in displaying the image from the folder. Regards, Anish
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
jsp programe for displaying data from database
jsp programe for displaying data from database  i am using JSP.i want.../WebSevices/19592-retriving-data-from-sql-server-using-jsp-code-and-placing-them-in-text-fields-of-html-code.html http://www.roseindia.net/answers/viewqa/JSP
JFree 3D Bar Chart not displaying in JSP - Java3D
JFree 3D Bar Chart not displaying in JSP  Hi I am trying to run JFree 3D bar chart written in your site under link: http://www.roseindia.net/chartgraphs/3Dbarchart-in-jsppage.shtml This is not working. PNG file
Displaying Constant values from Interface in JSP - JSP-Servlet
Displaying Constant values from Interface in JSP  Hi, ******Sorry... need to display suitable fields in my jsp but this should be done upon suitable...="COMP100"; // and so on } IN HOME JSP ****** home.jsp **** Currently
validating credentials and displaying error message in login .jsp if not valid
validating credentials and displaying error message in login .jsp if not valid  hi, i want to validate user name and password against my database table if not valid i have to display error message in my login page.how to do
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes
displaying output on web page immediately whent the jsp buffer size is full. And how to set jsp buffer size in bytes  Here is my requirement, I have to display output on the browser after jsp buffer is full. And I have to set
Displaying Date in jsp - JDBC
Displaying Date in jsp  I want to insert Date of birth of a person in a database.i am getting input value from HTML and i use jsp application to interact with database.My JSP code for inserting Date is below: String dateStr
Name Displaying - JSP-Servlet
webpage capture
webpage capture   webpage capture source code using jsps and servlets
retrive the result of a serach string from other sites - JSP-Servlet
retrive the result of a serach string from other sites  Sir, suppose i have create my own websites, and i want to search an item in my sites and as well as from other search sites and i want to show all the search result in my
Connecting to MySQL database and retrieving and displaying data in JSP page
Connecting to MySQL database and retrieving and displaying data in JSP page..._TO_REPLACE_3 Executing Query and Processing result set In this example we will use... jakartaproject  ADS_TO_REPLACE_4 Here is the code of our JSP file
how to forward select query result to jsp page using struts action class
how to forward select query result to jsp page using struts action class  how to forward select query result to jsp page using struts action class
displaying data
displaying data   how to display data from database on jsp using struts2
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me   displaying List of records from database in a jsp using ajax, onclick it should display the results
copy something from a webpage to my webpage
copy something from a webpage to my webpage  How can I copy something from a webpage to my webpage
webpage
make a webpage
make a webpage   I will provide you some basic requirements that you will be implementing over a small web page... Requirements: A web page having... webpage in a different way Try to use features of HTML5, CSS3 and JavaScript
codes for displaying in calendar
codes for displaying in calendar  can i get jsp codes for displaying comments, when the pointer is placed over the particular date in calendar
Jsp not display desired result - JSP-Servlet
friend, For solving the problem visit to : http://www.roseindia.net/jsp...Jsp not display desired result  Hello all, I want to be able to display picture from Ms Sql 2000 using JSP. Below is the code I used but does
Displaying images - JDBC
Displaying images  How to display multiple images on a single jsp from MySql database
Displaying images - JDBC
Displaying images  How to display multiple images on a single jsp from MySql database
ModuleNotFoundError: No module named 'webpage'
ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage... to install padas library. You can install webpage python with following command
ModuleNotFoundError: No module named 'webpage'
ModuleNotFoundError: No module named 'webpage'  Hi, My Python... 'webpage' How to remove the ModuleNotFoundError: No module named 'webpage... to install padas library. You can install webpage python with following command
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
Last modified time of a webpage
Last modified time of a webpage  how can we get the last modified time of a webpage using java
Retrieving newly inserted records and displaying in jsp forever
Retrieving newly inserted records and displaying in jsp forever  Sir... a table and display in jsp(Each row contains a field called as "session... of every record which is displayed on the jsp (not in database) and immediately i have
displaying long size arrow line in a jsp
displaying long size arrow line in a jsp  Hi all, How can we display an arrow mark with a specified height and width in a jsp. Please help me in resolving this problem. Thanks, Suresh
Image is not displaying
Image is not displaying  Hii i am using spring javamail with html template to send mail,i am facing that image displaying prob when mail have to cm in gmail,in template just i am giving my current location of image which
ModuleNotFoundError: No module named 'webpage-reader'
ModuleNotFoundError: No module named 'webpage-reader'  Hi, My... named 'webpage-reader' How to remove the ModuleNotFoundError: No module named 'webpage-reader' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'webpage-reader'
ModuleNotFoundError: No module named 'webpage-reader'  Hi, My... named 'webpage-reader' How to remove the ModuleNotFoundError: No module named 'webpage-reader' error? Thanks   Hi, In your python
forwarding request to a jsp from a filter and displaying image in that jsp
forwarding request to a jsp from a filter and displaying image in that jsp ... correctly, but in login.jsp the image is not displaying. Can you help me in resolving this problem. Thanks & Regards, Suresh   Jsp Display Image <
displaying image
displaying image  how to upload image and retrieve it form database mysql in php?   Here is an example of uploading image using php. 1)form.html: <form method="post" enctype="multipart/form-data" action="upload.php
display result
display result  i want a code that takes input from user through dropdown box and display the result into table.all the values regarding the user input must be displayed. i am using mysql database   hi i want study
Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am loading an image section(image,demo link,Zoom) in a webpage by using javascript function in JSP. It will get all details of image section from database. *I am

Ads