This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps 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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 150

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: 150

Seetharaman Venkatasamy wrote:JSTL working?

It is now, i got it working :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could anyone tell me why these jstl conditions are failing?
 
Similar Threads
Implementation of google charts in JSP
tomcat-users.xml login
how to avoid show buttons
Can't conditionally exclude parts of Struts page
Color Table Rows Based on a Field Value