MVC : Struts : Java : Industry Web Application #Java Short Notes

Industries use frameworks for application development quite often. For example: Java concepts like JSP, Servlet, Swing, Bean, JDBC can be used directly to create web-applications but when such applications become big, it becomes difficult to maintain and develop them further. Hence, frameworks like struts are used to develop large web-based Java applications. This makes maintenance and further development easier. If you need to write a very simple web application with a few pages, then you might consider using JSP/Servlet directly otherwise Struts like frameworks are better options.Struts-1 uses the concept Model View Architecture (MVC) and provides the controller. In MVC model, Model represents business logic, View represents user interfaces, and Controller represents/controls control flow of the application. Struts' control layer is based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Apache Commons  packages, like BeanUtils and Chain of Responsibility. For the Model,  struts-1 framework can interact with standard data access technologies, like JDBC  and EJB,  as well as most any third-party packages, like Hibernate,  iBATIS,  or Object Relational Bridge.  For the View,  the framework works well with JavaServer Pages,  including JSTL and JSF,  as well as  Velocity Templates,  XSLT,  and other presentation systems.The framework's Controller acts as a bridge between the application's Model and the web View. When a request is received, the Controller invokes an Action  class. The Action class consults with the Model to examine or update the application's state. The framework provides an ActionForm  class to help transfer data between Model and View.Struts-1 Configuration-----------------------web.xml is one of the configuration files. It is an XML-formatted file that works as a deployment descriptor. struts-config.xml is another resource file to initialize the applications resources. These resources include  ActionForms  to collect input from users,  ActionMappings  to direct input to server-side  Actions,  and ActionForwards to select output pages.Sample struts-config.xml file.                                                                                                                                                                                        Other resources like Validators can be initialized here.

From: http://sitestree.com/?p=4787
Categories:Java Short Notes
Tags:
Post Data:2010-03-13 02:59:40

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Java XML Example – XML File Parse and Use Attributes #Java Short Notes

From: http://sitestree.com/?p=4776
Categories:Java Short Notes
Tags:
Post Data:2009-07-22 04:37:22

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

