Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could anyone tell me why these jstl conditions are failing?

 
Alan Smith
Ranch Hand
Posts: 185
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am testing the functionality of jstl and can't seem to get the if and choose statements to evaluate. On one page all I have is a form using GET, with an input text field with a value of fullName and a submit button. Heres the body section of the jsp for the output page which is forwarded through a servlet:



For some reason the first line reads when I enter 'Alan' in the input field but the two conditions don't evaluate to true. Any reason why this is happening? The first line is reading ${param.fullName} and returning 'Hello Alan.' in the <p> block. Why aren't the others working?

Thanks,
Alan
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL working?
 
Alan Smith
Ranch Hand
Posts: 185
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:JSTL working?

It is now, i got it working :)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic