Online Exam Quiz

questionQuestion  1 to 30

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

  • Error tag
  • Message tag
  • Display tag
  • DisplayMessage tag
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 to iterate over collections in JSP pages?

  • Iterate tag
  • Loop tag
  • Collection tag
  • Iterator tag
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 integrate Tiles with Struts applications?

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

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

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

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 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 ActionFormBean class in Struts?

  • Define action mappings
  • Define form validation
  • Define form beans
  • Define action forwards
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 internationalization in Struts applications?

  • Use JavaScript libraries
  • Use message resources
  • Use session variables
  • Use HTML5 data attributes
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

In Struts, what is the purpose of the ActionServlet?

  • Handle HTTP requests
  • Handle database queries
  • Handle form validation
  • Handle session management
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

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

  • Logic tag
  • Flow tag
  • Conditional tag
  • If tag
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

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 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

Which configuration file is used to define global exceptions in Struts?

  • struts-config.xml
  • web.xml
  • exceptions.xml
  • global-exceptions.xml
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

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 can you pass data between JSP pages in Struts?

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

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 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 design pattern does Struts framework follow?

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

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