tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sciencel...@aol.com
Subject Re: "select option" value query string differ - Win vs Mac(OSX)
Date Sun, 29 May 2005 12:08:19 GMT

JSP app builds "selection" box with "option value"(s) into generated  html.
app is served from Win32 running Tomcat.
 
Each "option value" forwards user to next JSP immediately upon mouse  
selection
using "JumpTo( url)" Javascript func.  (vs "submit"  button).  So, user saves 
time of one more "hunt 'n click" while getting forwarded to next  page.
 
 Win32 connections to app are fine.   Connection URL  produces valid 
QueryString :   
 _http://host-name:8080/servlets/JSP-PAGE?value=foo_ 
(http://host-name:8080/servlets/JSP-PAGE?value=foo) 
 
Connecting to app from Mac (OSX):  select URL options fire   Javascript  
forward  
BUT,  "404 not found" error since forwarded URL has extra chars in  
QueryString.  
Bad Query string is:
_http://host-name:8080/servlets/%0D%0Ahttp://localhost:8080/servlets/%0D%0A/JS
P-PAGE?value=foo_ (http://host-name:8080/servlets/
http://localhost:8080/servlets/
/JSP-PAGE?value=foo) 
 
Correct value is buried at tail of bad QueryString.
 
Prioritized resolution path is to:
 
A.)
Catch or disrupt bad QueryString within forwarding JSP, strip out  duplicate 
host-name,special chars & bogus vals,  before it proceeds to  cause "404 
error"  
 
B.).
stop bad query string  from happening for connecting Macs  by
detecting if  connect host  is Mac,  & then doing  "something" different .
Perhaps,  if all else fails,  change code to default to standard  "submit" 
button 
to bypass Javascript  "jumpto()" for all Mac connetions -  but this would 
change
user interface for macs. 
 
TIA !

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message