Using Freemarker template for Creating Custom UI

  • FreeMarker is a template engine; a generic tool to generate text output
  • Creating Own Components Using FTL
  • Eg. Creating Password Field Using FTL NOTE : Store your FTL File in public-html template finnonepro
  • Calling FTL using <s:component tag> , place in JSP File
IOC (Inversion of Control) and DI (Dependency Injection)
  • IOC and DI are programming design patterns, which are used to reduce coupling in programming.
  • It follow the Following Principle:
    • You do not need to create your objects.
    • You need to only describe how they should be created. (This think is done by ObjectFactory)
To enable the IOC in Struts
Using an Enabler Interface Eg. SessionAware, ApplicationAware etc.
LoginAction.jsp file