java - set a parameter to request object -
i'm using else's code, has method can call logout site. inside method have following condition:
if (request.getparameter("logout") != null) { //the rest of code }
the problem is: how set parameter of "request" object logout value can different "null"? condition expressed in code returns "null" value, rest of code never executed. there way change "logout" parameter can still use method, or there approach should use?
if want add parameter request need append url.depending on api use above servlet api ,it might different idea same:
requestdispatcher dispatcher = request.getrequestdispatcher("/servlet/some.thirdpartyservlet" + "?" + "param_name=" + "somevalue")
Comments
Post a Comment