Josh, check the following url: http://www.activsoftware.com/code_samples/code.cfm/CodeID/137/Java/Enumerating_the_System_Properties_in_JSP
Ramesh Kadirisani. josh hughes wrote:
Hello, Could anyone help me complete my first jsp tutorial. I must admit, I am very new to JSP, although I have a reasonable understanding of Actionscript, PHP, HTML, CFML and a bit of Objective- C (so jsp seemed like a natural progression). I'm trying to follow a tutorial found at http://www.jsptut.com/ Mixing.jsp So far I have worked through each tut without to many problems, until I hit the exercise at the bottom of the above page. The exercise asks me to "Write a JSP to output all the values returned by System.getProperties with "<BR>" embedded after each property name and value. Do not output the "<BR>" using the "out" variable." I have no problems printing the values returned by the System.getProperties() call, but the exercise seems to ask me to loop through the result, embedding a <br> after each item!?. I take it I must somehow convert the result to an array that I can then loop through, adding the <br> after each cycle!?. I have tried converting the result using; String myArray[] = <%= System.getProperties()%> but to no avail. can anyone tell me if I'm understanding the exercise correctly and if so, maybe point my in the right direction as I'm running out of hair to pull out!!? many thanks in advance. josh. P.S sorry if my terminology isn't 100%. i plead ignorance! =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com