Online Exam Quiz

questionQuestion  1 to 30

How can you secure Struts applications?

  • Use HTTPS
  • Use session tracking
  • Use custom filters
  • Use SSL certificates
Mark for review

What is the purpose of the Struts HTML tag library?

  • Create HTML forms
  • Manage session variables
  • Implement JavaScript
  • Integrate with databases
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

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

  • ValidationInterceptor
  • InputValidationInterceptor
  • FormValidationInterceptor
  • ValidatorInterceptor
Mark for review

How can you integrate Tiles with Struts applications?

  • Use Tiles filter
  • Use Tiles configuration
  • Use Tiles tag library
  • Use Tiles framework
Mark for review

In Struts, what is the purpose of the ActionServlet?

  • Handle HTTP requests
  • Handle database queries
  • Handle form validation
  • Handle session management
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 Struts component is responsible for managing navigation in a web application?

  • ActionForward
  • ActionForm
  • ActionMapping
  • ActionServlet
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

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

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 define a message resource in Struts applications?

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

How can you handle internationalization in Struts applications?

  • Use JavaScript libraries
  • Use message resources
  • Use session variables
  • Use HTML5 data attributes
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 role of the Struts Controller component?

  • Handle business logic
  • Handle navigation
  • Handle data persistence
  • Handle HTTP requests
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

What is the role of the Struts ActionForward class?

  • Handle file uploads
  • Handle navigation
  • Handle exception handling
  • Handle form submissions
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

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 Struts Bean tag library?

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

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

  • FileUploadInterceptor
  • UploadInterceptor
  • MultipartRequestInterceptor
  • FileInterceptor
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 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

How can you integrate AJAX with Struts applications?

  • Use <ajax> tag
  • Use JavaScript libraries
  • Use AJAX tag library
  • Use <struts-ajax> tag
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

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

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

What is the role of the Struts Configuration Manager?

  • Manage application lifecycle
  • Manage configuration files
  • Manage session variables
  • Manage database connections
Mark for review

Which Struts tag is used to iterate over collections in JSP pages?

  • Iterate tag
  • Loop tag
  • Collection tag
  • Iterator tag
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

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