tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart N. Locanthi" <b...@sabl.com>
Subject re: arrays
Date Thu, 20 Jul 2000 15:51:46 GMT
write your own function or taglib thing to deal with it. i submitted
such a scheme to gnujsp but it was off-spec.

come up with your own syntax for arrays - html allows '.' or you could
use the '[]' notation that php uses - and use inspection.

jsp:setproperty is very limited and nearly useless for anything
interesting.

on the one hand the jsp spec is very half-baked; on the other, it is
extensible.

> Date: Thu, 20 Jul 2000 02:06:09 -0500
> To: <tomcat-user@jakarta.apache.org>
> From: "Bob Byron" <bbyron@radit.com>
> Subject: setProperty and arrays
> Message-ID: <000a01bff218$fe52a830$0301a8c0@radit.com>
> 
> I am developing a form that dynamically generates a number of rows.  These
> rows contain inputs.  I was wondering how to utilize the setProperty method
> to post my data?  As an example:
> (The table rows would be generated by a loop)
> <form>
>   <table>
>     <tr><td><input type="text" id="somename"></td></tr>
>     <tr><td><input type="text" id="somename"></td></tr>
>     <tr><td><input type="text" id="somename"></td></tr>
>     <tr><td><input type="text" id="somename"></td></tr>
>     <tr><td><input type="text" id="somename"></td></tr>
>   </table>
> </form>
> 
> So, how do I best process "somename"?  Will my setSomename method be called
> once for each input?  Should I make the names more unique like
> "somename_001", "somename_002", "somename_003", etc.  Any advice on your
> techniques would be appreciated.

Mime
View raw message