Unwanted spce when displaying tables in html using servlets
hi everybody,
i have noticed a strange behaviour. i have written servlets tht retrive values from a table based on a query. i retirive all the values using rs.getString() in the while rs.next() loop. next i try to display the values retried into strings in n html table. but when the html outputisgenerated lot of space is left blank in the output....the user hs to scroll a bit to view the output. why is this blank space left?????
this is how i display the html table:
while(rs.next())
air=rs.getString("AIR");
dd=rs.getString("DD");
jces=rs.getString("JCES");
System.out.println(jces);
army=rs.getString("ARMY");
navy=rs.getString("NAVY");
iaf=rs.getString("IAF");
dot=rs.getString("DOT");
pol=rs.getString("POL");
rly=rs.getString("RLY");
aai=rs.getString("AAI");
lhl=rs.getString("LHL");
vsnl=rs.getString("VSNL");
imd=rs.getString("IMD");
dos=rs.getString("DOS");
ongc=rs.getString("ONGC");
nic=rs.getString("NIC");
sac_com=rs.getString("SAC_COM");
app_com=rs.getString("APP_COM");
doe=rs.getString("DOE");
mhq=rs.getString("MHQ");
=================================
out.println("<table width=90% bgcolor=orange cellspacing=0 cellpadding=10 border=1>");
out.println("<th align=center>SACFA Member</th><th>Comment Status</th>");
out.println("<tr>");
out.println("<td>AIR</td>"+"<td>"+air+"</td>");
out.print("<br>");
out.println("</tr><tr>");out.println( "<td>DD</td>"+"<TD>"+dd+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>JCES</td>"+"<TD>"+jces+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>ARMY</td>"+"<TD>"+army+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>NAVY</td>"+"<TD>"+navy+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>IAF</td>"+"<TD>"+iaf+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>DOT</td>"+"<TD>"+dot+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>POL</td>"+"<TD>"+pol+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>RLY</td>"+"<TD>"+rly+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>AAI</td>"+"<TD>"+aai+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>LHL</td>"+"<TD>"+lhl+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>VSNL</td>"+"<TD>"+vsnl+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>IMD</td>"+"<TD>"+imd+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>DOS</td>"+"<TD>"+dos+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>ONGC</td>"+"<TD>"+ongc+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>NIC</td>"+"<TD>"+nic+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>SACFA COMMENT</td>"+"<TD>"+sac_com+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>APPLICATION COMMENT</td>"+"<TD>"+app_com+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>DOE</td>"+"<TD>"+doe+"</TD>");out.print("<br>");
out.println("</tr><tr>"); out.println( "<td>MHQ</td>"+"<TD>"+mhq+"</TD>");out.print("<br>");
out.println("</tr>");
out.println("</table>");
wht cud be wrong? pls help.
thanx,
ashna
the reason i know is because i ran into this problem myself when converting '\r\n' to <br>. it just seems this is the way IE (and maybe netscape) handle html. if you do a 'view source' on the page you would see all the <br>'s and say "where did those come from?", then after looking at your code you would see it.
i am not sure 100% as to why they do it, but I have theories as to why (i.e. table isn't done and that text isn't formatted correctly, so just spit stuff out - then print table when closed)
so basically, the problem was with the html and not the servlet writing.
Similar Messages
-
How to display table data without using ALV and table element.
Hi,
Its possible to display table data without using ALV and table element.
Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
(every time i am fetching single row data ),
But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
settings and header data etc..things.
Give solution to display data part..
Regards,
Rakhi.Hi,
Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
* Standard Filter Function setting to FALSE
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
* Standard Filter Function setting to FALSE Ends
Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
Hope this answers your query.
Thanks.
Kumar Saurav. -
How to view when a table was last used!!?
Hi,
Pls let me know where I can view when a table in the database was last utilitized i.e. any selection or manipulation was performed on it.
Thanks in Advance,
AbhiHi,
you can see if some structure changes were done (DDL statements) through user/all/dba_objects view
select * from user_objects where object_name = 'A1';
... LAST_DDL_TIME
11/14/05 07:59:10 ...
alter table a1 add (c2 int);
...LAST_DDL_TIME
11/14/05 07:59:38 ...
Also you can monitor access to tables (with some degree of errors) using V$ACCESS and the monitoring can be set up through v$segment_statistics.
Andrey -
How to display xml to html using xsl?
hi all...may i know how to display xml to html page?
i ve included <xsl:output method="html" indent="yes" /> inside my xsl file. i clicked on output.xml file and everything is displayed correctly but the format is xml instead of html. is there anyway to transform it to html?
below are my xsl and xml codes:
// xsl file
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" />
<xsl:template match="/">
<html>
<body>
<h2>Document Contents</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="center">Document Name</th>
<th align="center">Document ID</th>
<th align="center">Owner</th>
</tr>
<xsl:for-each select="Document/Contents">
<tr>
<td><xsl:value-of select="DocumentName"/></td>
<td><xsl:value-of select="DocumentID"/></td>
<td><xsl:value-of select="Originator"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
// xml file
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="xsltStyleSheet.xsl"?>
<Document>
<Contents>
<DocumentName>register</DocumentName>
<DocumentID>1</DocumentID>
<Originator>hhh</Originator>
</Contents>
</Document>
</xsl:template></xsl:stylesheet>your XSL transforms to HTML (in fact XHTML): what more do you expect? did you expected anything different from the following output? if yes: what and why?
<html>
<body>
<h2>Document Contents</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="center">Document Name</th>
<th align="center">Document ID</th>
<th align="center">Owner</th>
</tr>
<tr>
<td>register</td>
<td>1</td>
<td>hhh</td>
</tr>
</table>
</body>
</html> -
How to display table field data using checkbox
Dear sir,
I have created PR using ME51N. Our PR datas in EKPO table.
I have created select-option with prdat and Checkbox for to view PR open or closed status.
I want check PR status details from date to date using check box.
I have created the following code, but i will not generate output
DATA: BEGIN OF leban OCCURS 0.
INCLUDE STRUCTURE ekpo.
DATA END OF leban.
DATA new(1).
SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
parameters lopen like new AS CHECKBOX USER-COMMAND opn.
parameters lclose like new as checkbox user-command cls.
at selection-screen.
if ldat is initial.
message 'Enter a value' type 'W'.
endif.
case sy-ucomm.
when 'opn'.
perform getpr.
perform findopenpr tables leban.
endcase.
form getpr.
select * from ekpo into leban where PRDAT in ldat.
append leban.
endselect.
endform.
form findopenpr tables ekpo.
IF LOPEN = 'X'.
select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
SORT leban BY bnfpo.
CLEAR leban.
if not sy-subrc = 0.
message 'PR OPEN' type 'S'.
ENDIF.
WRITE: / LEBAN-BANFN.
ENDIF.
endform.
With Regards,
BaskaranHi,
Try this way,
You shouldnt be writing two select statements into the same internal table. Also i dont see any use of perform getpr. so remove that and try
DATA: BEGIN OF leban OCCURS 0.
INCLUDE STRUCTURE ekpo.
DATA END OF leban.
DATA: BEGIN OF leban1 OCCURS 0.
INCLUDE STRUCTURE ekpo.
DATA END OF leban1.
DATA new(1).
SELECT-OPTIONS ldat FOR sy-datum. "NO-DISPLAY.
parameters lopen like new AS CHECKBOX USER-COMMAND opn.
parameters lclose like new as checkbox user-command cls.
at selection-screen.
if ldat is initial.
message 'Enter a value' type 'W'.
endif.
IF LOPEN = 'X'.
select single * from ekpo into leban where PRDAT IN LDAT AND banfn = lopen.
if sy-subrc = 0.
message 'PR OPEN' type 'S'.
ENDIF.
WRITE: / LEBAN-BANFN.
endif.
if LCLOSE = 'X'.
select single * from ekpo into leban1 where PRDAT IN LDAT AND banfn eq space.
if sy-subrc = 0.
message 'PR CLOSE' type 'S'.
ENDIF.
WRITE: / LEBAN1-BANFN.
ENDIF.
Regards,
Vik
Edited by: vikred on Aug 7, 2009 6:55 PM
Edited by: vikred on Aug 7, 2009 7:23 PM -
Html- jsp- servlet to retrieve data from DB
hi there, i'm a newbie of jsp programming and I'm trying to develop a simple application in order to retrieve some data from a database table. Then I want to display it.
I read lots of examples but all of them used sql queries or java code into the jsp file. Actually I would like to respect the MVC structure as much as I can.
The final thing shoul be like this:
-type in a name into the search box implemented in the html file
-the html file then calls the jsp wich get the typed in value and pass it to the servlet
-the servlet which connects to DB and makes an SQL query using the typed in value, then send the result to the jsp
-finally the jsp displays the result (in this case I'm trying to use displaytag (displaytag.sourceforge.net)).
The code must still have to be checked for unuseful stuff but it compiles and this is enough by now.
Here it is:
cerca_agenzie.html
<html>
<head>
<title>Cerca un'Agenzia</title>
</head>
<body bgcolor="white">
<i> Inserisci il nome dell'agenzia di cui si richiedono le informazioni o parte di esso e poi clicca sul pulsante "Cerca"</i>
<form action="info_agenzie.jsp" method="get">
<table>
<td>Nome Agenzia:</td>
<td><input type="text" name="cerca">
</td>
<tr>
<td colspan=2><input type="submit" value="cerca"></td>
</tr>
</table>
</form>
</body>
</html>
info_agenzie.jsp
<%@ page language="java" contentType="text/html" %>
<%@ page import="andrea.*" %>
<%@ page import="org.displaytag.sample.*" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<jsp:useBean id="agenzie" class="andrea.Sessione" />
<jsp:setProperty name="agenzie" property="*" />
<html>
<head>
<title>Risultato Della Ricerca</title>
</head>
<body bgcolor="white">
Sono state trovate le seguenti agenzie:
<p>
<display:table name="agenzie" list="requestScope.risultato.rows" decorator="org.displaytag.sample.Wrapper" >
<display:column property="Indirizzo" title="ID" />
<display:column property="Telefono" />
</display:table>
</body>
</html>
Sessione.java
/*=========================================================
Sessione.java
si connette al DB e recupera le informazioni sulle agenzie
==========================================================*/
package andrea;
import org.apache.commons.beanutils.RowSetDynaClass;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Sessione extends HttpServlet {
private String cerca;
private RowSetDynaClass resultset;
private RowSetDynaClass risultato;
/*======================
metodo getter del bean
======================*/
public RowSetDynaClass getRisultato() {
return risultato;
/*======================
metodo setter del bean
======================*/
void setCerca(String cerca) {
this.cerca = cerca;
/*===========
form get
============*/
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
RowSetDynaClass risultato = connectToDB(cerca);
req.setAttribute("risultato",risultato);
String nextJSP = "/info_agenzie.jsp";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(nextJSP);
dispatcher.forward(req,res);
/*====================================================================================================
doSelect restituisce: 1. tutti i dati di tutte le agenzie se la form viene lasciata vuota
2. tutti i dati dell'agenzia corrispondente al valore del campo descrizione
=====================================================================================================*/
public ResultSet doSelect(Statement st, String s) {
ResultSet rs = null;
if (s == "") {
try {
rs = st.executeQuery("SELECT * FROM agenzie ORDER BY descrizione");
catch (SQLException e) {
System.out.println(e);
else {
try {
rs = st.executeQuery("SELECT * FROM agenzie WHERE descrizione LIKE %\""+s+"\"% ORDER BY
descrizione");
catch (SQLException e) {
System.out.println(e);
return rs;
/*=============================================================
connectToDB esegue la doSelect e invia il risultato alla jsp
==============================================================*/
public RowSetDynaClass connectToDB(String sel) {
Connection conn = null;
ResultSet rs=null;
try {
Class.forName("com.mysql.jdbc.Driver"); //carica il driver per MYSQL
conn = DriverManager.getConnection("jdbc:mysql://82.51.248.50/progestimm?user=root&password=ak47posse");
//log in al database
Statement stmt = conn.createStatement(); //necessario per fare le query
rs = doSelect(stmt,sel);
resultset = new RowSetDynaClass(rs, false);
try {
rs.close(); }
catch(SQLException e) {
System.out.println(e); }
catch (ClassNotFoundException e) {
System.out.println(e);
catch (SQLException e) {
System.out.println(e);
finally {
try {
if (conn != null) conn.close();
catch (SQLException e) {
System.out.println(e);
return resultset;
}Thanks in advance for your kindness,
AndreaThese values are from a form MStatus1.jsp which are
retrieved by a javabean named fileuploadbean:And you are sure those values are actually set? Besides, accessing fields by name strings strikes me as a little bit odd and un-OOish. But oh well..
The name strings are the names of the controls on the MStatus1.jsp file.
The controls are having their values from database which are no doubt visible on the MStatus1.jsp page.
on MStatus1.jsp page i have a button on whose click the servlet is called which uses fileuploadbean to retrieve the values from MStatus1.jsp page.
Message was edited by:
aarohan_jamwal -
Outputting JPEG using servlets
hi
Im trying to output the JPEG created by the StockGraphProducer class i found on Javaworld to a webpage using a servlet output stream.
The original code used a file output stream i have included a snippet of it below. I have also included my servlet where i have tried to amend it to render JPEG to the webpage but im not usre abotu it or what bits i need to change in the StockGraphProducer
I woudl be very grateful if someone could take a quick look at this .
thanks
public class StockGraphProducer implements ImageProducer
private static int ImageWidth = 300;
private static int ImageHeight = 300;
private static int VertInset = 25;
private static int HorzInset = 25;
private static int HatchLength = 10;
* Request the producer create an image
* @param stream stream to write image into
* @return image type
// i want to try and use a servlet output stream to send the JPEG to the user insteadof outputstream.
public String createImage(Outputstream stream) throws IOException
plottedPrices = new Point2D.Double[5];
int prices[] = {105, 100, 97, 93, 93};
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(stream);
//do i remove the stream paaremter from createiamge and above function???
BufferedImage bi = new BufferedImage(ImageWidth + 10,
ImageHeight,
BufferedImage.TYPE_BYTE_INDEXED);
graphics = bi.createGraphics();
graphics.setColor(Color.white);
graphics.fillRect(0, 0, bi.getWidth(), bi.getHeight());
graphics.setColor(Color.red);
createVerticalAxis();
createHorizontalAxis();
graphics.setColor(Color.green);
plotPrices(prices);
encoder.encode(bi);
return "image/jpg";
public final class GraphRenderer extends HttpServlet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
HttpSession session = request.getSession(true);
response.setContentType("image/jpeg");
ServletOutputStream sos= response.getOutputStream();
//the original code
/* try
FileOutputStream f = new FileOutputStream("stockgraph.jpg");
StockGraphProducer producer = new StockGraphProducer();
producer.createImage(f);
f.close();
catch (Exception e)
e.printStackTrace();
//i want to try and use a servlet output stream so that the JPEG is sent to the webpage i tried the following butim not sure about it. I got rid of the outputstream parameter from StockGraphProducer and left it empty and tried .
try
StockGraphProducer producer = new StockGraphProducer();
producer.createImage();
//i dont think i need this part.
/*Dimension size= producer.getPreferredSize();
BufferedImage image = new BufferedImage((int)size.getWidth(), (int)size.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics g= image.createGraphics();
gp.paint(g);*/
// Send back image i dont think this is correct
JPEGImageEncoder encoder= JPEGCodec.createJPEGEncoder(sos);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(image);
param.setQuality(1.0f, false);
encoder.setJPEGEncodeParam(param);
encoder.encode(image);
catch(Exception ex)
{Hi,
I need to create a program where I get an Image from DB and then display it in Browser using servlets.
I was looking at the StockGraphProducer, but it seems the code is not fully posted.
I would greatly appreciate anyone who has this StockGraphProducer program would email me or post it.
Thanks in advance.
my email address is [email protected]
Again Thanks -
Hi,
when i rendering large HTML table from Ajax using jquery , table not displaying in browser why ? but visible in chrome and mozilla.Hi,
Post questions about html, css and scripting for website developers to the IE Web Development forum.
http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
Include with your question a link to your website or a mashup that shows the issue.
If you are using the file: protocol.... MSIE browsers have security restriction for running active content from the file system.
Regards.
Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
Rob^_^ -
How to display multiple tables from database using netbeans swing gui
plz reply asap on how to display multiple tables from database using netbeans swing gui into the same project
Layered Pane with JTables or you can easily to it with a little scripting and HTML.
plzzzzzzzzzzzzzzzzz, do not use SMS speak when posting. -
Problems when displaying html in internet explorer
I am trying for two weeks to make an HTML code looks good in
IE (internet explorer), but I have been unsuccessful. The code
looks great on Firefox, but really bad in IE. Here is my code
Web
page
Plase help!!!!!!!!!!!!!!!!1This is not the code on the page you have linked. That page
has no doctype.
It appears you have used ImageReady to write the HTML for
this page (it has
the hallmarks - uppercase tags, unquoted attribute values,
and zillions of
col-/rowspans). Such HTML is notoriously bad for use on the
web. Please
read this to see why I say that -
http://apptools.com/rants/spans.php
Anyhow, I think it's the table code that is letting you down.
Do you know
enough HTML to build this page in DW?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"maxhec-pr" <[email protected]> wrote in
message
news:[email protected]...
> Thanks for your response. Please update the link to the
page, the server
> is
> currently down. The file is now at
>
http://web.ics.purdue.edu/~hsantosv/test.html
>
> I validated the html code with Dreamweaver. I checked
for errors in
> firefox
> and IE, and the application returned zero errors. Also,
I validated the
> html
> code for IE 3.0 and 4.0, Netscape 3.0 and 4.0, HTML 4.0,
and Cold Fusion
> MX7. I
> really don't have a clue of what I am doing wrong. I am
going to attach
> the
> code too.
>
> Thanks for your help
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
> "
http://www.w3.org/TR/html4/loose.dtd">
> <HTML>
> <HEAD>
> <TITLE>Purdue-HP Color Central CPWT</TITLE>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1">
> <!-- ImageReady Preload Script (index.psd) -->
> <!-- End Preload Script -->
> <SCRIPT TYPE="text/javascript">
> <!--
>
> function newImage(arg) {
> if (document.images) {
> rslt = new Image();
> rslt.src = arg;
> return rslt;
> }
> }
>
> function changeImages() {
> if (document.images && (preloadFlag == true)) {
> for (var i=0; i<changeImages.arguments.length; i+=2)
> document[changeImages.arguments
].src = changeImages.arguments[i+1];
> }
> }
> }
>
> var preloadFlag = false;
> function preloadImages() {
> if (document.images) {
> main_page_over = newImage("images/main-page-over.gif");
> about_me_over = newImage("images/about-me-over.gif");
> memories_over = newImage("images/memories-over.gif");
> interests_over = newImage("images/interests-over.gif");
> news_over = newImage("images/news-over.gif");
> contact_over = newImage("images/contact-over.gif");
> preloadFlag = true;
> }
> }
>
> // -->
> </SCRIPT>
> <style type="text/css">
> <!--
>
> .style2 {color: #000066}
> .style3 {color: #3A4A73}
> .style4 {color: #324A6B}
>
>
> .bottomStyle {
> background:url(images2/b_links.gif);
> width:528px;
> height:80px;
> }
>
> body,td,th {
> color: #314B73;
> }
> body {
> background-color: #FFFFFF;
> }
> a:link {
> color: #314B73;
> }
> .style5 {color: #314B73}
> a {
> font-family: tahoma;
> }
> ol {
> font-family: Tahoma;
> font-size: 10px;
> font-style: normal;
> line-height: 2em;
> font-weight: normal;
> font-variant: normal;
> text-transform: none;
> color: #353535;
> text-decoration: none;
> text-align: left;
> list-style-type: disc;
> padding-top: 2px;
> }
> -->
> </style>
> <link href="research/css/styles.css" rel="stylesheet"
type="text/css">
> </HEAD>
>
> <BODY ONLOAD="preloadImages();">
> <table width="775" border="0" cellpadding="0"
cellspacing="0">
> <tr>
> <td colspan="3"><IMG SRC="images2/titleNew.gif"
WIDTH=734 HEIGHT=88
> ALT="Purdue-HP"></td>
> <td rowspan="11"><IMG SRC="images2/main5.gif"
WIDTH=41 HEIGHT=680
> ALT=""></td>
> </tr>
> <tr>
> <td rowspan="10"><img src="images2/main1.gif"
width=121 height=592
> alt=""></td>
> <td><A HREF="research/research.shtml"
> ONMOUSEOVER="window.status='mail'; changeImages('home',
> 'images2/researchHome-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('home',
> 'images2/researchHome.gif'); return true;">
> <IMG SRC="images2/researchHome.gif" ALT=""
NAME="home" WIDTH=85 HEIGHT=23
> border="0"></A></td>
> <td rowspan="8"><iframe name="content"
align="top" frameborder="0"
> height="495" width="528"
> scrolling="auto" src="itest.html" marginheight="1"
marginwidth="1" >
> </iframe></td>
> </tr>
> <tr><td><A
HREF="research/researchers.shtml"
> ONMOUSEOVER="window.status='main page';
changeImages('main_page',
> 'images2/researchers-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('main_page',
> 'images2/researchers.gif'); return true;">
> <IMG NAME="main_page" SRC="images2/researchers.gif"
WIDTH=85 HEIGHT=21
> BORDER=0 ALT="main page"></A></td>
> </tr>
> <tr><td><A HREF="research/papers.shtml"
> ONMOUSEOVER="window.status='paper sec';
changeImages('papers',
> 'images2/publications-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('papers',
> 'images2/publications.gif'); return true;">
> <IMG SRC="images2/publications.gif" ALT="paper sec"
NAME="papers"
> WIDTH=85
> HEIGHT=21 BORDER=0></A></td>
> </tr>
> <tr><td><A HREF="research/protos.shtml"
> ONMOUSEOVER="window.status='thoughts sec';
changeImages('thoughts',
> 'images2/prototypes-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('thoughts',
> 'images2/prototypes.gif'); return true;">
> <IMG SRC="images2/prototypes.gif" ALT="thoughts sec"
NAME="thoughts"
> WIDTH=85 HEIGHT=21 BORDER=0 ></A></td>
> </tr>
> <tr><td><A HREF="research/meetings.shtml"
> ONMOUSEOVER="window.status='mail';
changeImages('research',
> 'images2/meetings-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('research',
> 'images2/meetings.gif'); return true;">
> <IMG SRC="images2/meetings.gif" ALT="research sec"
NAME="research"
> WIDTH=85
> HEIGHT=21 BORDER=0
id="research"></A></td>
> </tr>
> <tr><td><A HREF="research/docs.shtml"
> ONMOUSEOVER="window.status='mail'; changeImages('Docs',
> 'images2/documents-over.gif'); return true;"
> ONMOUSEOUT="window.status=''; changeImages('Docs',
> 'images2/documents.gif');
> return true;">
> <IMG NAME="Docs" SRC="images2/documents.gif" WIDTH=85
HEIGHT=21 BORDER=0
> alt="Documents"></A></td>
> </tr>
> <tr><td><IMG NAME="contact"
SRC="images2/blackb.gif" WIDTH=85 HEIGHT=21
> BORDER=0 alt=""></td>
> </tr>
> <tr><td rowspan="3"><IMG
SRC="images2/main3.gif" WIDTH=85 HEIGHT=443
> ALT="ColorCentral : CPWT"></td>
> </tr>
> <tr><td><IMG SRC="images2/down.gif"
WIDTH=528 HEIGHT=16 ALT=""></td>
> </tr>
> <tr><td align="right" valign="top"
class="text7" width="528" height="80">
> <div id="layer1" class="bottomStyle">
> <!--<a
> href="
http://cobweb.ecn.purdue.edu/~hsantosv/research/research.shtml">Research
> Home</a> |
> <a href="mailto:[email protected]">Contact
Us</a>
> <p>
> <span class="text3">designed by</span>
> <a href="
http://www.templatesbox.com"
>
target="_blank">Templatesbox</a></p>-->
> </div></td></tr>
> </table>
> </BODY>
> </HTML>
> -
Table Header not Recurring - when Generate PDF from HTML with tables
Hello, It is not working as expected...and I'm not sure if the functionality is supported. Want to create PDF from html document. The html document contains a html table that typically contains a large number of rows. To make reading easier the html table used thead and tbody elements, and their children, so that when the table extends across pages when printed the header element recurs on each page. However, the header element is not recurring in the generated PDF document (it only occurs in the first row of the table). Just wondering if you have tried or used this functionality (created PDF from html with table with headers and the PDF included the table with recurring table header. And if so, did you do anything special to make it work. Thanks for any insight.
If there's a problem with that package, I suggest you speak to the developer of that package and ask them to investigate. It's not an Oracle supplied package so you are wrong to look for help here.
-
Help with displaying errors in jsp using html:errors/
Here is my problem.
In my overridden ActionForm.validate() method, i am returning ActionErrors (as required). When there are input errors in my form submission, the control goes back to the JSP page i used to read user input (so far so good). The JSP page is rendered fine for taking input for the second time but no errors are displayed although i am using the tag <html:errors/>
I tried to find the org.apache.struts.action.ERROR in my request attributes and it is there with the size of 1 (because i am reporting one error, in my sample run). Any idea why <html:errors/> won't display the errors even though they are there??? Here is what i am doing in my ActionForm class:
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if (this.email == null || this.email.length() < 1) {
errors.add("username", new ActionError
("error.username.required"));
return errors;
Any help is appreciated.First of all, thanks for taking time to look at my message. Here is how my message-resources tag look like in struts-config.xml file:
<message-resources parameter="ApplicationResources"/>
The "ApplicationResources.properties" file exist in the WEB-INF folder of my application and following are the entries in that file that i think are relevant:
errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
errors.footer=</ul><hr>
error.username.required=<li>Username is required</li>
Is there anything else needed to go into resource file? Or should i put my resource file somewhere else? -
My iPad 4 does not show up on my TV screen when in AirPlay mirroring mode using WiFi. The iPad displays AirPlay set to TV with the Mirroring On (green).
My iPad IOS software is 8.2 and my Apple TV software is at 7.1. The TV displays the Apple Menu. The “Settings” does however displays the General menu allowing me to see:
Apple software: 7.1 (7003)
Apple TV: Model No. A1464, Part No. MD199B/A
Signal Strength shows 5 circles.
It does not display the iPad screen but when I use the BT Sport App I can hear the sound but there is no video. I have searched the internet for a solution to no avail. The problem first arose when the IOS was at 8.1+ but it worked correctly briefly when I updated to IOS 8.2. Can you help please?Welcome to the Apple Community.
Try the following steps, check whether things are working after each step where appropriate, before trying the next.
Check AirPlay is turned on on the Apple TV (turn it off and on if it already is)
Check that both devices are on the same network (Settings > Wifi, on the mobile device and Settings > General > Network, on the Apple TV).
Restart the Apple TV (Settings > General > Restart).
Restart the Apple TV by removing ALL the cables for 30 seconds.
Restart your router. (Also try removing it’s power cord for at least 30 seconds)
Restart your mobile device.
If you are still having problems, the following article(s) may help you.
Troubleshooting AirPlay
Troubleshooting Wi-Fi networks and connections
Recommended Wi-Fi settings
Wifi Diagnostic Software (for Mac users)
You may also find some help on this page, where I’ve collected some of the more unusual solutions to network issues.
When making adjustments to your network for better optimisation, you may find some of the points mentioned on this page helpful. -
Error when displaying - on table control
hy guys,
im working with a table control..
the problem is when the table control loads a -200 or any number with - .
ERROR
DYNPRO_FIELD_CONVERSION
I already tried to change the format of the table field to currency, dec, char and numc
currency the error is displayed.
dec the error is displayed
char the column is displayed empty
numc the table is displayed but the - is not displayed in the field.
any ideas?
Edited by: javier santana on Sep 7, 2008 7:26 PMHi,
The problem mayb with the -ve value display, keep the format to currency and double click on the field in table control, u wil find a option to display -ve values select that
If -ve value is ur prob then this should work -
Dynamic XML content displayed in HTML using url variable
Hi guys,
The following is code i am having issues with:
<script type="text/javascript">
<!--
var xml_connect_00 = "new Spry.Data.XMLDataSet(";
var xml_connect_01 = "assets/xml/toolkit.xml\",
\"toolkit/section/";
var xml_connect_02 =
"/product\",{sortOnLoad:\"product_name\",sortOrderOnLoad:\"ascending\"";
var xml_connect_03 = ")";
// Create variable to see if there is a ? in the url
var url_input = document.URL.indexOf('?');
// Create variable from ? in the url to the end of the string
var xml_category = document.URL.substring(url_input+1,
document.URL.length);
var dsSoftware =
document.write(xml_connect_00,xml_connect_01,xml_category,xml_connect_02,xml_connect_03);
--->
</script>
dsSoftware is my XML Data set connection string, and by using
document.write, the correct string i want is displayed (in my
html), but - as you can probably guess by now(!) - i want it to
display in the actual Javascript code so i can connect to the xml
file and display the contents depending on the url variable sent.
Is this possible, and if so, am i going about it the right
way? I am not the most proficient at JavaScript, so may have some
ugly code (and not even 100% that this can even be done)!!
Just to give you an outline as to why i am doing this - my
XML file has different categories within it for different products.
I send the category name via a url variable to another page
(containing the above code) that will display the appropriate
category information depending on what url variable is sent.
Cheers in advance for any help.Me again!
Sorry to keep updating, but i have now surpassed my last
question and got the alert to work correctly. The question i have
now regards the following code:
<script type="text/javascript">
<!--
var params = Spry.Utils.getLocationParamsAsObject();
var dsSoftware = new
Spry.Data.XMLDataSet("assets/xml/toolkit.xml", "toolkit/section");
//If the URL parameter 'software' has a value, set the XPath
that includes a filter and then load the data.
if (params.software){
dsSoftware.setXPath("toolkit/section[name =
'"+params.software+"']/product");
dsSoftware.loadData();
//alert(params.software);
//-->
</script>
Everything seems to work without error, but i cannot load my
xml file. The problem, i think, is that my xml heirachy is as
follows:
"toolkit/section/section_name/product"
section_name is unique for each section, and that is what i
am trying to pass through the url variable, so i can display all
the products from that section.
Can anyone tell me what i am doing wrong?
Cheers in advance - again!!
Maybe you are looking for
-
Operating inside an Xserve is a joy
I just finished installing a RAID card into one of our Intel-based Xserves and the engineering of the Xserve is just amazing. The way power supplies and drives just slide out then right back in with just the right amount of oomph is cool. Installing
-
Report of Changes made to Cusotmer requested and Actul Committed date
Hi, Please guide me for the preparation of a report of Changes made to Customer requested date and Actual delivery Date. Which field should I take for the Actual delovery date and the field for Customer requested date. Finally the Tables for these Fi
-
Display Select option in module pool screen
What are the Function modules used to display Select option type fields in a module pool screen?
-
I am using Photoshop Elements 8. I have ordered from Shutterfly in the past and all worked well, but for the past few weeks I only get a blank screen where ordering options and thumb nails of the prints I want to order should be. I have tried enteri
-
In oracle form not to allow cursor to move ahead if value is not entered
I have to modify an existing form in which the cursor sould not move ahead if no value is entered in the field.There are many items for that block.If no value is entered for a particular ITEM then the cursor should not move ahead on pressing the Tab