RE: iterators for input buttons?

2008-06-16 Thread Bruno Cavestro
Thanks a lot

Could you tell me what's the TLD file that should be modified? and if I am
not asking to much could You send the "diff" between new and old TLD file
to get name and onclick accepting variables ...

Another question about jsp, easier one: if each 4 iterations I would
introduce a what should I do?


Sincerely
Bruno Cavestro

-Message d'origine-
De : Dave Newton [mailto:[EMAIL PROTECTED]
Envoye : lundi 16 juin 2008 15:19
A : Struts Users Mailing List
Objet : RE: iterators for input buttons?


Oh, I forgot; after S2.0.mumble EL is turned off in the tags because of the
potential security issue. Some of us have been "fixing" the TLD to allow
this if the app takes into account the risks.

Sorry, slipped my mind.

Dave

--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:

> From: Bruno Cavestro <[EMAIL PROTECTED]>
> Subject: RE: iterators for input buttons?
> To: "Struts Users Mailing List" 
> Date: Monday, June 16, 2008, 9:16 AM
> Hello,
>
> in fact even the name event gives some problems. it seems
> that the TLD does
> not support variables for name
> I have a french error message so I don't think it may
> help
>
>
>
> -Message d'origine-
> De : Bruno Cavestro [mailto:[EMAIL PROTECTED]
> Envoye : lundi 16 juin 2008 14:41
> A : Struts Users Mailing List; [EMAIL PROTECTED]
> Objet : RE: iterators for input buttons?
>
>
>
> Onclick is the real problem! Regular ognl
> " onclick!!!
>
> and the onclick event run a function which will fill some
> textfield with the
> proper value so ...
> any idea?
>
> -Message d'origine-
> De : Dave Newton [mailto:[EMAIL PROTECTED]
> Envoye : lundi 16 juin 2008 13:53
> A : Struts Users Mailing List
> Objet : Re: iterators for input buttons?
>
>
> Did you try just using regular OGNL in the onclick and
> value attributes?
> It'll obviously work for "value", not sure if
> onclick is evaluated.
>
> It seems like it wouldn't take much time to just try
> it.
>
> Dave
>
> --- On Mon, 6/16/08, Bruno Cavestro
> <[EMAIL PROTECTED]> wrote:
>
> > From: Bruno Cavestro <[EMAIL PROTECTED]>
> > Subject: iterators for input buttons?
> > To: "Struts Users Mailing List"
> 
> > Date: Monday, June 16, 2008, 6:44 AM
> > Hello,
> >
> > I want my jsp code to use an iterator. The goal is to
> get
> > my html page
> > contains some code like the following:
> >
> >  > METHOD="POST">
> >  > VALUE="value1_fromIterator"
> >
> ONCLICK="button1('value1_fromIterator')">
> >  > VALUE="value2_fromIterator"
> >
> ONCLICK="button1('value2_fromIterator')">
> > ...
> > 
> >
> > so .. given the basic iteration:
> >  
> > 
> >  
> >
> > How can I do that? And How can I force each input
> button to
> > have an Onclick
> > event associated?
> >
> >
> >
> >
> >
> >
> -
> > 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]
>
>
> -
> 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]



RE: iterators for input buttons?

2008-06-16 Thread Dave Newton
Oh, I forgot; after S2.0.mumble EL is turned off in the tags because of the 
potential security issue. Some of us have been "fixing" the TLD to allow this 
if the app takes into account the risks.

Sorry, slipped my mind.

Dave

--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:

> From: Bruno Cavestro <[EMAIL PROTECTED]>
> Subject: RE: iterators for input buttons?
> To: "Struts Users Mailing List" 
> Date: Monday, June 16, 2008, 9:16 AM
> Hello,
> 
> in fact even the name event gives some problems. it seems
> that the TLD does
> not support variables for name
> I have a french error message so I don't think it may
> help
> 
> 
> 
> -Message d'origine-
> De : Bruno Cavestro [mailto:[EMAIL PROTECTED]
> Envoye : lundi 16 juin 2008 14:41
> A : Struts Users Mailing List; [EMAIL PROTECTED]
> Objet : RE: iterators for input buttons?
> 
> 
> 
> Onclick is the real problem! Regular ognl
> " onclick!!!
> 
> and the onclick event run a function which will fill some
> textfield with the
> proper value so ...
> any idea?
> 
> -Message d'origine-----
> De : Dave Newton [mailto:[EMAIL PROTECTED]
> Envoye : lundi 16 juin 2008 13:53
> A : Struts Users Mailing List
> Objet : Re: iterators for input buttons?
> 
> 
> Did you try just using regular OGNL in the onclick and
> value attributes?
> It'll obviously work for "value", not sure if
> onclick is evaluated.
> 
> It seems like it wouldn't take much time to just try
> it.
> 
> Dave
> 
> --- On Mon, 6/16/08, Bruno Cavestro
> <[EMAIL PROTECTED]> wrote:
> 
> > From: Bruno Cavestro <[EMAIL PROTECTED]>
> > Subject: iterators for input buttons?
> > To: "Struts Users Mailing List"
> 
> > Date: Monday, June 16, 2008, 6:44 AM
> > Hello,
> >
> > I want my jsp code to use an iterator. The goal is to
> get
> > my html page
> > contains some code like the following:
> >
> >  > METHOD="POST">
> >  > VALUE="value1_fromIterator"
> >
> ONCLICK="button1('value1_fromIterator')">
> >  > VALUE="value2_fromIterator"
> >
> ONCLICK="button1('value2_fromIterator')">
> > ...
> > 
> >
> > so .. given the basic iteration:
> >  
> > 
> >  
> >
> > How can I do that? And How can I force each input
> button to
> > have an Onclick
> > event associated?
> >
> >
> >
> >
> >
> >
> -
> > 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]
> 
> 
> -
> 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]



RE: iterators for input buttons?

2008-06-16 Thread Bruno Cavestro
Hello,

in fact even the name event gives some problems. it seems that the TLD does
not support variables for name
I have a french error message so I don't think it may help



-Message d'origine-
De : Bruno Cavestro [mailto:[EMAIL PROTECTED]
Envoye : lundi 16 juin 2008 14:41
A : Struts Users Mailing List; [EMAIL PROTECTED]
Objet : RE: iterators for input buttons?



Onclick is the real problem! Regular ognl "mailto:[EMAIL PROTECTED]
Envoye : lundi 16 juin 2008 13:53
A : Struts Users Mailing List
Objet : Re: iterators for input buttons?


Did you try just using regular OGNL in the onclick and value attributes?
It'll obviously work for "value", not sure if onclick is evaluated.

It seems like it wouldn't take much time to just try it.

Dave

--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:

> From: Bruno Cavestro <[EMAIL PROTECTED]>
> Subject: iterators for input buttons?
> To: "Struts Users Mailing List" 
> Date: Monday, June 16, 2008, 6:44 AM
> Hello,
>
> I want my jsp code to use an iterator. The goal is to get
> my html page
> contains some code like the following:
>
>  METHOD="POST">
>  VALUE="value1_fromIterator"
> ONCLICK="button1('value1_fromIterator')">
>  VALUE="value2_fromIterator"
> ONCLICK="button1('value2_fromIterator')">
>   ...
> 
>
> so .. given the basic iteration:
>  
> 
>  
>
> How can I do that? And How can I force each input button to
> have an Onclick
> event associated?
>
>
>
>
>
> -
> 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]


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



RE: iterators for input buttons?

2008-06-16 Thread Dave Newton
--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:
> Onclick is the real problem! Regular ognl " support onclick!!! [...] any idea?

You cold try using JSP EL; if you're creating an OGNL variable with the 
 you should be able to access it via ${}. S2 uses a custom 
request wrapper that will look in stack context if the property isn't found in 
a normal JEE-scoped attribute.

Dave


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



RE: iterators for input buttons?

2008-06-16 Thread Bruno Cavestro

Onclick is the real problem! Regular ognl "mailto:[EMAIL PROTECTED]
Envoye : lundi 16 juin 2008 13:53
A : Struts Users Mailing List
Objet : Re: iterators for input buttons?


Did you try just using regular OGNL in the onclick and value attributes?
It'll obviously work for "value", not sure if onclick is evaluated.

It seems like it wouldn't take much time to just try it.

Dave

--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:

> From: Bruno Cavestro <[EMAIL PROTECTED]>
> Subject: iterators for input buttons?
> To: "Struts Users Mailing List" 
> Date: Monday, June 16, 2008, 6:44 AM
> Hello,
>
> I want my jsp code to use an iterator. The goal is to get
> my html page
> contains some code like the following:
>
>  METHOD="POST">
>  VALUE="value1_fromIterator"
> ONCLICK="button1('value1_fromIterator')">
>  VALUE="value2_fromIterator"
> ONCLICK="button1('value2_fromIterator')">
>   ...
> 
>
> so .. given the basic iteration:
>  
> 
>  
>
> How can I do that? And How can I force each input button to
> have an Onclick
> event associated?
>
>
>
>
>
> -
> 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]



