Hi,
Regarding returning a templated ad_complain what we used is this code here:
#
# We replace ad_return_complaint with a procedure that uses
# the templating system by calling a special error template.
#
proc_doc ad_return_complaint {exception_count exception_text} "Return a page complaining about the user's input (as opposed to an error in our software, for which ad_return_error is more appropriate)" {
global error_message
if { $exception_count == 1 } {
set problem_string "a problem"
set please_correct "it"
} else {
set problem_string "some problems"
set please_correct "them"
}
set error_message $exception_text
doc_return 200 text/html [template::adp_parse [template::util::url_to_file "/www/templates/error" [ad_conn file]] {}]
}
Do you think we can use this an iterim 4.6 solution? 4.7 is another thing though.
Since the html on all packages are going be changed for 4.7 I better start get cranking for my proposal on how the html should be. There was a thread about this but I think its best to stop the discussion and start with a more solid proposal.