That’s not really how Mendix works. You could use a proxy class in a Java Action to set the values in attributes of an entity and then pass that object to a Show Page action. The page would need to have a Data View to accept the object, and some widgets to display the attributes.
I hope this helps.