Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML JSP - Problem of displaying result at webpage
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Lee Siew Ling
JSP - Problem of displaying result at webpage
0 Answer(s)      2 years and a month ago
Posted in : HTML


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>

Advertisement
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
webpage
webpage  design a webpage student database using forms and frameset
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
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 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
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
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
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
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...; <body> <h2>XSLT Result Example</h2> <h4>Name : <
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
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
webpage capture
webpage capture   webpage capture source code using jsps and servlets
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
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 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
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
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
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
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
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
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
displaying data
displaying data   how to display data from database on jsp using struts2
Showing div at the center of the webpage
Showing div at the center of the webpage  Showing div at the center of the webpage
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
Advertisements
 

 

 

DMCA.com