Can somebody solve a problem of jsp with xml

I have written the following code to generate a web page.
the application will get some data from a xml file and show it in the web page.
The problem is it is showing null for all the xml properties.
When i used the java scriplet as a seperate java file, it seems to be running fine.
Can somebody help me:-
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="org.w3c.dom.*" %>
<%@ page import="org.xml.sax.*" %>
<%@ page import="javax.xml.transform.TransformerFactory" %>
<%@ page import="javax.xml.transform.Transformer" %>
<%@ page import="javax.xml.transform.TransformerException" %>
<%@ page import="javax.xml.transform.dom.DOMSource" %>
<%@ page import="javax.xml.transform.stream.StreamResult" %>
<%@ page import="javax.xml.transform.*" %>
<%@ page import="javax.xml.parsers.*" %>
<%@ page import="javax.xml.*" %>
<%@ page import="javax.xml.transform.stream.StreamSource" %>
<%!
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
%>
<html>
<head>
<title>Main Page</title>
<link rel="stylesheet" href="Styles1.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
               <td>
                    <table width="100%" height="50" border="0" cellspacing="0" cellpadding="0">
                         <tr>
                              <td>
                              </td>
                         </tr>
                    </table>
                    <table width="100%" height="17" bgcolor="#FFCC00" border="0" cellspacing="0" cellpadding="6">
                         <tr>
                              <td>
