Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ok. Apparently you're using character-based data types in your database schema. I misread your post to mean that the two "numeric" columns are physically numeric instead of "just" logically numeric...Originally posted by Shilong Zheng:
I manage to solve the funny characters by using rs.getInt to rs.getString ...
Originally posted by Shilong Zheng:
I still have not solve this, my DTD file is DTD.txt, how do i access the DTD text file and create a new text file?
What does the following statement do?
writeDtd(output); // <!DOCTYPE Table[ ... ]>
Originally posted by Shilong Zheng:
When i process the XML file to produce a HTML file by using the following code, the HTML file does not reflect the data except the table only, kindly advise where i go wrong.
...
public void startElement(String elementName, AttributeList al) throws SAXException{
if(elementName.equalsIgnoreCase("Table")){
pw.println("<TABLE border='1'>");
pw.println("<TR>");
pw.println("<TD>Details</TD>");
pw.println("<TD>EmployeeID</TD>");
pw.println("<TD>Age</TD>");
pw.println("<TD>Qualification</TD>");
pw.println("</TR>");
}else if(elementName.equalsIgnoreCase("Details")){
pw.println("<TR>");
}else{
pw.print("<TD>");
}
}
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Shilong Zheng:
else{
pw.print("<TD>");
}
Pardon me for my ignorance, i really have no idea what to write to implement the else branch other than the above given by my friend who claims it works. Would greatly appreciate a simple example to get me going.. thanks!!
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Shilong Zheng:
how do i retrieve the data in an XML file base on the elements in order to be processed in another class, after which i will display the processed data on the HTML file in the order i wish??
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]