Hi,
I am trying to do a simple search form , hit and API with the values input by the user and display the response in another page.
I am able to do the first two parts as well as redirecting to a new page but having difficulty with persisting the response to display in the new page. I am not sure as to how to do it. I have create a model class RateReponse as below
class RateResponse {
private var _pickUpLoc = ""
private var _returnLoc = ""
//Getter
def pickUpLoc = _pickUpLoc
def returnLoc = _returnLoc
//Setter
def serviceType_= (pLocValue:String):Unit = _pickUpLoc = pLocValue
def specInstr_= (rLocValue:String):Unit = _returnLoc = rLocValue
}
I am trying to set values into this as soon as I get the response and access these values in the new page.
Could anyone help me out with this?
Thanks and Regards,
Bhuvana