Saturday, November 25, 2006
Calling programs with ! or not
You can call PL/SQL procedures or packages with ! in front of the name. When you use !, it means you have dynamic parameters, then procedure must have this structure:
If you are using procedures with dynamic parameters and you wont write ! in URL location then you must write RewriteRule. You must put it in any .conf file of Apache. The best place is in the beginning of dads.conf. The rule can be like that:
procedure procedure_name (Parameters and theirs values are saved in name_array and value_array parameters.
name_array in owa.vc_arr,
value_array in owa.vc_arr
) is
begin
…
end;
If you are using procedures with dynamic parameters and you wont write ! in URL location then you must write RewriteRule. You must put it in any .conf file of Apache. The best place is in the beginning of dads.conf. The rule can be like that:
RewriteEngine onIf you don't use !, then your procedure parameters must exists on HTML page like input objects.
RewriteRule ^/xyz_test/docs(.*) /xyz_test/docs$1 [PT,L]
RewriteRule ^/xyz_test/(.*) /xyz_test/!$1 [PT,L]
