DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8177>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8177

HttpServlet getParameter

           Summary: HttpServlet getParameter
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When an action for a form consists of the 
following:
process?action=IsqlDataSource&submit=DataSource&dsn=com.microsoft.jdbc.sqlserver.SQLServerDriverjdbc:microsoft:sqlserver://rdbcci:1433;DatabaseName=Northwindrdbrdb11101800

When 
this form is submited, the parameters received by HttpServlet are the following (name 
only):
com.microsoft.jdbc.sqlserver.SQLServerDriverjdbc:microsoft:sqlserver://rdbcci:1433;DatabaseName
submit
action

They 
should be and were in tomcat 3 
(name=value):
dsn=com.microsoft.jdbc.sqlserver.SQLServerDriverjdbc:microsoft:sqlserver://rdbcci:1433;DatabaseName=Northwindrdbrdb11101800
submit=DataSource
action=IsqlDataSource

>From 
testing different strings, I believe the "=" 
in:
com.microsoft.jdbc.sqlserver.SQLServerDriverjdbc:microsoft:sqlserver://rdbcci:1433;DatabaseName=Northwindrdbrdb11101800
                                                                                       
                                                                                       
                                                                                       
                                                                                       
                             
|
is not handled as it was in tomcat 3.

A work around is to substitute the "=" and then 
replace.

I used the following form for for testing:
<form 
action=\"process?action=IsqlDataSource&submit=DataSource&dsn=sun.jdbc.odbc.JdbcOdbcDriverjdbc:odbc:Psdemodbdbasql11101800\"
 
method=post target=tablesFrame><input type=submit name=submit value=Switch 
class=Button></form><form 
action=\"process?action=IsqlDataSource&submit=DataSource&dsn=com.microsoft.jdbc.sqlserver.SQLServerDriverjdbc:microsoft:sqlserver://rdbcci:1433;DatabaseName=Northwindrdbrdb11101800\"
 
method=post target=tablesFrame><input type=submit name=submit value=Switch 
class=Button></form>

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

Reply via email to