From: Scott F. <sc...@at...> - 2002-04-19 00:27:28
|
Todd, HttpServletResponseWrapper is not dependant on anything else in 2.3 AFAIK, so you could probably include it in your webwork.jar file. Else you could just rewrite IncludeTag.ServletResponseWrapperInclude to implement HttpServletResponse. You will be up and going with the 2.2 spec in no time. Cheers, Scott Hough, Todd wrote: > I'm stuck with the Servlet 2.2 spec for awhile but I'd like to use > WebWork. So I compiled the source using my version 2.2 servlet.jar to > check how much code was 2.3 specific. Everything was fine except for > the following errors: > > Information: 6 errors > Information: 7 warnings > C:\Projects\RnD\WebWork\src\webwork\dispatcher\TestDispatcher.java > Error: line (14) cannot resolve symbol class HttpServletRequestWrapper > Error: line (83) cannot resolve symbol class HttpServletRequestWrapper > Error: line (45) setRequest(javax.servlet.http.HttpServletRequest) > in webwork.action.ActionContext cannot be applied to > (webwork.dispatcher.TestDispatcher.TestRequestWrapper) > > C:\Projects\RnD\WebWork\src\webwork\view\taglib\IncludeTag.java > Error: line (14) cannot resolve symbol class > HttpServletResponseWrapper > Error: line (193) cannot resolve symbol class > HttpServletResponseWrapper > Error: line (50) > include(javax.servlet.ServletRequest,javax.servlet.ServletResponse) in > javax.servlet.RequestDispatcher cannot be applied to > (javax.servlet.ServletRequest,webwork.view.taglib.IncludeTag.ServletResponseWrapperInclude) > > I don't see anything else using TestDispatcher but ComponentTag uses > IncludeTag and pretty much everything in webwork.view.taglib.ui uses > ComponentTag. I noticed that > webwork.view.velocity.WebWorkUtil.include() doesn't use any 2.3 classes > or methods. Is it doing the same thing as IncludeTag? > > Would you consider working from the 2.2 spec? Is there anything in > WebWork that's impossible to do with the 2.2 spec? Are there any > statistics about 2.3 adoption rates? Believe me I'd love to use the > latest spec but it takes a lot of coordination and testing to upgrade > server software where I work. > > Thanks for your hard work producing a quality product. > > Todd > -- Scott Farquhar :: sc...@at... Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World |