Opening and reading files with Java JDK 1.0.x #Java Short Notes

   1. Open the file with the File class;   2. Create a FileInputStream object using the File object;   3. Convert the FileInputStream to a BufferedInputStream to greatly increase file reading speed;   4. Convert the BufferedInputStream to a DataInputStream; the methods of DataInputStream        give a fair amount of flexibility in        reading the data.   5. Read the file until the endFile f = new File("mydata.txt"); FileInputStream fis = new FileInputStream(f); BufferedInputStream bis = new BufferedInputStream(fis); DataInputStream dis = new DataInputStream(bis);  String record = null; try {    while ( (record=dis.readLine()) != null ) {       //       // put your logic here to work with "record"       //    } } catch (IOException e) {    //    // put your error-handling code here    // } 

From: http://sitestree.com/?p=4775
Categories:Java Short Notes
Tags:
Post Data:2007-12-31 19:48:19

Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada

#Engineering: #Canada: #Job/Contract/Project: Any #Engineering: #Computer, #Electrical, #Electronics, #Civil, #Chemical, #Mechanical, #Naval, #Biomedical, and misc Engineering

Date Posted:2021-07-17 .Apply yourself, or submit others as candidates; Build a recruitment team to submit others as candidates; submit RFP to be considered for projects in future; Try to become a vendor so that you are asked to submit consultants/resources in future. If these work for you. This list is posted in this blog everyday provided there are new projects under the criteria

  1. construction-services-10004
  2. REGINA SOUTH SWITCHING STATION – CIVIL WORKS
  3. ET Kenney Electrical Upgrades
  • electrical-and-electronics-10006
  • Electrical Products (Door Locks) (W3330-22-111)
  • Electrical Wire Products
  • Fleet Lighting and Electrical Components
  • transportation-equipment-and-spares-10029
  • Fleet Lighting and Electrical Components
  • architect-and-engineering-services-10048
  • Install Doorway to Mechanical Pit for Elevator Maintenance
  • If & As Required Geotechnical Engineering Review Services
  • Professional Engineering Services – Street Reconstruction No. 4
  • Project Electrical Engineer- Peak Shavers NF 91 Project
  • RQQ-2020-NAFA-487: Engineering Services for Mount Joy Passing Track
  • Engineering Services-Brown Street, Sydney Mines-Waterline Upgrade
  • Engineering Services, CS 2-20 Twinning, North of Prince Albert
  • Engineering Design and Contract Admin Services for Riverside Lift Station
  • environmental-services-10050
  • If & As Required Geotechnical Engineering Review Services
  • Prime Consultant Landscape Architecture or Civil Engineering Consultant Services for David Thompson Corridor Infrastructure Safety Upgrades
  • natural-resources-services-10051
  • SP22TED251 – Mechanical Site Preparation – Excavator – Kamloops
  • Mechanical Site Preparation – Excavator – Kamloops Field Team
  • operation-of-government-owned-facilities-10039
  • Engineering Services for Intersection Improvement Program
  • professional-administrative-and-management-support-services-10040
  • If & As Required Geotechnical Engineering Review Services
  • Engineering Advanced Design Gap Analysis Consulting Services
  • research-and-development-r-d-10036
  • Software reverse engineering prototypes development (W7701-217332/A)
  • Engineering Services for Intersection Improvement Program
  • special-studies-and-analysis-not-r-d-10047
  • Engineering and Architectural Services
  • undefined-10055
  • RQQ-2020-NAFA-487: Engineering Services for Mount Joy Passing Track
  • Keywords Used:engineer,civil,mechanical,electrical,electronics,mechatronics,naval,biomedical,computer engineer,software engineer,civil engineer,biomedical,electrical engineer,electronics engineer,mechanical engineer,metallurgical,chemical engineer,industrial engineer,communications engineer,quality assurance engineer,Aerospace engineer,aeronautical engineer,Engineering manager,Agricultural Engineer,Automotive Engineer,Environmental Engineer,Geological Engineer,Marine Engineer,Petroleum Engineer,Acoustic Engineer,Acoustic Engineer,Aerospace Engineer,Agricultural Engineer,Applied Engineer,Architectural Engineer,Audio Engineer,Automotive Engineer,Biomedical Engineer,Chemical Engineer,Civil Engineer,Computer Engineer,Electrical Engineer,Environmental Engineer,Industrial Engineer,Marine Engineer,Materials Science Engineer,Mechanical Engineer,Mechatronic Engineer,Mining and Geological Engineer,Molecular Engineer,Nanoengineering,Nuclear Engineer,Petroleum Engineer,Software Engineer,Structural Engineer,Telecommunications Engineer,Thermal Engineer,Transport Engineer,Vehicle Engineer,engineering

    #Canada: #IT Jobs:#Consultants, #Contractors, #Analysts, #Engineers, #Developers, #Technology Consultants, #IT-Consultants Opportunities2021-07-17

    Apply yourself, or submit others as a candidate, Build a recruitment team to submit others as a candidate, submit RFP to be considered for projects in future, Try to become a vendor so that you are asked to submit consultants/resources in future

    1. edp-hardware-and-software-10034
    2. Project: tender_15205 – 21-004P Cloud-Based Web Services
    3. energy-10007
    4. Source List (SL) for Environmental Consulting Services
    5. Prime Consultant for Main Building Foundation Repairs & Site Grading
    6. architect-and-engineering-services-10048
    7. Consulting Services: Archibald Drive Storm Sewers
    8. communications-photographic-mapping-printing-and-publication-services-10042
    9. Environmental and Survey Consultant Services for Highway-774 Wildlife Road Crossing Study and Fence Line Survey
    10. educational-and-training-services-10043
    11. Assessment Consulting Service for the Assured Income for the Severely Handicapped (AISH) Program for the Province of Alberta
    12. Anti-Racism & Anti-Discrimination Exploratory Working Group (AREWG) Consultant
    13. environmental-services-10050
    14. Environmental and Survey Consultant Services for Highway-774 Wildlife Road Crossing Study and Fence Line Survey
    15. Prime Consultant Landscape Architecture or Civil Engineering Consultant Services for David Thompson Corridor Infrastructure Safety Upgrades
    16. financial-and-related-services-10038
    17. Group Insurance Consulting (EP899-220446/A)
    18. RQQ-2020-FACA-499: VOR + 2nd Stage- Provide Accounting & Tax Consulting Services
    19. Request for Proposal (RFP) for Actuarial and Pension Consulting Services
    20. information-processing-and-related-telecommunications-services-10049
    21. Project: tender_15205 – 21-004P Cloud-Based Web Services
    22. REFONTE DES SITES WEB
    23. professional-administrative-and-management-support-services-10040
    24. Engineering Advanced Design Gap Analysis Consulting Services
    25. Prime Consultant Services for Brantford Police Services Headquarters Retrofit and Expansion
    26. special-studies-and-analysis-not-r-d-10047
    27. CONSULTING SERVICES FOR STREETSCAPE ASSESSMENT
    28. Anti-Racism & Anti-Discrimination Exploratory Working Group (AREWG) Consultant
    29. Consulting Services – Construction Material Salvage & Recycling Market Assessment
    30. #Sensor: #Canada: #Job/Contract/Project: #Sensor, #Tracking, #Fusion, #Estimation, #Surveillance, #sensor network, #target #tracking, #security 2021-07-17

      Date Posted:2021-07-17 .Apply yourself, or submit others as candidates; Build a recruitment team to submit others as candidates; submit RFP to be considered for projects in future; Try to become a vendor so that you are asked to submit consultants/resources in future. If these work for you. This list is posted in this blog everyday provided there are new projects under the criteria

      1. armament-10027
      2. Signal Smoke Marine, Orange (W8486-217390/A)
      3. communications-detection-and-fibre-optics-10031
      4. LEED Recognition Display
      5. construction-products-10032
      6. LEED Recognition Display
      7. electrical-and-electronics-10006
      8. LEED Recognition Display
      9. Surveillance of Space 2 RFI (W8474-187639/C)
      10. fire-fighting-security-and-safety-equipment-10010
      11. Smart Anti-Loitering and Security System
      12. textiles-and-apparel-10028
      13. LEED Recognition Display
      14. architect-and-engineering-services-10048
      15. RFP – Building Perimeter – Access Point Security
      16. communications-photographic-mapping-printing-and-publication-services-10042
      17. LEED Recognition Display
      18. custodial-operations-and-related-services-10037
      19. LEED Recognition Display
      20. environmental-services-10050
      21. LEED Recognition Display
      22. information-processing-and-related-telecommunications-services-10049
      23. LEED Recognition Display
      24. research-and-development-r-d-10036
      25. ITS Operational Security Services
      26. utilities-10041
      27. LEED Recognition Display
      28. Keywords Used:sensor,fusion,sensor network,tracking,target tracking,surveillance,self driving car,self-driving,estimation,security,signal processing,image processing,autonomouse vehicle,facial recognition,signal,recognition,sensor fusion

        #Sensor: #Canada: #Job/Contract/Project: #Sensor, #Tracking, #Fusion, #Estimation, #Surveillance, #sensor network, #target #tracking, #security 2021-07-17

        Date Posted:2021-07-17 .Apply yourself, or submit others as candidates; Build a recruitment team to submit others as candidates; submit RFP to be considered for projects in future; Try to become a vendor so that you are asked to submit consultants/resources in future. If these work for you. This list is posted in this blog everyday provided there are new projects under the criteria

        1. armament-10027
        2. Signal Smoke Marine, Orange (W8486-217390/A)
        3. communications-detection-and-fibre-optics-10031
        4. LEED Recognition Display
        5. construction-products-10032
        6. LEED Recognition Display
        7. electrical-and-electronics-10006
        8. LEED Recognition Display
        9. Surveillance of Space 2 RFI (W8474-187639/C)
        10. fire-fighting-security-and-safety-equipment-10010
        11. Smart Anti-Loitering and Security System
        12. textiles-and-apparel-10028
        13. LEED Recognition Display
        14. architect-and-engineering-services-10048
        15. RFP – Building Perimeter – Access Point Security
        16. communications-photographic-mapping-printing-and-publication-services-10042
        17. LEED Recognition Display
        18. custodial-operations-and-related-services-10037
        19. LEED Recognition Display
        20. environmental-services-10050
        21. LEED Recognition Display
        22. information-processing-and-related-telecommunications-services-10049
        23. LEED Recognition Display
        24. research-and-development-r-d-10036
        25. ITS Operational Security Services
        26. utilities-10041
        27. LEED Recognition Display
        28. Keywords Used:sensor,fusion,sensor network,tracking,target tracking,surveillance,self driving car,self-driving,estimation,security,signal processing,image processing,autonomouse vehicle,facial recognition,signal,recognition,sensor fusion

          #Engineering: #Canada: #Job/Contract/Project: Any #Engineering: #Computer, #Electrical, #Electronics, #Civil, #Chemical, #Mechanical, #Naval, #Biomedical, and misc Engineering

          Date Posted:2021-07-17 .Apply yourself, or submit others as candidates; Build a recruitment team to submit others as candidates; submit RFP to be considered for projects in future; Try to become a vendor so that you are asked to submit consultants/resources in future. If these work for you. This list is posted in this blog everyday provided there are new projects under the criteria

          1. construction-services-10004
          2. ET Kenney Electrical Upgrades
        29. electrical-and-electronics-10006
        30. Electrical Products (Door Locks) (W3330-22-111)
        31. Electrical Wire Products
        32. Fleet Lighting and Electrical Components
        33. transportation-equipment-and-spares-10029
        34. Fleet Lighting and Electrical Components
        35. architect-and-engineering-services-10048
        36. Install Doorway to Mechanical Pit for Elevator Maintenance
        37. If & As Required Geotechnical Engineering Review Services
        38. Professional Engineering Services – Street Reconstruction No. 4
        39. Project Electrical Engineer- Peak Shavers NF 91 Project
        40. RQQ-2020-NAFA-487: Engineering Services for Mount Joy Passing Track
        41. Engineering Services-Brown Street, Sydney Mines-Waterline Upgrade
        42. Engineering Services, CS 2-20 Twinning, North of Prince Albert
        43. Engineering Design and Contract Admin Services for Riverside Lift Station
        44. environmental-services-10050
        45. If & As Required Geotechnical Engineering Review Services
        46. Prime Consultant Landscape Architecture or Civil Engineering Consultant Services for David Thompson Corridor Infrastructure Safety Upgrades
        47. natural-resources-services-10051
        48. SP22TED251 – Mechanical Site Preparation – Excavator – Kamloops
        49. Mechanical Site Preparation – Excavator – Kamloops Field Team
        50. operation-of-government-owned-facilities-10039
        51. Engineering Services for Intersection Improvement Program
        52. professional-administrative-and-management-support-services-10040
        53. If & As Required Geotechnical Engineering Review Services
        54. Engineering Advanced Design Gap Analysis Consulting Services
        55. research-and-development-r-d-10036
        56. Software reverse engineering prototypes development (W7701-217332/A)
        57. Engineering Services for Intersection Improvement Program
        58. special-studies-and-analysis-not-r-d-10047
        59. Engineering and Architectural Services
        60. undefined-10055
        61. RQQ-2020-NAFA-487: Engineering Services for Mount Joy Passing Track
        62. Keywords Used:engineer,civil,mechanical,electrical,electronics,mechatronics,naval,biomedical,computer engineer,software engineer,civil engineer,biomedical,electrical engineer,electronics engineer,mechanical engineer,metallurgical,chemical engineer,industrial engineer,communications engineer,quality assurance engineer,Aerospace engineer,aeronautical engineer,Engineering manager,Agricultural Engineer,Automotive Engineer,Environmental Engineer,Geological Engineer,Marine Engineer,Petroleum Engineer,Acoustic Engineer,Acoustic Engineer,Aerospace Engineer,Agricultural Engineer,Applied Engineer,Architectural Engineer,Audio Engineer,Automotive Engineer,Biomedical Engineer,Chemical Engineer,Civil Engineer,Computer Engineer,Electrical Engineer,Environmental Engineer,Industrial Engineer,Marine Engineer,Materials Science Engineer,Mechanical Engineer,Mechatronic Engineer,Mining and Geological Engineer,Molecular Engineer,Nanoengineering,Nuclear Engineer,Petroleum Engineer,Software Engineer,Structural Engineer,Telecommunications Engineer,Thermal Engineer,Transport Engineer,Vehicle Engineer,engineering

          #Canada: #IT Jobs:#Consultants, #Contractors, #Analysts, #Engineers, #Developers, #Technology Consultants, #IT-Consultants Opportunities2021-07-17

          Apply yourself, or submit others as a candidate, Build a recruitment team to submit others as a candidate, submit RFP to be considered for projects in future, Try to become a vendor so that you are asked to submit consultants/resources in future

          1. edp-hardware-and-software-10034
          2. Project: tender_15205 – 21-004P Cloud-Based Web Services
          3. energy-10007
          4. Source List (SL) for Environmental Consulting Services
          5. Prime Consultant for Main Building Foundation Repairs & Site Grading
          6. architect-and-engineering-services-10048
          7. Consulting Services: Archibald Drive Storm Sewers
          8. communications-photographic-mapping-printing-and-publication-services-10042
          9. Environmental and Survey Consultant Services for Highway-774 Wildlife Road Crossing Study and Fence Line Survey
          10. educational-and-training-services-10043
          11. Assessment Consulting Service for the Assured Income for the Severely Handicapped (AISH) Program for the Province of Alberta
          12. Anti-Racism & Anti-Discrimination Exploratory Working Group (AREWG) Consultant
          13. environmental-services-10050
          14. Environmental and Survey Consultant Services for Highway-774 Wildlife Road Crossing Study and Fence Line Survey
          15. Prime Consultant Landscape Architecture or Civil Engineering Consultant Services for David Thompson Corridor Infrastructure Safety Upgrades
          16. financial-and-related-services-10038
          17. Group Insurance Consulting (EP899-220446/A)
          18. RQQ-2020-FACA-499: VOR + 2nd Stage- Provide Accounting & Tax Consulting Services
          19. Request for Proposal (RFP) for Actuarial and Pension Consulting Services
          20. information-processing-and-related-telecommunications-services-10049
          21. Project: tender_15205 – 21-004P Cloud-Based Web Services
          22. REFONTE DES SITES WEB
          23. professional-administrative-and-management-support-services-10040
          24. Engineering Advanced Design Gap Analysis Consulting Services
          25. Prime Consultant Services for Brantford Police Services Headquarters Retrofit and Expansion
          26. special-studies-and-analysis-not-r-d-10047
          27. CONSULTING SERVICES FOR STREETSCAPE ASSESSMENT
          28. Anti-Racism & Anti-Discrimination Exploratory Working Group (AREWG) Consultant
          29. Consulting Services – Construction Material Salvage & Recycling Market Assessment
          30. Set, TreeSet, Iterator in Java #Java Short Notes #Blog

            /* * TreeSetExample.java * *Illustrates mathematical set operations * * Created on January 10, 2008, 9:28 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package treesetexample;import java.util.Set;import java.util.TreeSet;import java.util.Iterator;/** * * @author Sayed */public class TreeSetExample {        /** Creates a new instance of TreeSetExample */    public TreeSetExample() {    }        //example set operations      public static void treeSetOperations() {        final int MAXIMUM = 20;        //create a TreeSet        Set ss = new TreeSet();        //store data in the set, set can contain only one type of data        for (int i = 0; i < MAXIMUM; i++) {            System.out.println("  - Storing Data(" + i + ")");            ss.add(new Integer(i));        }        //display set data using an iterator        Iterator it = ss.iterator();        while (it.hasNext()) {            System.out.println(it.next());        }    }            /**     * @param args the command line arguments     */    public static void main(String[] args) {        // TODO code application logic here        TreeSetExample treeSet = new TreeSetExample();        treeSet.treeSetOperations();    }    }

            From: http://sitestree.com/?p=4789
            Categories:Java Short Notes, Blog
            Tags:
            Post Data:2013-06-23 13:04:36

            Shop Online: https://www.ShopForSoul.com/
            (Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
            In Bengali: http://Bangla.SaLearningSchool.com
            http://SitesTree.com
            8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
            Shop Online: https://www.ShopForSoul.com/
            Medium: https://medium.com/@SayedAhmedCanada