× 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.



Actually, you don't need the c:out unless there are additional attributes you
want to specify.

${string} means the same as <c:out value="${string}" /> since J2EE 1.4.
________________________________________
From: web400-bounces@xxxxxxxxxxxx [web400-bounces@xxxxxxxxxxxx] On Behalf Of James Perkins [jrperkinsjr@xxxxxxxxx]
Sent: Tuesday, March 03, 2009 2:24 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Developing a webapplication with JSF/J2EE: where do I start?

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

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


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.