9 thoughts on “Servlets

    • for a normal (good) user there is no need and no benefit if is disables script in web browser..for hackers there is chance of doing malfunctions to particular web application by disabling script in browser if that particular web application is not developed using proper secure validations……

      The main thing is if we disable java script in our browser window client side validations(like checking username and password is having particular constraints are not) will not be taken place..

      Hope you understood the scenario..for more details you can refer Struts validations notes of nataraz sir there he had given a very good explanation recording all these things..

    • You need to use AJAX concept here.
      At page load,you call a method who internally uses ajax to interact with the db and fetches all the country list,and populates it to country dropdown box.
      When the user select something from dropdown,(on change event),call another function which internally uses AJAX to fetch all state related to that country.
      and populates it to state table.
      When user selects 1 state from the list,again 1 more Ajax call,which will internally bring all the districts of that part state and populates it to district combo box.

      other wise,in a single ajax call,you can return all the country and their state and their districts.(it will be little slow,but one time process)
      Hope this helps

  1. sir ,i’m getting this error when i run the application’s

    WARNING: Failed to register in JMX: javax.naming.NamingException: Could not crea
    te resource factory instance [Root exception is java.lang.ClassNotFoundException
    : org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]

Leave a Reply