Pertanyaan dan Jawaban Wawancara Paling Populer & Tes Online
Platform edukasi untuk persiapan wawancara, tes online, tutorial, dan latihan langsung

Bangun keterampilan dengan jalur belajar terfokus, tes simulasi, dan konten siap wawancara.

WithoutBook menghadirkan pertanyaan wawancara per subjek, tes latihan online, tutorial, dan panduan perbandingan dalam satu ruang belajar yang responsif.

Prepare Interview

Ujian Simulasi

Jadikan Beranda

Bookmark halaman ini

Langganan Alamat Email

Struts Pertanyaan dan Jawaban Wawancara

Test your skills through the online practice test: Struts Quiz Online Practice Test

Perbedaan terkait

Perbedaan terkait

Struts 1 vs Struts 2Struts 1.1 vs Struts 1.2Struts 1.2 vs Struts 1.3
Struts vs JSFStruts vs Spring

Ques 71. What is an Action Class?

The ?Action Class? is part of the ?Model? and is a wrapper around the business logic.

The purpose of the ?Action Class? is to translate the HttpServletRequest to the business logic.

To use the ?Action?, we need to subclass and overwrite the execute() method.

All the database and business processing is done in the ?Action? class.

It is advisable to perform all the database related work in the ?Action? class.

The ActionServlet (command) passes the parameterized class to ActionForm using the execute() method.

The return type of the execute method is ActionForward which is used by the Struts Framework to forward the request to the file according to the value of the returned ActionForward object.

Apakah ini membantu? Add Comment View Comments
 

Ques 72. What is an ActionForm?

An 'ActionForm' is a JavaBean that extends org.apache.struts.action.ActionForm.
ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side. 

Apakah ini membantu? Add Comment View Comments
 

Ques 73. Describe the details of XML files used in the Validator Framework?

The Validator Framework uses two XML configuration files

1) validator-rules.xml and

2) validation.xml.

The validator-rules.xml defines the standard validation routines.

These are reusable and used in validation.xml to define the form specific validations.

The validation.xml defines the validations applied to a form bean.

Apakah ini membantu? Add Comment View Comments
 

Ques 74. How would you display ?validation fail? errors on a JSP page?

Following tag displays all the errors:
 <html:errors/>

Apakah ini membantu? Add Comment View Comments
 

Ques 75. How can one enable front-end validation based on the xml in validation.xml?

The
<html:javascript>
 tag allows front-end validation based on the xml in validation.xml.

For example the code:

generates the client side JavaScript for the form "logonForm" as defined in the validation.xml file.
The <html:javascript> when added in the JSP file generates the client side validation script.

Apakah ini membantu? Add Comment View Comments
 

Most helpful rated by users:

Hak Cipta © 2026, WithoutBook.