Re: Some JSP Taglib help needed

2006-08-01 Thread Bart Busschots
Thanks for that Ed, I was thinking that it would make sense to have the form element be a list of some sort, however, can the StrutsValidator deal with validating all the elements of a variable list? Thanks for your help, Bart. Ed Griebel wrote: You could try something like: or create s

Re: Some JSP Taglib help needed

2006-08-01 Thread Al Eridani
On 8/1/06, Bart Busschots <[EMAIL PROTECTED]> wrote: I can't see how to use the foreach tag in my case. ... " value="" /> ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: Some JSP Taglib help needed

2006-08-01 Thread Ed Griebel
You could try something like: or create student_name as a java.util.List if using a POJO for an ActionForm - Create a setup action that is called before the JSP is initially rendered which does a '((MyFormType)form).student_name = new java.util.ArrayList();' - In the JSP form: ... -ed On 8

Re: Some JSP Taglib help needed

2006-08-01 Thread Bart Busschots
I can't see how to use the foreach tag in my case. I have no collection to loop through, just a number of times I need to loop and I need to access this "counter" within my loop. I immediately thought of the c:foreach and logic:iterate tags but can't see how to make them work in this case. Ba

Re: Some JSP Taglib help needed

2006-08-01 Thread Al Eridani
On 8/1/06, Bart Busschots <[EMAIL PROTECTED]> wrote: I have a number stored in a bean which I can get at just fine (tested with bean:write). What I need to do is loop from 1 to that number and print a text area for each element in that range.

Some JSP Taglib help needed

2006-08-01 Thread Bart Busschots
I want to do some thing that I think should be simple but I can't figure out how to do it with the Struts taglibs. So far I've never used a single scriptlet and I don't want to start now. I have a number stored in a bean which I can get at just fine (tested with bean:write). What I need to