UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

1.What is Model Driven Interceptors is used for? 2.what is the purpose of using Action support??

Asked by Last Modified  

22 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Java Trainer

Using ActionSupport class, we can implement Custom validation which validates at the server-side. We can write server side validation logic in validate() method.
Comments

1. The modelDriven interceptor makes other model object as the default object of valuestack. Bydefault, action object is the default object of valuestack. To use the modelDriven interceptor, you need to implement ModelDriven interface in your action class and override its method getModel(). It...
read more
1. The modelDriven interceptor makes other model object as the default object of valuestack. Bydefault, action object is the default object of valuestack. To use the modelDriven interceptor, you need to implement ModelDriven interface in your action class and override its method getModel(). It is found in the default stack bydefault. So you don't need to specify it explicitely. 2.It is a convenient class that implements many interfaces such as Action, Validateable, ValidationAware, TextProvider, LocaleProvider and Serializable . read less
Comments

ModelDriven actions and adds the action's model on to the value stack.
Comments

Java Trainer

An interceptor that enables scoped model-driven actions. This interceptor only activates on actions that implement the ScopedModelDriven interface. If detected, it will retrieve the model class from the configured scope, then provide it to the Action.
Comments

Software Professional Trainer with 26+ years of Experience in Software Design and Development

Model Driven Interceptor is used to inject the model object into Action ie Action's Value Stack so that Action can be able to use it.
Comments

Tutor

ModelDriven Interceptor is used to inject the model object into Action ie Action's Value Stack so that Action can be able to use it. Struts 2 provides the flexibility of defining the attributes and their setter/getter methods in Action class itself and outside the Action class like java bean. To set...
read more
ModelDriven Interceptor is used to inject the model object into Action ie Action's Value Stack so that Action can be able to use it. Struts 2 provides the flexibility of defining the attributes and their setter/getter methods in Action class itself and outside the Action class like java bean. To set the attributes to the field of some other bean object, Action class must implement ModelDriven interface and Model-Driven Interceptor must be applied to that Action class. read less
Comments

Computer

Main use of web services is re usability of peace of code or application in any platform, means if you develop any application in any language like java C# on any OS you can use that application when you expose it as webservice. Web services enable to quickly integrate applications across multiple...
read more
Main use of web services is re usability of peace of code or application in any platform, means if you develop any application in any language like java C# on any OS you can use that application when you expose it as webservice. Web services enable to quickly integrate applications across multiple platforms, systems and even across businesses. Emerging web services standards such as SOAP, WSDL and UDDI will enable system-to-system communication that is easier and cheaper than ever before. The basic Web services platform is XML + HTTP. All the standard Web Services works using following components SOAP (Simple Object Access Protocol) UDDI (Universal Description, Discovery and Integration) WSDL (Web Services Description Language) read less
Comments

Bank PO Teacher

Hi, U can get the related information of your question from the following link: http://www.javatpoint.com/struts-2-modeldriven-interceptor-example This should give u valuable information.
Comments

Computer

If an Action implements the ModelDriven interface, extra ability to transfer the form data into the object automatically. Model Driven view use in MVC Model class contains the business logic i.e application logic. we will give this class means we will configure in xml files .frame work will run...
read more
If an Action implements the ModelDriven interface, extra ability to transfer the form data into the object automatically. Model Driven view use in MVC Model class contains the business logic i.e application logic. we will give this class means we will configure in xml files .frame work will run our app logic instead of creating model objects by developer FW creates . application develop ment makes faster. check the in any example in struts. It is a convenient class that implements many interfaces such as Action, Validateable, ValidationAware, TextProvider, LocaleProvider and Serializable . So it is mostly used instead of Action. read less
Comments

Master

Action Support class provides ready to use functionality of validation framework.
Comments

View 20 more Answers

Related Questions

What are the core concepts of Java?
OOPS, Exceptions, Multi threading
Manish
0 0
5
What is reflection and what is its use in Java?
to inspect classes, interfaces, fields and methods at runtime, without knowing the names of the classes, methods etc. at compile time
Rahul
0 0
7
public class X { public static void main(String [] args) { X x = new X(); X x2 = m1(x); /* Line 6 */ X x4 = new X(); x2 = x4; /* Line 8 */ doComplexStuff(); } static X m1(X mx) { mx = new X(); return mx; } } After line 8 runs. how many objects are eligible for garbage collection?
Only one. After line 8 the original object referred to by x2 is dereferenced and ready for garbage collection. In m1(), mx ignores the object passed as argument and refers to a new object which is returned.
Srikanth
What is a good foundation course for JAVA?
I will not prefer any programming language or technology instead, You can focus on Concept and Principles. Because when you say your a programmer you should be a programmer rather than saying Java programmer,...
Rajeev J

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

JAVA Version History
Java Version History: There are many java versions that has been released. Current stable release of Java is Java SE 8. JDK Alpha and Beta (1995). JDK 1.0 (23rd Jan, 1996). JDK 1.1 (19th Feb, 1997). J2SE...
V

Finding a Majority Element
Problem Description Task. The goal in this code problem is to check whether an input sequence contains a majority element. Input Format. The first line contains an integer, the next one contains a sequence...


Java and C trainer
Always think any conspect with real-time example like Object -- object must have states and behaviour then only we will call that thing is Object like fan is Object (rotating,color)

Demand of java in industry
Java is one of the widest use language in the industry all around the world As in software market more than 80% software, platform developed using java. Java comes in three flavours:- j2se for window based...

Prashant Tomer

0 0
0

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more