You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jean-Baptiste Onofré <jb...@phpfr.org> on 2003/02/24 07:35:06 UTC
Number of 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
jbonofre@phpfr.org
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
jbonofre@lug-beziers.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Number of in JSP
Posted by "Michael C. Lee Jr." <ml...@hotmail.com>.
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é" <jb...@phpfr.org>
To: <st...@jakarta.apache.org>
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
> jbonofre@phpfr.org
> Membre fondateur du LUG Béziers
> http://www.lug-beziers.org
> jbonofre@lug-beziers.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Number of in JSP
Posted by Jean-Baptiste Onofré <jb...@phpfr.org>.
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
jbonofre@phpfr.org
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
jbonofre@lug-beziers.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Number of in JSP
Posted by James Mitchell <jm...@apache.org>.
> -----Original Message-----
> From: Jean-Baptiste Onofré [mailto:jbonofre@phpfr.org]
> Sent: Monday, February 24, 2003 1:35 AM
> To: struts-user@jakarta.apache.org
> 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
> jbonofre@phpfr.org
> Membre fondateur du LUG Béziers
> http://www.lug-beziers.org
> jbonofre@lug-beziers.org
>
--
James Mitchell
Software Engineer/Struts Evangelist
"Beer is the reason we get up each afternoon."
Ray McNeill
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org