Re: JSTL forEach --- Struts-menu

"Geeta Ramani" <[email protected]>
Newsgroups gmane.comp.java.mvc.devel
Organization Central Maine Power Company
Message-ID <[email protected]>
To everyone who's had trouble with the "forEach" tags, I think if you change
your resin.conf appropriately, your troubles will be over..:) I attach a copy of
my resin.conf.  I had to change the java compiler to point to "internal" and
also I changed the document-directory configuration - not sure which change made
the difference.. Many many thanks to Dave for his help!!

Geeta

[email protected] wrote:

> Thanks everyone for the log4j hints. i have working now. i am used to
> initilizing the logging from a standalone application (and applet) so the
> server side config was slightly confusing.
>
> On to other problems:
>
> JSTL (forEach)
>
> I have the JSTL forEach (from core) and sql tags working on a standalone (no
> beans) basis in the webcms project. the jsp is querying the local postgres
> database for row data from base_content.
>
> if it is helpfull I will include my zip'd webapp (minus the jars) to the
> mailing list( or if someone wants they can send me their webapp and I can
> see if it will connect to my database). i will also look back at the errors
> to see i can help from that perspective.
>
> STRUTS-MENU
>
> I have this war now working also with resin. The web.xml file of the app has
> some tag that resin doesn't like, i.e everything after the taglib
> declarations. Also note that I could only get the menu stuff to work in my
> app when it was run under the root doc.
>
> dave s.
>
> _______________________________________________
> MVC-Programmers mailing list
> [email protected]
> http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
resin.conf (text/plain, 3.2 KB)
<!--
   - Temporary minimal resin.conf during 3.0 refactoring.
  -->
<resin xmlns="http://caucho.com/ns/resin">
  <!--
     - Logging configuration for the JDK logging API.
    -->
  <log id='' level='info' path='stderr:' timestamp='[%H:%M:%S.%s] '/>

  <!--
     - For production sites, change dependency-check-interval to something
     - like 60s, so it only checks for updates every minute.
    -->
  <dependency-check-interval>1s</dependency-check-interval>

  <!--
     - You can change the compiler to "javac" or jikes.
     - The default is "internal" only because it's the most
     - likely to be available.
 -->
  <javac compiler="internal" args=""/>
   

  <!--
     - Sample database pool configuration
     - The JDBC name is java:comp/env/jdbc/test
    -->
  <database>
    <name>jdbc/test</name>
    <driver-class>com.caucho.jdbc.mysql.Driver</driver-class>
    <driver-url>jdbc:mysql_caucho://localhost:3306/test</driver-url>
    <user></user>
    <password></password>
    <max-connections>20</max-connections>
    <max-idle-time>30s</max-idle-time>
  </database>

  <server>
    <!-- The http port -->
    <http id='' host='*' port='80'/>

    <!--
       - SSL port configuration:
       -
       - <http port=8443>
       -   <openssl>
       -     <certificate-file>keys/gryffindor.crt</certificate-file>
       -     <certificate-key-file>keys/gryffindor.key</certificate-key-file>
       -     <password>test123</password>
       -   </openssl>
       - </http>
      -->

    <!--
       - The local cluster, used for load balancing and distributed
       - backup.
      -->
    <cluster>
      <srun id='' host='127.0.0.1' port='6802'/>
    </cluster>

    <!--
       - If starting bin/resin as root on Unix, specify the user name
       - and group name for the web server user.
       -
       - <user-name>resin</user-name>
       - <group-name>resin</group-name>
      -->

    <!--
       - Default host configuration applied to all virtual hosts.
      -->
    <host-default>
      <class-loader>
        <!--
           - If true, the classloader order follows the Servlet spec.
           - If false, the classloader order follows the JDK spec.
          -->
        <servlet-hack>false</servlet-hack>

        <compiling-loader path='webapps/WEB-INF/classes'/>
        <library-loader path='webapps/WEB-INF/lib'/>
      </class-loader>


      <access-log path='logs/access.log' 
            format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
            rollover-period='1W'/>

      <!-- creates the webapps directory for .war expansion -->
      <web-app-deploy path='webapps'/>
    </host-default>

    <!-- includes the web-app-default for default web-app behavior -->
    <resin:include href="app-default.xml"/>

    <!-- configures the default host, matching any host name -->
    <host id=''>
            <document-directory>webapps/myCMS2</document-directory>

      <!-- configures the root web-app -->
      <web-app id='/'>
        <!-- adds xsl to the search path -->
        <class-loader>
          <simple-loader path="$host-root/xsl"/>
        </class-loader>

        <servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
      </web-app>

    </host>
  </server>
</resin>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.