Re: iterators for input buttons?

2008-06-16 Thread Dave Newton
Did you try just using regular OGNL in the onclick and value attributes? It'll 
obviously work for "value", not sure if onclick is evaluated.

It seems like it wouldn't take much time to just try it.

Dave

--- On Mon, 6/16/08, Bruno Cavestro <[EMAIL PROTECTED]> wrote:

> From: Bruno Cavestro <[EMAIL PROTECTED]>
> Subject: iterators for input buttons?
> To: "Struts Users Mailing List" 
> Date: Monday, June 16, 2008, 6:44 AM
> Hello,
> 
> I want my jsp code to use an iterator. The goal is to get
> my html page
> contains some code like the following:
> 
>  METHOD="POST">
>  VALUE="value1_fromIterator"
> ONCLICK="button1('value1_fromIterator')">
>  VALUE="value2_fromIterator"
> ONCLICK="button1('value2_fromIterator')">
>   ...
> 
> 
> so .. given the basic iteration:
>  
> 
>  
> 
> How can I do that? And How can I force each input button to
> have an Onclick
> event associated?
> 
> 
> 
> 
> 
> -
> 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]



iterators for input buttons?

2008-06-16 Thread Bruno Cavestro
Hello,

I want my jsp code to use an iterator. The goal is to get my html page
contains some code like the following:




...


so .. given the basic iteration:
 

 

How can I do that? And How can I force each input button to have an Onclick
event associated?





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