I some warns around the if statement in the PerForm code:

warn("---------------------------------\n");
warn("Submitting: ".(defined(\$cgi->param('__submitting'))?"1":"0")."\n");
warn("CGI parms: ".(join( " ", \$cgi->param))."\n");
if (\$cgi->param('__submitting')) {
warn("got it\n");

Then I watched the output.  It seems that AxKit will run the XSP *once*
and then won't run it again until I make a change in the XSP(or some of
the other code) or restart Apache.  So the XSP gets run once to generate
the first page, but doesn't get run again for the submit.  I haven't
given AxKit a cache dir and I turned on AxNoCache.  Of course I get the
same result when the cache is on.

So I guess I was wrong in my first post.  It isn't that __submitting
isn't defined.  It is that the XSP simply isn't being run for the submit.

Andrew Parker wrote:
 > I don't think so.  I'm still new to mod_perl though, so it might be
 > something that I don't know.  The xsp is running from /cgi-bin/xsp and
 > mod_cgi is loaded and "Options +ExecCGI" is in /cgi-bin.  Could mod_cgi
 > be taking STDIN?
 >
 > Here are all of the modules loaded and added:
 > LoadModule env_module         modules/mod_env.so
 > LoadModule config_log_module  modules/mod_log_config.so
 > LoadModule agent_log_module   modules/mod_log_agent.so
 > LoadModule referer_log_module modules/mod_log_referer.so
 > LoadModule mime_module        modules/mod_mime.so
 > LoadModule negotiation_module modules/mod_negotiation.so
 > LoadModule negotiation_module modules/mod_negotiation.so
 > LoadModule includes_module    modules/mod_include.so
 > LoadModule autoindex_module   modules/mod_autoindex.so
 > LoadModule dir_module         modules/mod_dir.so
 > LoadModule cgi_module         modules/mod_cgi.so
 > LoadModule imap_module        modules/mod_imap.so
 > LoadModule alias_module       modules/mod_alias.so
 > LoadModule rewrite_module     modules/mod_rewrite.so
 > LoadModule access_module      modules/mod_access.so
 > LoadModule setenvif_module    modules/mod_setenvif.so
 > LoadModule ssl_module   modules/libssl.so
 > LoadModule perl_module  modules/libperl.so
 > LoadModule jk_module    modules/mod_jk.so
 > LoadModule pubcookie_module     modules/mod_pubcookie.so
 >
 > AxKit is the only mod_perl module loaded.
 >
 > Matt Sergeant wrote:
 >
 >> On Thu, 14 Feb 2002, Andrew Parker wrote:
 >>
 >>
 >>> if (\$cgi->param('__submitting')) {
 >>>     foreach my \$cancel (\@_cancel_buttons) {
 >>>
 >>>
 >>> The if statement fails.  So cgi->param('__submitting') isn't defined.
 >>> Any ideas for what might be causing this?
 >>>
 >>
 >> Do you have something else in your setup slurping STDIN somewhere?
 >>
 >>
 >
 >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 >




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to