JSP Homeland security level

Reply

Join Date: Mar 2006
Posts: 1
Reputation: peaston is an unknown quantity at this point 
Solved Threads: 0
peaston peaston is offline Offline
Newbie Poster

JSP Homeland security level

 
0
  #1
Mar 24th, 2006
I need to write/find a jsp script that would go to the following url and retrive the xml it generates and display an images for whatever the value is.

url:
http://www.dhs.gov/dhspublic/getAdvisoryCondition

what it returns:
<?xml version="1.0" encoding="UTF-8"?>
<THREAT_ADVISORY CONDITION="ELEVATED" />

What I would like is a way to read the value of "THREAT_ADVISORY CONDITION" and compare it with an if or switch statement the display the correct image code.

attached is my rough start for the code
thanks in advance for any help.
Pete
Attached Files
File Type: txt HSL.txt (1.6 KB, 1 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC