On Tue, 1 Apr 2003, julien viet wrote:

> I dont't want to reinvent a scripting language, but JSP are
> not adapted to nukes at all. I think the nicest feature of
> JSP is the possibility to embed true java code whithin text :
> 
> <TABLE><TR>
> <% for (int i = 0;i < 5;i++) { %>
> <TD><%= i %></TD>
> <% } %>
> </TR>
> </TABLE>

Ok, but what about JSTL?

<table><tr>
<c:forEach  var="i" begin="0" end="4">
  <td><c:out value="${i}"/></td>
</c:forEach>
</tr></table>

Isn't such code a bit nicer?

And if you want to restrict users a little bit, you can
do it with Tag Library Validators (part of JSTL specs).

Pavel




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to