× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Well, that also shows how much I know about Spring :-). I didn't know they
had a tag library.

I am by no means an expert. I keep learning something about Java each day. I
would strongly advise not use the <%%> tags though. I created an intranet
site at the last place I worked that used Java code and <%%> all over the
pages. It was my first attempt at Java/JSP coding and it's now just a mess!

Take a look at the JSTL tags and the expression language (EL). It will give
you MUCH cleaner pages.
Simple output:
<%= myClass.getValue() %>

Using JSTL tags and EL:
<c:out value="${myClass.value}" />

For loop:
<% for (String string : myClass.getMyList) { %>
<%= string %><br>
<% } %>

Using JSTL and EL:
<c:forEach var="string" items="${myClass.myList}">
<c:out value="${string}" /><br>
</c:forEach>

--
James R. Perkins


On Tue, Mar 3, 2009 at 11:07, James Rich <james@xxxxxxxxxxx> wrote:



That shows just how green I am! Spring does include a tag library for
forms, so it does provide some of the same things as JSF. Tag libraries
are something I'm just getting into - I've been coding all my JSP using <%
%> and writing java code.

James Rich

if you want to understand why that is, there are many good books on
the design of operating systems. please pass them along to redmond
when you're done reading them :)
- Paul Davis on ardour-dev


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.