Re: web.xml breaks EL

2005-07-12 Thread Dewitte Rémi
Thanks very much !
Rémi

Le Mardi 12 Juillet 2005 12:12, Nikola Milutinovic a écrit :
> Dewitte Rémi wrote:
> >Hi !
> >I have a simple test jsp :
> ><%@ taglib
> > uri="http://java.sun.com/jsp/jstl/core";
> > prefix="c" %>
> >
> >  ${ind}aBaa
> >
> >
> >When I delete my web.xml, everything works well but when I reload the
> > context with it, the EL replacement doesn't work.
> >I can't see why.
> >
> >I have a very simple web.xml :
> >
> > >  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> >  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
>
> This is web.xml for a Servlet 2.2 specification and you need 2.4:
>
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">
>
> Nix.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



web.xml breaks EL

2005-07-12 Thread Dewitte Rémi
Hi !
I have a simple test jsp :
<%@ taglib 
uri="http://java.sun.com/jsp/jstl/core"; 
prefix="c" %>

 ${ind}aBaa


When I delete my web.xml, everything works well but when I reload the context 
with it, the EL replacement doesn't work.
I can't see why.

I have a very simple web.xml :

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

  Questionnaire

  
struts-action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

2
  

  
  
  
struts-action
*.do
  
  
  
  
index.jsp
index.html
  


And WEB-INF/lib contains :
antlr.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jstl.jar
standard.jar
struts.jar
struts-el.jar

Thanks !

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles

2005-07-11 Thread Dewitte Rémi
Yes i did, i made a mistake.
Sorry !
Rémi

Le Lundi 11 Juillet 2005 11:24, Christoph Kutzinski a écrit :
> This is a Struts/Tiles related question, you should ask in the Struts
> mailing lists.
>
> Dewitte Rémi wrote:
> > Hi !
> > I make a definition in which i put a list of tiles to include but I can't
> > achieve to do this eg :
> > in my tiles-defs.xml :
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > And in my template, i don't know how to iterate in listQuestions in order
> > to include /Q/firstName.jsp and /Q/lastName.jsp.
> > A start :
> >   
> >   
> >   
> > What to do to include question !
> >   
> >
> > Maybe it's not possible...
> > Thanks.
> > Rémi
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tiles

2005-07-11 Thread Dewitte Rémi
Hi !
I make a definition in which i put a list of tiles to include but I can't 
achieve to do this eg :
in my tiles-defs.xml :








And in my template, i don't know how to iterate in listQuestions in order to 
include /Q/firstName.jsp and /Q/lastName.jsp.
A start : 
  
  
  
What to do to include question !
  

Maybe it's not possible...
Thanks.
Rémi

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: iterate on a value

2005-07-01 Thread Dewitte Rémi
Thanks for your solutions.
Rémi

Le Vendredi 1 Juillet 2005 08:16, Nikola Milutinovic a écrit :
> David Rickard wrote:
> > If you don't mind mixing Struts and JSTL, use a  loop, with
> > the "end" value being the "number of children" parameters;
> >
> > At 11:00 AM 6/30/2005, Dewitte Rémi wrote:
> >> Hello !
> >> In my form , i ask the number of children. On the next page, i'd like to
> >> display as many textboxes as children to get their name.
> >>  provides iteration on array or collection, how can i
> >> iterate
> >> on the number of children ?
>
> A word of caution on mixing Struts and JSTL - there are situation when
> it breaks. I've had a webapp, using Struts 1.1 and JSTL 1.0 (Jakarta
> JSTL) and the application did not want to deploy at all. When removed
> JSTL, it ran just fine.
>
> As for the original question, well, the Action class in between those
> two requests can build an array for iteration. It is ugly, but it works.
>
> Nix.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



iterate on a value

2005-06-30 Thread Dewitte Rémi
Hello !
In my form , i ask the number of children. On the next page, i'd like to 
display as many textboxes as children to get their name.
 provides iteration on array or collection, how can i iterate 
on the number of children ?
Thanks !

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



trimSpaces doesn't work

2005-06-29 Thread Dewitte Rémi
It seems my web.xml isn't correct while i still get empty lines. Is it a known 
problem ? 

Thanks in advance.

Here web.xml is :


  Questionnaire

  
struts-action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

2
  
  
  
        jsp
        org.apache.jasper.servlet.JspServlet
        
            modificationTestInterval
            30
        

            genStrAsCharArray
            true
        

            development
            false
        

            trimSpaces
            true
        
        3
    
  
  
  
struts-action
*.do
  
  
jsp
*.jsp
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]