Hi there,

I'm trying to dynamically find the calling page name from within an action class.  
data.getScreenTemplate() returns the html form's action attribute, but not the actual 
name of the .vm file that had the form on it.

File name security,AddUser.vm
Action specified for form in above file is security,UserAdmin.vm

I'm doing this so that the confirmation page is different that the form page.

getScreenTemplate() returns http:...../security,UserAdmin.vm

What I need is something that will dynamically find security,AddUser.vm so that I can 
do a setTemplate() in the action if the form fields don't validate.  This way I can 
also re-populate the form with the user's previously inputted fields and display a 
nice message asking them to correct their error.  If the form fields validate, it 
should forward the user back to the main user admin screen with a message that says 
"user added" or something.

What would be the proper way to do this?

Thanks!
Regards,
Philip

Reply via email to