<%
try
DocumentBuilder builder = factory.newDocumentBuilder();
System.out.println("Builder: "+builder);
Document document = builder.parse("config.xml");
System.out.println("Document: What happened "+document);
document.getDocumentElement().normalize();
Node ParentNode = document.getDocumentElement();
System.out.println("Node: "+ParentNode);
//NodeList list = document.getElementsByTagName("TimeSheet");
for(Node child= ParentNode.getFirstChild(); child != null; child = child.getNextSibling())
try{
if(child.getNodeType()==Node.ELEMENT_NODE)
String Vals = child.getFirstChild().getNodeValue().toString();
System.out.println("Hi: "+Vals);
%>
                              <%=Vals%> |
<%
catch (NullPointerException nex)
System.out.println("Null Exception : "+nex);
catch (Exception ex)
System.out.println("Exception : "+ex);
%> <a href="Log-out |
                              </td>
                         </tr>
                    </table>
                    </td>
          </tr>
     </table>
</body>
</html>
I wil be thankful for that
Ottran

Hi can anyone solve the above problem

Similar Messages

  • ı have ip4s, today i noticed that there is a yellow area left of screen. How can i solve this problem ?

    ı have ip4s, today i noticed that there is a yellow area left of screen. How can i solve this problem ?

    live with it.  Or you can bring it in to a 3rd party repair shop and see what they say.  However, anyone other than Apple touching that phone will void the warranty and any support on that phone forever.

  • TS3899 In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.

    In my iPad 2 with IO6 today I can not send emails from my gmail account, they go to the outbox directly...why? How can i solve this problem? ..I restarted the IPad but the problem was not solved. Please help.

    Greetings,
    Questions:
    1. What version of the Mac OS are you running (Apple > About this Mac)?
    2. What version of the iOS are you running (Settings > About)?
    3. Do you use MobileMe/ iCloud or another server based sync solution like Google or Yahoo?
    4. Do other changes to synced information like Address Book content sync successfully back and forth?
    Based on your description it sounds like you have a 1 way sync issue.  Events sync fine between the iOS devices and fine from the computer to the iOS devices but not from the iOS devices to the computer.
    Try:
    Backup your computer and iOS devices before doing anything else:
    http://support.apple.com/kb/HT1427
    http://support.apple.com/kb/ht1766
    Ensure all the devices in use are fully up to date: Apple > Software Update / Settings > General > Software Update
    Make separate backups of critical data:
    Backup your computer Addressbook: http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/ad961.html
    Backup your computer iCal: http://support.apple.com/kb/HT2966
    Reset syncing on your Mac: http://support.apple.com/kb/TS1627
    Reply back if that does not resolve your issue.
    Hope that helps.

  • TS1453 Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Whinston,
    I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies?

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Every time i want to delete something  the iMac wants my password.. before it was not like this.. even with pictures.. how can i solve the problem so can delete my pics without my password all the time

    With everything i want to delete the iMac wants my password, before it was not like that, i'm getting crazy of it.. Even with pics he's asking for my password..
    How can i solve the problem and delete stuff without filling in my password every time..
    Already thnx for your support and help..

    Normally, that's caused because of a permissions problem. Have a look at this site > http://www.thexlab.com/faqs/trash.html#Anchor-Files-46919

  • HT4623 How can i solve installation problem with iOS 6.

    How can i solve installation problem with iOS 6. I've tried to install it on my iPhone 4 but nothing turned out. Thanks in advance!!!!

    can you connect your device to Tiunes and check to see if there are any files in
    OSX: ~/Library/Logs/Crashreporter/Mobiledevice/<Devicename>/
    Windows: %appdata%\Apple Computer\Logs\Crashreporter\MobileDevice\<Devicename>
    specifically named OTA......
      Also for the failed itunes restore please attach the contents of the latest log in
    OSX:   ~/Library/Logs/<iphone or ipod or ipad> updater logs
    Windows: C:/User/ Appdata/Roaming/iTunes/<iphone or ipod or ipad> updater logs

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem

    Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem

    alamzeb wrote:
    Hi this is alamzeb , i have purchased OS X mountain lion from apple store and installed it on my macbook with the expect ion of making my macbook faster but it become more slow by installing os x , how can i solve this problem
    Have a read under the threads on the Right hand side of this page under 'More Like This'
    Pete

  • I upgraded Safari in my Mac (10.6.8 Leopard) but the new version does not work with my system so that I now have not a working browser. How can I solve the problem and/or install back my previous Safari version?

    I have upgraded Safari in my Mac, but the new Safari does not work with my system. So I find myself without any working browser. How can I solve this problem and/or install my previous Safari version?

    Reinstall Safari 5.1.10 for OS X 10.6.8: http://support.apple.com/kb/dl1569. Might do the trick.
    But, frankly, I don't think that simply reinstalling the old Safari will work because of all the peripheral, under the hood changes that happen when you upgrade from one version of Safari to another. Reinstalling 5.1.10 may be insufficient to turn back the clock. (This is the moment where a Time Machine or another form of full backup would save your bacon.)
    While you're getting a copy of Safari 5.1.10, get a copy of Firefox (https://www.mozilla.org/en-US/firefox/desktop/), too, so that you have an alternate browser to use as you're sorting matters.

  • I can't paste nor copy using IDLE with Python 2.7. Can somebody fix the problem

    I can't paste nor copy using IDLE with Python 2.7.
    Can somebody fix the problem

    I just launched IDLE for Python 2.7.2 on Mac OS X 10.8.4.
    The defaults for IDLE assume a PC environment and not Mac, thus it was expecting control+c, control+v for copy and paste. Under the IDLE Options menu, Configure IDLE...
    Under the Keys tab, Use a built-in key set, select IDLE Classic Mac. Now command+c, command+v work.
    Since I didn't want to squint, I set my Font to Ubuntu Mono 14 pt.
    I applied these settings and clicked ok.
    I successfully copied from a terminal window and pasted into IDLE with no issue.

  • I have to type my security code every time I turn on my ipad with ios6.0. I don' have to this with ios5.1. How can I solve this problem?

    I have two problems with IOS 6.0.
    1. I have to type my security code every time I turn on my ipad with ios6.0. I don' have to to his with ios5.1. How can I solve this problem?
    2. I can not send email via Yahoo as usual, Only Safari allow me to it.
    Accordingly, I am writting here to ask for to solve those problems.
    Thanks in advance.

    * Websites remembering you and automatically log you in is stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    See also http://kb.mozillazine.org/Cookies

  • Hi .. my iPad 4 with iso 7.0.3 he is restarting himself ... How can i solve this problem please help me

    Hi .. my iPad 4 with iso 7.0.3 he is restarting himself ... How can i solve this problem please help me

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove apps from Recently Used list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • I can not get my ipod touch to sync to my laptop.  The people at the apple can no solve my problem.  My ipod will sync to other mac's or laptop.  I can sync my ipad with laptop.

    I can not get my ipod touch to sync to my laptop.  The people at the apple can not solve my problem.  My ipod will sync with other mac's or pc.
    My ipad will sync with my laptop.

    You can only sync with one iTunes library/computer. To switch:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Hey i have my iphone is not synching with itune, how can i solve this problem..

    Hey my iphone is not synching with itune, how can i solve this problem?

    It can sync with a 32-bit, so long as you have the correct version of iTunes installed. I'm assuming that you are referring to a Windows based computer, so check out this support document regarding the device not being recognized by Windows. http://support.apple.com/kb/TS1538

Maybe you are looking for

  • My ipod touch 4th gen won't pair with bluetooth audio receiver?

    My ipod touch 4th gen won't pair with my aluratech istream universal bluetooth audio receiver.  It automatically paired the first time I used it, but now will not pair.  I removed the bluetooth receiver from the ipod because it kept saying make sure

  • Pricing error: Exchange rate conversion Message no. V1803

    Hi, I am getting an error in the pricing procedure Pricing error: Mandatory condition XXXX is missing Message no. V1801 Pricing error: Exchange rate conversion Message no. V1803 where as the exchange rate is maintained. Please guide me

  • IPad screen keeps enlarging since iOS upgrade, no way to control it

    Since upgrade to ios 5.1, iPad 1 screen size keeps enlarging by around 5 to 10 percent, so that most of screen is hidden from view/ inaccessible, no apparent way to control it.to reset, I have to turn iPad off and on again. For example, as I type thi

  • SLT refresh/system copy

    Hi, We would be going for a SLT refersh from production to Acceptance. Please do share any documents related to this. Thanks, Rajiv

  • H9-1130 Won't boot after new graphics card install.

    Alright, here we go.  I recently bought an EVGA 750 superclocked for my PC. The first time I installed it, I got a black screen. Popped in the old GPU and checked the BIOS. Ended up updating it.  Now, here's the interesting part: I install the EVGA b