You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pedro Salgado <sa...@04web.com> on 2004/09/20 19:15:00 UTC

standard-1.1.1 expression language not working

Hi to everyone!

  I have already used taglibs before but I am having some trouble making
jstl core 1.1.1 taglib to evaluate expression languages on Tomcat 5.0.27.

  I have all of the required libraries on WEB-INF/lib/ (jstl, standard,
jdbc_2_0_stdext, xalan and xerces).
  Tomcat does not give any missing taglib handler... so I supposed it finds
all of the necessary classes.
  I am also using Struts and Struts-el taglibs and they are working
correctly.

  Am I missing something?


  my jsp file:


<%@ taglib uri="/WEB-INF/tld/struts-html-el.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tld/struts-tiles-el.tld" prefix="tiles-el" %>

...

<c:set var='a'>1</c:set><c:out value='${a}'/> (the output is ${a})

...




  my web.xml, taglib declaration:


    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-html-el.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-html-el.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-logic-el.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-logic-el.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-bean-el.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-bean-el.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-tiles.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/struts-tiles-el.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/struts-tiles-el.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
        <taglib-location>/WEB-INF/tld/fmt-1.1.1.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
        <taglib-location>/WEB-INF/tld/c-1.1.1.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/displaytag-el-12.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/displaytag-el-12.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/tld/displaytag-12.tld</taglib-uri>
        <taglib-location>/WEB-INF/tld/displaytag-12.tld</taglib-location>
    </taglib>


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


[OT] Re: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?

Posted by DG...@EvergreenInvestments.com.
Configure the proper appender: 
http://logging.apache.org/log4j/docs/manual.html

Dennis





"O. Oke" <re...@yahoo.co.uk> 
10/06/2004 08:10 AM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
Struts Users Mailing List <us...@struts.apache.org>
cc

Subject
How to configure Tomcat/Struts ... error messages are sent to a file, not 
the console?






Please tell me how to configure Tomcat/Struts so that
error messages are sent to a file, not the console? 

SERVER
======
I am using tomcat-5.0.27

BACKGROUND
==========
I am using  for logging error messages. 

The output of the code below goes to Eclipse console. 
What I want is for the output to go into a file.

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class CargoExceptionHandler extends
ExceptionHandler {
   public ActionForward execute( Exception ex,
                              ExceptionConfig
exConfig,
                              ActionMapping mapping,
                              ActionForm form,
                              HttpServletRequest
request,
                              HttpServletResponse
response
  ) throws ServletException{

                   Log          log      =
LogFactory.getLog(CargoExceptionHandler.class);
 
 

 
                         //Which Logger is being Used?

                         System.out.println("The Log being used >>>
" + log);

 

                         //Create a dummy exception to depict
exception logging

                         Exception e = new Exception("A DUMMY
EXCEPTION");

 

                         //Log TRACE if enabled

                         if (log.isTraceEnabled()) {

                             log.trace("TRACE TEST");

                             log.trace("TRACE TEST", e);

                         }

 

                         //Log DEBUG if enabled

                         if (log.isDebugEnabled()) {

                             log.debug("DEBUG TEST");

                             log.debug("DEBUG TEST", e);

                         }

 

                         //Log INFO if enabled

                         if (log.isInfoEnabled()) {

                             log.info("INFO TEST");

                             log.info("INFO TEST", e);

                         }

 

                         //Log WARN if enabled

                         if (log.isWarnEnabled()) {

                             log.warn("WARN TEST");

                             log.warn("WARN TEST", e);

                         }

 

                         //Log ERROR if enabled

                         if (log.isErrorEnabled()) {

                             log.error("ERROR TEST");

                             log.error("ERROR TEST", e);

                         }

 

                         //Log FATAL if enabled

                         if (log.isFatalEnabled()) {

                             log.fatal("FATAL TEST");

                             log.fatal("FATAL TEST", e);

                         }


 
}

Thank you.


 
 
 
___________________________________________________________ALL-NEW Yahoo! 
Messenger - all new features - even more fun!  
http://uk.messenger.yahoo.com

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



How to configure Tomcat/Struts ... error messages are sent to a file, not the console?

Posted by "O. Oke" <re...@yahoo.co.uk>.
Please tell me how to configure Tomcat/Struts so that
error messages are sent to a file, not the console? 

SERVER
======
I am using tomcat-5.0.27

BACKGROUND
==========
I am using  for logging error messages.  

The output of the code below goes to Eclipse console. 
What I want is for the output to go into a file.

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;


public class CargoExceptionHandler extends
ExceptionHandler {
   public ActionForward execute( Exception ex,
                              ExceptionConfig
exConfig,
                              ActionMapping mapping,
                              ActionForm form,
                              HttpServletRequest
request,
                              HttpServletResponse
response
  ) throws ServletException{

   	  Log          log      =
LogFactory.getLog(CargoExceptionHandler.class);
   	  
   	  

   	 
   	        //Which Logger is being Used?

   	        System.out.println("The Log being used >>>
" + log);

   	 

   	        //Create a dummy exception to depict
exception logging

   	        Exception e = new Exception("A DUMMY
EXCEPTION");

   	 

   	        //Log TRACE if enabled

   	        if (log.isTraceEnabled()) {

   	            log.trace("TRACE TEST");

   	            log.trace("TRACE TEST", e);

   	        }

   	 

   	        //Log DEBUG if enabled

   	        if (log.isDebugEnabled()) {

   	            log.debug("DEBUG TEST");

   	            log.debug("DEBUG TEST", e);

   	        }

   	 

   	        //Log INFO if enabled

   	        if (log.isInfoEnabled()) {

   	            log.info("INFO TEST");

   	            log.info("INFO TEST", e);

   	        }

   	 

   	        //Log WARN if enabled

   	        if (log.isWarnEnabled()) {

   	            log.warn("WARN TEST");

   	            log.warn("WARN TEST", e);

   	        }

   	 

   	        //Log ERROR if enabled

   	        if (log.isErrorEnabled()) {

   	            log.error("ERROR TEST");

   	            log.error("ERROR TEST", e);

   	        }

   	 

   	        //Log FATAL if enabled

   	        if (log.isFatalEnabled()) {

   	            log.fatal("FATAL TEST");

   	            log.fatal("FATAL TEST", e);

   	        }


   	
}

Thank you.


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

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