Online Exam Quiz

questionQuestion  1 to 30

What is the purpose of the Struts Validator Framework?

  • Validate form data
  • Manage session data
  • Handle file uploads
  • Implement business logic
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 ActionForm in Struts?

  • Store business logic
  • Store session data
  • Store client form data
  • Store database connections
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 prevent duplicate form submissions in Struts applications?

  • Use JavaScript validation
  • Use session tracking
  • Use form tokens
  • Use HTML5 form attributes
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

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

  • ActionForward
  • ActionForm
  • ActionMapping
  • ActionServlet
Mark for review

Which tag library is used to create forms in Struts?

  • Logic tag library
  • Bean tag library
  • HTML tag library
  • Form tag library
Mark for review

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-config> element in struts-config.xml file?

  • Define global forwards
  • Define action mappings
  • Define form beans
  • Define error messages
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

Which interceptor is responsible for managing transactions in Struts applications?

  • TransactionInterceptor
  • TransactionManagementInterceptor
  • TransactionManagerInterceptor
  • TransactionHandlerInterceptor
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 integrate Tiles with Struts applications?

  • Use Tiles filter
  • Use Tiles configuration
  • Use Tiles tag library
  • Use Tiles framework
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

How does Struts manage database connectivity by default?

  • Use JDBC
  • Use ORM frameworks
  • Use connection pooling
  • Use Hibernate
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

Which design pattern does Struts framework follow?

  • MVC
  • Singleton
  • Factory
  • Observer
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

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

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 ActionErrors in Struts?

  • Store form data
  • Store exception messages
  • Store error messages
  • Store database queries
Mark for review

How can you optimize performance in Struts applications?

  • Use caching
  • Use session variables
  • Use JavaScript
  • Use server-side rendering
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

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

  • ValidationInterceptor
  • InputValidationInterceptor
  • FormValidationInterceptor
  • ValidatorInterceptor
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

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

  • Manage JavaBeans
  • Manage session beans
  • Implement business logic
  • 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

How can you pass data between JSP pages in Struts?

  • Use session variables
  • Use URL parameters
  • Use request attributes
  • Use cookies
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