struts2 - Accessing action instance variables and model-driven bean variable values in JSP -


I have a variable in the searchKey action class and model-driven bean object.

  Public Class PaymentGateWayAction ActionSupport Implementation Model Driven & lt; PaymentResponseDTO & gt; {Finds Private String; Private Payment Response DTO Payment Reports DTO = New Payment Response DTO (); // ...}   

search is also a variable in PaymentResponseDTO .

I need to access, depending on some conditions it is bad to variable with the action class and Modelladrian Bean search with the same name but one of the above has already been developed. If I make any amendments to the Java file, then I need many modifications which are difficult.

Now I need to use the Action class variable. I tried to reach the variable with the action class in the follwing manner:

  

Comments