Hello dev-list. I'm quite new to both tomcat and mod_jk.. really liking it so far! Thought I could contribute back with some minor things I found. Jk_status throws out some garbled html; * Ampersands (&) are not escaped * Input hiddens are wrapped in a table (?) * Superfluous td/tr/table and invalid closures scattered throughout the file. and * (Tabbed in an comment to follow guidelines) Maybe i missed something (like a reason why they should be there) but here's an proposed diff: (have a nice weekend) Index: jk/native/common/jk_status.c =================================================================== --- jk/native/common/jk_status.c (revision 416584) +++ jk/native/common/jk_status.c (working copy) @@ -432,7 +432,7 @@ jk_putv(s, "req_uri, "?cmd=show\">", NULL); } else - jk_putv(s, "req_uri, "?cmd=show&w=", + jk_putv(s, "req_uri, "?cmd=show&w=", sw->we->worker_list[i], "\">", NULL); jk_putv(s, sw->we->worker_list[i], "\n", NULL); if (lb != NULL) { @@ -462,7 +462,7 @@ worker_record_t *wr = &(lb->lb_workers[j]); ajp_worker_t *a = (ajp_worker_t *)wr->w- >worker_private; jk_putv(s, "\nreq_uri, - "?cmd=show&w=", + "?cmd=show&w=", wr->s->name, "\">", wr->s->name, "", NULL); if (dworker && strcmp(dworker, wr->s->name) == 0) @@ -511,19 +511,19 @@ wr->s->jvm_route, ")\n", NULL); jk_putv(s, "
req_uri, "\">\n", NULL); - jk_puts(s, "\n\n"); jk_puts(s, "s->name, "\">\n", NULL); jk_puts(s, "\n
\n", selected); + jk_printf(s, "value=\"%u\">\n", selected); jk_puts(s, "\n\n", i); + jk_printf(s, "value=\"%u\">", i); jk_puts(s, "\n\n", wr->s- >distance); jk_puts(s, "\n", wr->s- >lb_factor); + jk_printf(s, "value=\"%d\"/>\n", wr->s- >lb_factor); jk_puts(s, "\n"); @@ -537,7 +537,7 @@ jk_puts(s, "\n"); + jk_puts(s, "/>\n"); jk_puts(s, "\n
Distance:
Load factor:
Route Redirect:s->redirect, NULL); jk_puts(s, "\"/>
Stopped:s->is_stopped) jk_puts(s, " checked=\"checked\""); - jk_puts(s, "/>
\n"); jk_puts(s, "
\n
\n"); @@ -782,7 +782,7 @@ i = status_int("wf", s->query_string, wr->s->lb_factor); if (i > 0 && wr->s->lb_factor != i) { wr->s->lb_factor = i; -/* Recalculate the load multiplicators wrt. lb_factor */ + /* Recalculate the load multiplicators wrt. lb_factor */ update_mult(lb, l); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org