1. Jar's taglib uses WebLogic whether it is not supported to use Taglib directly in the JAR package, so a normal page running in Tomcat, in WebLogic Server: Parsing of JSP file '/globalist.jsp' failed : ------------------------------------------------- ------------------------------- /globalist.jsp (2): could Not Parse Deployment Descriptor: java.io ioException : Cannot Resolve 'Webwork' Into a Valid Tag LibraryProbable Occurred Due To An Error In /Globalist.jsp Line 2: <% @ Taglib prefix = "ww" URI = "Webwork"%> ---------- -------------------------------------------------- -------------------- Tue Jan 11 15:34:02 CST 2005 Solution: Add Heb.xml Add Here
2. Model's Construction Webwork is not responsible for building model for you, so you should construct mod: private modelinfo modelinfo = new model in your action; if you write Private Modelinfo Modelinfo to report an error.
3. IoC using IOCWebWork also requires you to construct objects to form, so you should write this in your model: public class model = new arraylist (); private string actionTypeenglish = ""; private string actionType = " "; Private string anctionhref =" "; ......... If you do not initialize List, the system will report NullPointerexception
4. Model passed to View You must assign yourself to the model assignment of the View: modelinfo model = service.getlist (orgid); modelinfo.getworklist (); addall (model.getworklist ()); modelinfo.setActionHref (Model.getActionHref) )); Modelinfo.set ()); Modelinfo.setActionTypeenglish (MODEL.GETACTIONTYPEENGLISH ()); does not call the set method, the Model passed to the View will be empty.