Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: looping through System.getProperties()?

Pradyut Bhattacharya

2006-09-22

Replies:

no offence but
my request is to please try it out and the other group members also...


On 9/22/06, josh hughes <josh@(protected):
>
> 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 listserv@(protected)
> JSP-INTEREST".
> For digest: mailto listserv@(protected)
> 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
>



--
Pradyut
http://www.myjavaserver.com/~pradyut/pradyut.htm
http://oop-edge.blogspot.com/
http://pradyutb.blogspot.com/
http://praddy-photos.blogspot.com/
http://oop-edge.spaces.live.com/
http://www.flickr.com/photos/praddy
http://groups.google.com/group/oop_programming
India

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

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
©2008 junlu.com - Jax Systems, LLC, U.S.A.