471,066 Members | 935 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

if in JSTL

dmjpro
2,476 2GB
look at my code ......

Expand|Select|Wrap|Line Numbers
  1. <jsp:usebean id = "test" scope = "page" class="java.lang.String"/>
  2. <c:if test = "test.length()==0">
  3. <H1>Welcome JSTL</h1>
  4. <!--This portion is not executed-->
  5. </c:if>
  6.  
here c is the prefix.
So JSTL experts ... Plz explain why the <H1>Welcome JSTL</H1> is not executed?

Kind regards,
Dmjpro.
Jun 20 '07 #1
2 2609
r035198x
13,262 8TB
look at my code ......

Expand|Select|Wrap|Line Numbers
  1. <jsp:usebean id = "test" scope = "page" class="java.lang.String"/>
  2. <c:if test = "test.length()==0">
  3. <H1>Welcome JSTL</h1>
  4. <!--This portion is not executed-->
  5. </c:if>
  6.  
here c is the prefix.
So JSTL experts ... Plz explain why the <H1>Welcome JSTL</H1> is not executed?

Kind regards,
Dmjpro.
Dj, you need to improve on selecting thread titles. The title must relate as much as possible to the problem.
I've renamed this one.
Jun 20 '07 #2
JosAH
11,448 Expert 8TB
look at my code ......

Expand|Select|Wrap|Line Numbers
  1. <jsp:usebean id = "test" scope = "page" class="java.lang.String"/>
  2. <c:if test = "test.length()==0">
  3. <H1>Welcome JSTL</h1>
  4. <!--This portion is not executed-->
  5. </c:if>
  6.  
here c is the prefix.
So JSTL experts ... Plz explain why the <H1>Welcome JSTL</H1> is not executed?

Kind regards,
Dmjpro.
Well 'test' is a String, you've declared it so in your first line. The length of test
isn't equal to zero apparently. You know about your own 'test' variable, not me.

kind regards,

Jos
Jun 20 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Michael Alers | last post: by
reply views Thread by SOAP | last post: by
1 post views Thread by Brent Eamer | last post: by
2 posts views Thread by steve | last post: by
4 posts views Thread by Manuel | last post: by
dmjpro
reply views Thread by dmjpro | last post: by
dmjpro
1 post views Thread by dmjpro | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.