Online Exam Quiz

questionQuestion  1 to 30

How can you handle file uploads in Struts applications?

  • Use JavaScript API
  • Use <file-upload> tag
  • Use Apache Commons FileUpload
  • Use <input type="file"> tag
Mark for review

Which interceptor is responsible for file upload handling in Struts applications?

  • FileUploadInterceptor
  • UploadInterceptor
  • MultipartRequestInterceptor
  • FileInterceptor
Mark for review

How can you configure a validator plugin in Struts?

  • Add entries to web.xml
  • Configure in struts-config.xml
  • Use <validator> tag
  • Implement Validator interface
Mark for review

What is the purpose of the <plug-in> element in struts-config.xml file?

  • Define application plugins
  • Define custom tags
  • Define global exceptions
  • Define action mappings
Mark for review

How can you customize error handling in Struts applications?

  • Override default error pages
  • Use exception filters
  • Implement ErrorHandler
  • Configure in struts-config.xml
Mark for review

Which Struts tag is used to display error messages on JSP pages?

  • Error tag
  • Message tag
  • Display tag
  • DisplayMessage tag
Mark for review

What is the role of the <action> element in struts-config.xml file?

  • Define form submissions
  • Define action mappings
  • Define global forwards
  • Define exception handling
Mark for review

Which Struts component is responsible for managing navigation in a web application?

  • ActionForward
  • ActionForm
  • ActionMapping
  • ActionServlet
Mark for review

What is the role of the Struts Configurator class?

  • Configure Struts settings
  • Configure database queries
  • Configure server settings
  • Configure form submissions
Mark for review

How does Struts manage session handling by default?

  • Use URL rewriting
  • Use hidden form fields
  • Use cookies
  • Use session variables
Mark for review

What is the purpose of the Struts DispatchAction class?

  • Dispatch requests
  • Validate form data
  • Manage session data
  • Handle database queries
Mark for review

What is the purpose of the Struts Bean tag library?

  • Manage JavaBeans
  • Manage session beans
  • Implement business logic
  • Integrate with databases
Mark for review

What is the purpose of the Struts TagUtils class?

  • Manage custom tags
  • Manage JSP pages
  • Implement tag libraries
  • Handle tag logic
Mark for review

How can you handle role-based access control in Struts applications?

  • Use session variables
  • Use custom filters
  • Use form authentication
  • Use URL rewriting
Mark for review

What is the role of the ActionMapping class in Struts?

  • Map URLs to actions
  • Map forms to actions
  • Map exceptions to actions
  • Map tags to actions
Mark for review

How can you configure message resources in Struts?

  • Use <message-resources> tag
  • Use <struts-resources> tag
  • Use <resource-bundle> tag
  • Use <locale> tag
Mark for review

How does Struts handle exceptions by default?

  • Redirect to an error page
  • Display error in console
  • Redirect to login page
  • Display error message
Mark for review

Which interceptor is responsible for validation in Struts 1.x?

  • ValidationInterceptor
  • InputValidationInterceptor
  • FormValidationInterceptor
  • ValidatorInterceptor
Mark for review

Which Struts tag is used for conditional logic in JSP pages?

  • Logic tag
  • Flow tag
  • Conditional tag
  • If tag
Mark for review

What is the role of the Struts Controller component?

  • Handle business logic
  • Handle navigation
  • Handle data persistence
  • Handle HTTP requests
Mark for review

What is the role of the Struts Action class?

  • Handle database queries
  • Handle business logic
  • Handle navigation
  • Handle HTTP requests
Mark for review

What is the purpose of ActionForm in Struts?

  • Store business logic
  • Store session data
  • Store client form data
  • Store database connections
Mark for review

How can you prevent duplicate form submissions in Struts applications?

  • Use JavaScript validation
  • Use session tracking
  • Use form tokens
  • Use HTML5 form attributes
Mark for review

Which design pattern does Struts framework follow?

  • MVC
  • Singleton
  • Factory
  • Observer
Mark for review

What is the purpose of the Struts CustomTag class?

  • Implement custom tags
  • Implement JSP tags
  • Manage tag libraries
  • Handle tag logic
Mark for review

How does Struts handle form validation?

  • Using JavaScript
  • Using custom validation
  • Using built-in validators
  • Using AJAX
Mark for review

What is the purpose of the ActionFormBean class in Struts?

  • Define action mappings
  • Define form validation
  • Define form beans
  • Define action forwards
Mark for review

Which file is used to configure database connection pooling in Struts applications?

  • struts-config.xml
  • web.xml
  • database.xml
  • connection-pool.xml
Mark for review

Which interceptor is responsible for managing transactions in Struts applications?

  • TransactionInterceptor
  • TransactionManagementInterceptor
  • TransactionManagerInterceptor
  • TransactionHandlerInterceptor
Mark for review

What is the role of the Struts RequestProcessor class?

  • Process HTTP requests
  • Process database queries
  • Process form submissions
  • Process session management
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review