Results 1 to 3 of 3
- 12-06-2008, 08:53 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 85
- Rep Power
- 0
JSTL: Help in displaying a particular element
Hello! I have the below code where I want to display a specific element from the words array. I tried showing a specific element by using items="${words[2]}" but that threw an error.
Can you please help
Java Code:<% String[] words = { "foo", "bar", "baz"}; pageContext.setAttribute("words", words); %> <%@ taglib prefix="c" uri="<//java sun url here>" %> <H2>Key Words:</H2> <c:out value="${words[2]}"/>
- 12-07-2008, 12:33 AM #2
Javascript ?
Are we talking about Javascript here? Because
This is a Java development forum. If somebody knows the answer to your problem, I'm sure that they will help you out. If you don't get an answer fast, you would probably have better luck at a javascript forum.Java Code:java != javascript;
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 12-08-2008, 07:57 AM #3
Member
- Join Date
- Sep 2008
- Posts
- 85
- Rep Power
- 0
Similar Threads
-
jstl in jsp
By nagaprasanna in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-18-2008, 08:18 AM -
JSTL forEach Query
By wonderpets in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 07-14-2008, 06:35 PM -
Iterating through result set in JSTL
By Java Tip in forum Java TipReplies: 0Last Post: 01-15-2008, 03:13 PM -
Iterating through result set in JSTL
By Java Tip in forum Java TipReplies: 0Last Post: 01-14-2008, 09:31 AM -
JSTL error
By Eric in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 06-11-2007, 09:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks