struts1 study questions

2011-04-22  来源:本站原创  分类:Java  人气:102 

Now the company has been using struts2 previously used struts1.2.7, when you have a question in the use of

1. Struts1 the action is not only override the parent class Action's execute ()?

Because struts2 in action can be configured by the method struts.xml attribute to specify the requested action method.

In struts1 in total in the struts-config.xml, action configuration method only if there is no method

parameter property,

If not configured, then each action class can handle only one request, it did not need too many Action classes, and this is

struts2 than too much trouble.

: After a question in the Q & A channel, je were eager to help, this issue basically understand.

Action class need to inherit DispatherAction class, and then configure the struts-config.xml in the Action parameter = "method"

Request to be passed in the method name can be dealing with (such as / regYrdw.do? Method = checkUser).

But one thing:

As defined in the Action class
execute (...) method, when a request mdName method, continue to enforce the execute () method, rather than
mdName (..),
When removing execute () method can execute correctly mdName () method.
That struts1, the default implementation of the request execute () method.

2. RpcDispathAction and DispatcherAction the difference?

Demo using the R ~, and D ~ and use it more?

相关文章
  • struts1 study questions 2011-04-22

    Now the company has been using struts2 previously used struts1.2.7, when you have a question in the use of 1. Struts1 the action is not only override the parent class Action's execute ()? Because struts2 in action can be configured by the method stru

  • java written Guinness Collection 2009-06-17

    This article is part of my summing up, attachment containing the full content, please download java written Guinness Collection 1. (&,|,^) Logical operation on the operation and conditions (&&,||) difference. (15 points) A major difference bet

  • Soft-test examination of the systems analyst Introduction 2010-04-01

    Disclaimer: This article is just for learning purposes, not for exam preparation; I never participate in this examination of the plan. Soft test, little introduction, and I test at school the so-called "software architect." . . Systems analyst,

  • java interview questions 1 Study Notes 2010-07-17

    1, JSP's built-in objects and their role A: JSP total of the following nine kinds of basic built-in component (ASP-6 with the corresponding internal components): request the client request, this request will be included from the GET / POST request pa

  • Chapter summary and study initialization and clean-up questions 2010-08-22

    1, constructor initialization ① The concept of "creating" and "initialization" are two different things, in java, the two are bundled together and inseparable. java provides a constructor to initialize the object, when users have the a

  • LifeRay Portal 6 Study Notes 7: Liferay some frequently asked questions 2010-10-29

    1, how to delete tomcat bound inside the sample database Liferay 5.2 started from downloading Liferay There is a 7cogs sample database, how to delete this sample program? a, in the tomcat / webapps directory sevencogs-hook found below this directory,

  • Answer: a study of Taobao surface sql statement questions 2011-05-07

    If you are using oracle, then analysis should examine the use of function and window function, has recently been writing this, and now oracle is given the wording: CREATE TABLE T_STU( ID NUMBER(38) PRIMARY KEY, NAME VARCHAR2(20), GENDER NUMBER(1), GR

  • An Taobao study interview questions sql statement 2011-05-05

    There is a table t_stu; which three fields: name, gender, grade; asked to use a sql statement to find out the top five boys and girls in the top five. Brother was not done out of only the most stupid solution: select name,grade from t_stu m where gen

  • 2009-12-21 Chuan Chi podcast - Struts1 (Reprinted) 2010-04-10

    Struts1 Today is the day after tomorrow is the last day. I say see how many feel Struts1 irritated. As always use the configuration file, not how to write code, a powerful form validation function is complete. In fact, we have been focused on code re

  • Some interview questions java 2009-02-27

    The first is the company give you a chance to meet, it is necessary to know to meet from time to equal the interview, and have a lot of companies to see you at the first time will give you a ready point of doing something trivial, these questions, al

  • Software practitioners to talk about the direction of study and career planning 2009-02-28

    First, about the direction of enterprise computing Enterprise computing (Enterprise Computing) are slightly better to listen to the fashionable term mainly refers to enterprise information systems, such as ERP Software (enterprise resource planning),

  • Agile Agile development advocates the eyes of the Frequently Asked Questions 2009-04-07

    1. Technical liabilities at Agile team will be the expansion of Express. One problem is the truth, but this is not agile per se, but are at Agile Import and implementation process did not arouse enough attention. Experienced Agile coaches tend to att

  • Why Study Design Patterns 2009-04-23

    Maybe someone will ask: "Why should we study the design model?" There is a lot of reasons, some very obvious, while others are not so obvious. Learn mode The most common reason is because we can borrow it: ● Multiplexing Solutions - has been rec

  • IQ test questions in the interview what the role of 2009-05-21

    IQ test questions in the interview what effect? Q: Why do like IBM, Microsoft such international companies will be asked at interview IQ (intelligence quotient) test questions? Is a IQ test questions will be able to detect whether a person's intellig

  • Spring.Hibernate.Struts1 integrated approach 2009-05-25

    http://zxmzfbdc.javaeye.com/blog/258946 [Original] Spring , Hibernate, Struts1 integrated approach Complete source code as an example of the attachment upload, in order to reduce the size of the jar does not contain documents used, please download th

  • java study suggested 2010-03-29

    1, JDK (Java Development Kit) JDK is the core of the whole Java, including Java runtime environment (Java Runtime Envirnment), a bunch of Java tools and Java-based class library (rt.jar). No matter what the substance of Java application servers are b

  • Page Jump Code Collection work and study 2009-06-06

    Page Jump Code Collection work and study <INPUT Name="pclog" type="button" value="/GO"> Link Type: <a href="javascript:history.go(-1)"> to go back </ a> <a href ="<%= Request.ServerVaria

  • [Change] Project Management Study Notes 2009-08-07

    Chapter learning objectives outlined in Project Management 1. Explain what the project, and cited specific examples of information technology projects 2. To understand project management and other subjects the relationship between the 3. To understan

  • java-based Study Notes 2008-05-14

    Since last July to enter the work, work can be considered more than six months the bar has done several projects. In addition to just doing value-added services to mobile start (using the struts2.X, spring), feeling pretty fresh, but less than two we

  • Struts1.3.0 international configurations 2010-03-19

    Recent study Struts1.3, had previously been the basis of 2. Now the curriculum to learn one. Today was a moment forget the fear of the future, records about 1, write the resource file *. properties, on the src (corresponding to that class, in order t