This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Could anyone tell me why these jstl conditions are failing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Could anyone tell me why these jstl conditions are failing?" Watch "Could anyone tell me why these jstl conditions are failing?" New topic
Author

Could anyone tell me why these jstl conditions are failing?

Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152

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

Joined: Jan 28, 2008
Posts: 5575

JSTL working?
Alan Smith
Ranch Hand

Joined: Oct 19, 2011
Posts: 152

Seetharaman Venkatasamy wrote:JSTL working?

It is now, i got it working :)
 
Consider Paul's rocket mass heater.
 
subject: Could anyone tell me why these jstl conditions are failing?