struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Friedman" <hum...@ix.netcom.com>
Subject RE: exception
Date Thu, 07 Sep 2006 07:37:50 GMT
Since we're picking your code apart... In your struts-config.xml you
shouldn't need to specify the controller as a TilesRequestProcessor if you
have the plugIn specified.  I recommend you comment the
TilesRequestProcessor line out. See:
http://struts.apache.org/1.2.x/userGuide/configuration.html

Also, I've read other problems on this list if you set the TilesPlugin
moduleAware variable.  I recommend you comment out that line as well unless
you are using modules. Even then you need to be very careful of the side
effects.  Try commenting it out for now.

Regards,
David

-----Original Message-----
From: Tom Jerry [mailto:tom.snow.jerry@gmail.com]
Sent: Thursday, September 07, 2006 2:03 AM
To: Struts Users Mailing List
Subject: Re: exception


There are no database operations. It is the simplest one. I am learning by
example.

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>
    <form-beans>
            <form-bean name="loginForm" type="code.LoginForm"/>
     </form-beans>

    <global-forwards>
        <forward name="mainmenu" path="/mainmenu.jsp"/>
    </global-forwards>

    <action-mappings>
            <action path="/login"
                type="code.LoginAction"
                name="loginForm"
                scope="session"
                input="/index.jsp">
            </action>
     </action-mappings>

    <controller
           processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

    <message-resources parameter="ApplicationResources" null="false"/>

    <plug-in className="org.apache.struts.tiles.TilesPlugin" >

      <!-- Path to XML definition file -->
      <set-property property="definitions-config"
                       value="/WEB-INF/tiles-defs.xml" />
      <!-- Set Module-awareness to true -->
      <set-property property="moduleAware" value="true" />
    </plug-in>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message