Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About the custom actions!!!

 
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 )
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!