The request.getRemoteAddr() must be outside the string: String updateip = "Update tbluser set incomingip= '" + request.getRemoteAddr() + "' where uname ='" + uname + "'";
> -----Ursprüngliche Nachricht----- > Von: Miao, Franco CAWS:EX [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 24. Oktober 2001 07:18 > An: '[EMAIL PROTECTED]' > Betreff: How to put getRemoteAddr() into SQL server table in > Tomcat 4.0 <snip/> > String updateip ="Update tbluser set incomingip= > 'request.getRemoteAddr()' > where uname ='" + uname + "'"; <snip/> > No erro come up, but it didn't put remote Ip address into SQL server's > table, value is "null", if I change to " > '+request.getRemoteAddr()+' ", > you will see > '+request.getRemoteAddr()+' as the value in SQL table. <snip/>