facebook

the source code ?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #225465 Reply

    snage
    Member

    hi,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?

    #225468 Reply

    Riyad Kalla
    Member

    Moving 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)

    #225475 Reply

    snage
    Member

    thks!

    #227197 Reply

    snage
    Member

    Binaries:
    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!!!

    #227332 Reply

    snage
    Member

    help!

    #227348 Reply

    Riyad Kalla
    Member

    Help with what, you said yourself you already downloaded it. So unzip it and attach the source in Eclipse man.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: the source code ?

You must be logged in to post in the forum log in