aspose file tools*
The moose likes JSP and the fly likes else condition is not working, for unchecked checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "else condition is not working, for unchecked checkbox" Watch "else condition is not working, for unchecked checkbox" New topic
Author

else condition is not working, for unchecked checkbox

sanidhya kumar
Greenhorn

Joined: Sep 05, 2012
Posts: 18
Please see the line number 40, it is not getting executed
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

WHen you add System.out.println("check"), does it always print out "on"? Even if the checkbox isn't checked. If so, show the line of HTML that goes with that checkbox.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
sanidhya kumar
Greenhorn

Joined: Sep 05, 2012
Posts: 18
Yeah, problem got resolved.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: else condition is not working, for unchecked checkbox
 
Similar Threads
How this code can be improved?
jsp + html: only this jsp javascript code is not working
Value in the else condition is getting printed as the page loads
how to getSession in simple java class?
Value in the else condition is getting printed as the page loads