hgbdelphi
asked on
how can i change struts source??
hi,experts,now i want change the process method in jakarta-struts-1.1/lib/str uts.jar/or g/apache/s truts/acti on/ActionS ervlet.cla ss
now i hava down the jakarta-struts-1.1 source and in ActionServlet.java,i add two lines,like this:
/**
* Perform the standard request processing for this request, and create
* the corresponding response.
*
* @param request The servlet request we are processing
* @param response The servlet response we are creating
*
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet exception is thrown
*/
protected void process(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
request.setCharacterEncodi ng("gb2312 "); //i added it
response.setContentType("t ext/html;c harset=gb2 312"); //i added it
RequestUtils.selectModule( request, getServletContext());
getRequestProcessor(getMod uleConfig( request)). process
(request, response);
}
but when i add it ,i can not compile it, can any experts help me compile it and send me struts.jar, thanks very much!
mymail:jbasttdi@hotmail.co m
thanks very much!
now i hava down the jakarta-struts-1.1 source and in ActionServlet.java,i add two lines,like this:
/**
* Perform the standard request processing for this request, and create
* the corresponding response.
*
* @param request The servlet request we are processing
* @param response The servlet response we are creating
*
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet exception is thrown
*/
protected void process(HttpServletRequest
HttpServletResponse response)
throws IOException, ServletException {
request.setCharacterEncodi
response.setContentType("t
RequestUtils.selectModule(
getRequestProcessor(getMod
(request, response);
}
but when i add it ,i can not compile it, can any experts help me compile it and send me struts.jar, thanks very much!
mymail:jbasttdi@hotmail.co
thanks very much!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi,thanks very much,when i add some org.apache lib ,it can compile,thanks ,and my code can run well,thanks very much!
Best Regard For you!
Best Regard For you!
Yay! Glad I could help :-)
Good luck with it all!!
Tim
Good luck with it all!!
Tim
ASKER
thanks for your help,but when i write my self ActionServlet,i can not compile it,
javac my.package.MyActionServlet