RE: Number of logic:equal ... in JSP

2003-02-24 Thread James Mitchell

 -Original Message-
 From: Jean-Baptiste Onofré [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 24, 2003 1:35 AM
 To: [EMAIL PROTECTED]
 Subject: Number of logic:equal ... in JSP
 
 
 Hello all,
 
 i'have a strange Exception in a JSP view.
 
 This JSP include a lot of logic:equal ... testing tag (around 10).
 This JSP raise a exception with this message :
   Illegal target jump or branch
 
 When i delete one of the logic:equal ... or logic:present ..., i
 works fine.

Sounds like you have something like this:

logic:equal name=something property=somethingElse
Do something here
logic:equal/


(Notice the closing logic:equal is not correct)


 
 Is the number of testing tag like logic:equal ... or logic:present
 ... are limited in a JSP ?

No.

 How many number of testing tag i can use ?

Depends on the efficiency of the JSP compiler.

 
 I have another question
 
 
 I generate a html:form ... in a JSP that contains a random number of
 text field. Here's the sample :
 
 html:form ...
 logic:iterate id=price name=productPriceList scope=request
 type=org.nanthrax.ProductPrice
   html:text property=price value=price.price/
 /logic:iterate
 /html:form
 
 How i can connect a FormAction on the form (with a ArrayList 
 for values
 of textfield) ?

Have you considered indexed fields?
http://jakarta.apache.org/struts/faqs/indexedprops.html


 
 Thanks for help
 Best regards
 -- 
 Jean-Baptiste Onofré (Nanthrax)
 Membre fondateur de phpFR.org
 http://www.phpfr.org
 [EMAIL PROTECTED]
 Membre fondateur du LUG Béziers
 http://www.lug-beziers.org
 [EMAIL PROTECTED]
 


--
James Mitchell
Software Engineer/Struts Evangelist


Beer is the reason we get up each afternoon.
   Ray McNeill 



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



Re: Number of logic:equal ... in JSP

2003-02-24 Thread Michael C. Lee Jr.
I can't help with the first one but as for the second one...
We did something similar to the way a couple of struts tags work. If look at
the struts code (we're using 1.0.2) they actually have the fields args1 args
2, etc hard coded. If you know your never going to use more than like 5
parameters then you can just do this. It's not pretty but we were on a tight
deadline and it solves your problem in a timely manner.
Michael Lee

- Original Message -
From: Jean-Baptiste Onofré [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 24, 2003 1:35 AM
Subject: Number of logic:equal ... in JSP


 Hello all,

 i'have a strange Exception in a JSP view.

 This JSP include a lot of logic:equal ... testing tag (around 10).
 This JSP raise a exception with this message :
 Illegal target jump or branch

 When i delete one of the logic:equal ... or logic:present ..., i
 works fine.

 Is the number of testing tag like logic:equal ... or logic:present
 ... are limited in a JSP ?
 How many number of testing tag i can use ?

 I have another question
 

 I generate a html:form ... in a JSP that contains a random number of
 text field. Here's the sample :

 html:form ...
 logic:iterate id=price name=productPriceList scope=request
 type=org.nanthrax.ProductPrice
 html:text property=price value=price.price/
 /logic:iterate
 /html:form

 How i can connect a FormAction on the form (with a ArrayList for values
 of textfield) ?

 Thanks for help
 Best regards
 --
 Jean-Baptiste Onofré (Nanthrax)
 Membre fondateur de phpFR.org
 http://www.phpfr.org
 [EMAIL PROTECTED]
 Membre fondateur du LUG Béziers
 http://www.lug-beziers.org
 [EMAIL PROTECTED]

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003

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



Re: Number of logic:equal ... in JSP

2003-02-24 Thread Jean-Baptiste Onofré
Hello,

thanks for the FAQ about struts-el taglib.

For the logic:equal and logic:present tags, i have verify my syntax :
logic:equal name=object property=prop value=1
Do something
/logic:equal

So it's correct ...

If the erase a logic:equal, it's work (with around 9 testing tags) and
if i add one at a different place, the exception is raise.

Is the imbricated tag limited ?

I have :
logic:present ...
logic:equal ...
logic:equal 
...
/logic:equal
logic:notEqual ...
...
/logic:notEqual ...
/logic:equal
/logic:present

Best regards ...
-- 
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]

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