Forum OpenACS Q&A: Response to ad_return_complaint and templating

Collapse
Posted by Denis Barut on
Hello,

Thanks for all your advices but nothing was working for me, and here how i resolve it :

ad_return_complaint
	if { $exception_count == 1 } {
	set problem_string "a problem"
	set please_correct "it"
    } else {
	set problem_string "some problems"
	set please_correct "them"
    }
	  
	global error_message
	
	set error_message "
to [ad_system_name]

We had $problem_string processing your entry:
	
    $exception_text
Please back up using your browser, correct $please_correct, and resubmit your entry.

Thank you. " rp_serve_abstract_file [acs_root_dir]/www/global/error
=========================================================


and the tcl/adp files :

error.tcl


global error_message
ad_return_template

error.adp


Problem with Your Input
@error_message@

Hope this could help.