struts2 - How to fetch attributes of any action class into another jsp page? -


Can anyone tell me

"The properties of any action class in another jesp page How do I get it? "

I have an Actionclose of" ActionQuestion. Java ", in which there is a feature" Private int RA, UA; "I made both" RA "and" U "as recipients and setters Now I have another jaysp page "home.jsp", which shows some of the features of "Quest Questian. Java" in "code", in which < Property> value = "" /> tag, the action in the context of "FindQuestion.java" is also a form of action "check" button in which the user has & lt; S: select name = "ua" (list of integers) /> takes an integer with the tag.

I need to bring another characteristic "RA" from "FindQuestion.java", which is used to compare the "ua" (from the selected tag) on ​​the action of the "check" button to compare it with the value Will be done. If these are equal, then the "successful successful" or otherwise "mailing failed" message is shown. [RA is not displayed on the jsp page]

Can someone suggest how to make java or some other coding.

Thanks in advance.

Assuming that you are matching in action class (not jsp): your Announce a hidden field in home.jsp form

  & lt; S: hidden name = "ra" value = "% {ra}" />   

( value specialty in my knowledge is not required here because the variable name is same is).

In your Action Class where you are matching variables that declare this variable (with a singer / setter) then you can compare the variable.

Comments