File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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 :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could anyone tell me why these jstl conditions are failing?
 
Similar Threads
Color Table Rows Based on a Field Value
Can't conditionally exclude parts of Struts page
Implementation of google charts in JSP
how to avoid show buttons
tomcat-users.xml login