Custom JSP tag. This tag lets you request stock quotes from the Net (http://finanace.yahoo.com) and proceed extracted values in your JSP pages. For example:
<%@ taglib uri="taglib.tld" prefix="get" %> <html> <get:Quote symbol="JAVA" id="A" /> Last trade: <%=A.get(2)%> <%=A.get(3)%> Last value: <%=A.get(1)%> Change: <%=A.get(4)%> Volume: <%=A.get(8)%> Chart: <img src="<%=A.get(9)%>"/> </html> Tags are: Quote Extracts stock quote for the given symbol. Tag stores extracted values in the page scope array list. Parameters are: 1) symbol stock symbol
for downloading: Library: quotetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|