• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Field validation with directive

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cabecalho.html




Exercicio.jsp




Exercicio19.js





Exercicio19.jsp





rodape.html


project (eclipse) https://www.dropbox.com/s/9nctwcu0y2aoacr/Exercicio19.rar

Server validation always invalid by the Directive because?

Note: This is an exercise in college
 
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the ranch Roberto. :) I could not understand what your doubt is. Can you explain in some more detail as to exactly what is the problem that you are facing?
 
Roberto Alves Pereira
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1 - Run the application
2 - Enter number 1 (beginning)
3 - Digita number 2 (end)

Server validation if number1 <0 | | number2> 20 return false

The program never returns true
The program comes in is always returns false


Sorry for english mistakes, I am beginner
 
Mansukhdeep Thind
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't apologize. I can tell by your name that you are of Hispanic descent. :)
 
Mansukhdeep Thind
Ranch Hand
Posts: 1164
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your method is :



I debugged and saw that it is written to return false if the numbers are either <0 or > 21. How can you expect it to work otherwise? :)
 
reply
    Bookmark Topic Watch Topic
  • New Topic