Month: September 2015

Uploading files in Struts

Uploading files in Struts Struts has default interceptor (in-build interceptor) for uploading files, however not that these files will get stored in temporary directory they should be processed and stored…

Geolocation in HTML

Geolocation in HTML – getCurrentPosition() What is Geolocation? Geolocation is used to retrieve the geographical location of a user Example of Geolocation: The most basic usage of geolocation is implemented…

execAndWait in Struts Example

execAndWait in Struts Example execAndWait is one of the default-Interceptor in Struts (you can view default-interceptors¬†here). The execAndWait interceptor shows an intermediate webpage when result page is loading. Structure of…

Custom Interceptor in Struts 2

Custom Interceptor in Struts 2 What are Interceptors? Interceptors are used for performing operations like Validation, file upload, exception handling etc. Advantages of Interceptors: Separation of Concerns, If we need…