on 01-25-2005 9:21 PM
Hi,
I trying to create a reverse proxy and I continue to receive a constructor error. I'm trying to create a new constructor:
*********************************************************
ServletResponse sResponse = new ResponseWrapper((HttpServletRequest)sr, (HttpServletResponse)response);
**********************************************************
It responds with this error:
"The constructor Responsewrapper(HttpServletRequest, HttpServletResponse) is undefined."
Is this result of having wrong parameter in the ResponseWrapper constructor class? How can I resolve this error?
Regards,
Jin
Hi Jin,
since the class ResponseWrapper wraps a response, the constructor accepts a (Http)ServletResponse only
ServletResponse wrappedResponse = new ResponseWrapper((HttpServletResponse)response);
Hope that helps.
Regards, Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.