- This topic has 5 replies, 2 voices, and was last updated 20 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
snageMemberhi,everybody,I’m studing the struts framework!I have decompiled the whole struts’ class! but I found a strange thing that
the part of the class RequestProcessor’ source code isn’t accord with the java syntax rule!Such as the following:
protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
throws IOException
{
String className;
className = mapping.getType();
if(log.isDebugEnabled())
log.debug(” Looking for Action instance for class ” + className);
Action instance = null;
HashMap hashmap = actions;
JVM INSTR monitorenter ;
instance = (Action)actions.get(className);
if(instance == null)
break MISSING_BLOCK_LABEL_102;
if(log.isTraceEnabled())
log.trace(” Returning existing Action instance”);
return instance;
if(log.isTraceEnabled())
log.trace(” Creating new Action instance”);
instance = (Action)RequestUtils.applicationInstance(className);
goto _L1
Exception e;
e;
log.error(getInternal().getMessage(“actionCreate”, mapping.getPath()), e);
response.sendError(500, getInternal().getMessage(“actionCreate”, mapping.getPath()));
null;
hashmap;
JVM INSTR monitorexit ;
return;
_L1:
instance.setServlet(servlet);
actions.put(className, instance);
hashmap;
JVM INSTR monitorexit ;
goto _L2
Exception exception;
exception;
hashmap;
JVM INSTR monitorexit ;
throw exception;
_L2:
return instance;
}Is this the tool’s problem?
February 18, 2005 at 7:43 pm #225468
Riyad KallaMemberMoving to OT > Soft dev, this has nothing to do with ME.
Also, you can download the Struts source code for free, it’s open source. (struts.apache.org)
February 19, 2005 at 4:34 am #225475
snageMemberthks!
March 27, 2005 at 9:27 pm #227197
snageMemberBinaries:
jakarta-struts-1.2.4.zip [PGP] [MD5]
jakarta-struts-1.2.4.tar.gz [PGP] [MD5]
Source:
jakarta-struts-1.2.4-src.zip [PGP] [MD5] //I have downloaded this from http://struts.apache.org/download.cgi!but It isnt that i want to get!I want to get the source code of struts.jar!who can help me ?thks!!!
March 30, 2005 at 1:35 am #227332
snageMemberhelp!
March 30, 2005 at 8:51 am #227348
Riyad KallaMemberHelp with what, you said yourself you already downloaded it. So unzip it and attach the source in Eclipse man.
-
AuthorPosts