• Post Reply Bookmark Topic Watch Topic
  • New Topic

About the custom actions!!!  RSS feed

 
Amitkumar Dhama
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1-->>Hi can any body tell me if will set the Attribute of <c:forEach> action say

1.begin < 0;
2.step = 0;

what will be the result???

2-->>if <c therwise> comes before <c:when>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:forEach>

Constraints
1. If specified, begin must be >= 0.
2. If end is specified and it is less than begin, the loop is simply not executed.
3. If specified, step must be >= 1

1.begin < 0;
javax.servlet.ServletException: 'begin' < 0

2.step = 0;
javax.servlet.ServletException: 'step' <= 0

<c therwise>

Constraints
1. Must have <c:choose> as an immediate parent.
2. Must be the last nested action within <c:choose>.

If you put it before <c:when>, then :
org.apache.jasper.compiler.DefaultErrorHandler.jspError
(with a message saying that the when tag should not be set after the otherwise tag )
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!