Questions tagged [model-driven]

An interface to support model component of the Struts2 MVC architecture.

An interface to support model component of the Struts2 MVC architecture. This interface should implement action classes which applying a user model as a generic parameter. If an action class implements the interface ModelDriven then it needs to return an object from the getModel() method. Struts2 will then populate the fields of this object with the request parameters, and this object will be placed on top of the valueStack once the action is executed. Validation will also be performed on this model object, instead of the action.

ModelDriven action uses it's own interceptor modelDriven which included in the defaultStack interceptor stack. Thus every action that uses that stack invokes this interceptor to check if an action is instance of ModelDriven then applying a model to it.

There's also a ScopedModelDriven interface that is used for models that has lifecycle for the specified scope.

128 questions
0
votes
1 answer

Converting Action in Struts 1 to Struts 2 equivalent

I am trying to migrate an application from Struts 1 to Struts 2. In the migration process, I am facing the following issues: There is a Servlet which extends ActionServlet of Struts1. There are many overriden methods where by super is being called…
Test
  • 91
  • 11
0
votes
1 answer

Error in loading model in Sample Reflective Editor

I can open my .model file in Exeed Editor. But when I want to open it in Sample Reflective Editor it has below errors. What should I do?
any
  • 325
  • 5
  • 17
0
votes
0 answers

two parts meta-model in transformation

My source meta-model has two parts which links together. When I want to transform an element of second part of this meta-model, it doesn't have error but nothing create in output. What can I do? The Metamodel On the other hand how can I merge these…
any
  • 325
  • 5
  • 17
0
votes
0 answers

OCL - get value of variable

How can I get the value of variable instead of its name? The below code return "n" string which is the name of the variable. I need value of n. s.targets.first().name.name The Metamodel
any
  • 325
  • 5
  • 17
0
votes
1 answer

Why ModelDriven has stopped working in Struts 2

I have used ModelDriven in my Action class, previously it was working fine, now it has stopped working. When I used tag of Struts in my JSP I found following result: Struts ValueStack Debug: I'm accessing values in my JSP page as…
Shantaram Tupe
  • 1,646
  • 3
  • 16
  • 42
0
votes
0 answers

angular2 model driven form population through this.form.patchvalue

Can someone help me set the values of a model driven form for data coming through http. Here is the excerpt from service.ts getExternalConnection(row_id){ return this._http.get(this._url + '/' + row_id) .map(res=> res.json()); } Here is the…
sv16
  • 125
  • 3
  • 7
0
votes
0 answers

Control Flow Graph of ETL

Has Control Flow Graph (CFG) for ETL transformation been developed? How can I access it?
any
  • 325
  • 5
  • 17
0
votes
1 answer

ETL is interpreted or compiled language

Is Epsilon transformation language (ETL) interpreted or compiled language?
any
  • 325
  • 5
  • 17
0
votes
2 answers

Struts 2 : Unable to access Model properties in JSP

I have problem with accessing Model properties (ProcessSolution) in my JSP , I'm not getting what is wrong with my following codes : This is my model Class ProcessSolution.java package POJO; import java.util.Arrays; public class ProcessSolution { …
Shantaram Tupe
  • 1,646
  • 3
  • 16
  • 42
0
votes
1 answer

Best way to create Model Data in java programming

After making a webservice call and gathering data for your model data, i can think of a few ways to persist the model until the application process terminates: save the model as static variable so its in memory and fast to access write the model…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
2 answers

Class diagram from ecore

I have .ecore metamodel. How can I automatically generate class diagram from it?
any
  • 325
  • 5
  • 17
0
votes
1 answer

how to display actionerror messages beside the field in struts while using xml validation

here's what i did i have created a jsp page cardholder <%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <% String client = (String)…
Ashok Ogirala
  • 121
  • 2
  • 15
0
votes
1 answer

Struts2 data tranfer from Jsp to Action using Complex Objects

how to use Model-driven or Object-backed approaches to map Complex Object with depth more than one. for example, I have action class with property User object and USer has a address object as its property. Address has street name as property. like…
indra
  • 35
  • 5
0
votes
1 answer

Set the bean to serialize

I am using Struts2 JSON plugin to retrieve a list of my events in JSON format, when the page() method is executed. My action is: public class EventCrud extends WebAppBaseAction implements ModelDriven, Preparable{ private static final…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
1 answer

Unable to execute Struts 2 program with ModelDriven interceptor

I am new to Struts 2 framework. I have made a program for understanding modelDriven interceptor. But I am unable to execute it. Following are the list of files and in the end there is a output (error). index.jsp: <%@ page language="java"…
JPG
  • 1,247
  • 5
  • 31
  • 64
1 2 3
8
9