Category: FromSitesTree.com

JSF: Lesson – 4: Accessing Context Data from Beans #Java Short Notes

In some cases, from the beans used in JSF applications, you will need to access the request parameters. For example, in the BusSearch.java, we accessed, the request parameters [Please check the previous JSF lesson]. How to access: FacesContext context = FacesContext.getCurrentInstance(); Some methods of FacesContext: Map getApplicationMap() String getInitParameter(java.lang.String name) Map getInitParameterMap() String getRemoteUser() Map …

Continue reading

JSF: Lesson – 5: Converting Data #Java Short Notes

Sample application for JSF Data Type Converter Video Tutorial for JSF Data Type Converter Pre-requisite: JSF Lesson 1, 2, 3, 4 JSF provides two different types of built-in data type converters such as: String and Date Conversion, Number and String Conversion. Related tags: f:convertDateTime, f:convertNumber, f:converter In our previous examples, we could accept departing and …

Continue reading

JSF: Lesson – 6: Validating User Input in JSF #Java Short Notes

Target: Intermediate level web-developers. Sample application for this article Video Tutorial for this article In web-application development, validating user inputs takes much efforts. JSF has made validations much easier than usual JSF Built-in Validators: validateDoubleRange: Checks that the value provided is a double value. You can also set a minimum and a maximum. validateLongRange: Validates …

Continue reading

Struts 2 vs. Struts 1 #Java Short Notes

Please check the following resources: Struts 2: Configuration Elements Struts 1 vs Struts 2 Migrating from Struts 1 to Struts 2 Comparing Struts 1 and 2 From: http://sitestree.com/?p=4987 Categories:Java Short NotesTags: Post Data:2008-11-22 05:09:37 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) …

Continue reading

Key J2EE Components : Basic Concepts with Examples #Java Short Notes

Java EE 5 (J2EE 5) uses XML deployment descriptors for the configuration of the web-applications and web-components. What Java EE provides? It provides the internal framework/structure/system level capability/system-level infrastructure to support large enterprise level applications with features like distributed database, distributed computing , security, and transaction management. J2EE also provides specifications for Containers, Connectors, Interfaces, …

Continue reading

JSF: Lesson – 1: JSF Specifications #Java Short Notes

Video Demonstration of a sample JSF application create: Read the article first JSF Specifications JSF is not standalone technology, you have to use it in conjunction with JSPs, Servlets, EJBs How to use JSF with Servlets and EJBs: In Servlet or EJB, explicitly create instances of UI components and use the UI classes directly JSF …

Continue reading

JSF: Lesson – 2: JSF Managed Beans #Java Short Notes

Codes for this article Video Demonstration for this article Target: Intermediate level programmers and web-developers. Any programmer/web-developer can take a look. Pre-requisite: HTML, JSP, Servlet, Tomcat, J2EE, MVC, and JSF Introduction. Check the corresponding sections of this web-site, to have an idea on the required technology knowledge Pre-requisite: Download this sample JSF application Beans used …

Continue reading

Step By Step Video Tutorial: Struts-based Java Web Application Development #Java Short Notes

Please follow the link to see a list of training videos on Struts. And watch them. Step By Step Video Tutorial: Struts-based Java Web Application Development From: http://sitestree.com/?p=4986 Categories:Java Short NotesTags: Post Data:2010-06-21 20:35:21 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) …

Continue reading

Creating Java Development Environment with Struts for Your Home PC #Java Short Notes

Creating Java Development Environment with Struts for Your Home PC…………………….. Why Struts? Just take a look at the web-sites using Struts J2EE does not meet all the requirements for web-applications. Struts addresses these requirements. Check this article for details Components Required J2SE 5/6 or J2EE 5 – both JRE and JDK Tomcat 5.5/6 – web-server …

Continue reading

J2EE Architecture: J2EE Design Patterns: Related Concepts #Java Short Notes

Design Patterns What are design patterns? Design patterns are specific/(context-based) solutions/approaches to address specific problems/situations. Some problems are general/open problems and very common problems in a particular type of applications. Design patterns can be created to solve such problems in a specific context and that can be re-used every time that type of situations arise. …

Continue reading