RE: struts-el question

2003-06-06 Thread Karr, David
Look at the description of the "c:forEach" tag in the JSTL specification
(or one of the books).  You'll see the "varStatus" attribute.

> -Original Message-
> From: Matthew Van Horn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 04, 2003 6:50 PM
> To: Struts Users Mailing List
> Subject: Re: struts-el question
> 
> > Is there a property in class MyForm named "columns"?
> It's in the base class that MyForm extends.
> >
> > Can you post the block using tags and the error?
> 
> I got it working, although it is not what I would think of as elegant.
> here:
> 
>  step="7">
>   
>step="1">
>   
>   
>value="${candidateSearchForm.candidateColumns[cell]}"/>
>   
>   
>   
>   
>value="${candidateSearchForm.candidateColumns[cell]}"/>
>   
>   
>   
>   
>   
> 
> 
> I wish I had a solution that didn't need the !empty test, or the "row
=
> row + 1" bit.
> 
> 
> 
> 
> 
> > Matthew Van Horn wrote:
> >
> >> How do I access the form bean properties from my jsp page?
> >>
> >> I have a property called columns which is a String[] array.
> >> I'd like to do the equivalent of the following using tags.
> >>
> >> <%
> >> String[] myArray = myForm.getColumns();
> >> for (int i=0; i < myArray.length; i = i+7) {
> >> out.print("");
> >> for (int j=0; j < 7; j++) {
> >> out.print(""+ myArray[(i*7)+j] +"");
> >> }
> >> out.print("");
> >> }
> >> %>
> >>
> >> I tried this (saw it online) -  but I get an error about accessing
the
> >> columns property.
> >>
> >> 
> >>
> >> If it matters, columns is inherited from a BaseForm class.
> >>
> >> Thanks for helping,
> >> Matt
> >>
> >
> 
> 
> -
> 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: struts-el question

2003-06-05 Thread Matthew Van Horn
Is there a property in class MyForm named "columns"?
It's in the base class that MyForm extends.
Can you post the block using tags and the error?
I got it working, although it is not what I would think of as elegant.
here:


	
		
			



			
			

	

			
		
	
	


I wish I had a solution that didn't need the !empty test, or the "row = 
row + 1" bit.





Matthew Van Horn wrote:

How do I access the form bean properties from my jsp page?

I have a property called columns which is a String[] array.
I'd like to do the equivalent of the following using tags.
<%
String[] myArray = myForm.getColumns();
for (int i=0; i < myArray.length; i = i+7) {
out.print("");
for (int j=0; j < 7; j++) {
out.print(""+ myArray[(i*7)+j] +"");
}
out.print("");
}
%>
I tried this (saw it online) -  but I get an error about accessing the
columns property.


If it matters, columns is inherited from a BaseForm class.

Thanks for helping,
Matt



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


RE: struts-el question

2003-06-04 Thread Josh Rayls
Is there a property in class MyForm named "columns"?

-Josh

-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 6:52 AM
To: Struts Users Mailing List
Subject: Re: struts-el question


Can you post the block using tags and the error?

Matthew Van Horn wrote:

> How do I access the form bean properties from my jsp page?
>
> I have a property called columns which is a String[] array.
> I'd like to do the equivalent of the following using tags.
>
> <%
> String[] myArray = myForm.getColumns();
> for (int i=0; i < myArray.length; i = i+7) {
> out.print("");
> for (int j=0; j < 7; j++) {
> out.print(""+ myArray[(i*7)+j] +"");
> }
> out.print("");
> }
> %>
>
> I tried this (saw it online) -  but I get an error about accessing the 
> columns property.
>
> 
>
> If it matters, columns is inherited from a BaseForm class.
>
> Thanks for helping,
> Matt
>
> -
> 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: struts-el question

2003-06-04 Thread David Chelimsky
Can you post the block using tags and the error?

Matthew Van Horn wrote:

How do I access the form bean properties from my jsp page?

I have a property called columns which is a String[] array.
I'd like to do the equivalent of the following using tags.
<%
String[] myArray = myForm.getColumns();
for (int i=0; i < myArray.length; i = i+7) {
out.print("");
for (int j=0; j < 7; j++) {
out.print(""+ myArray[(i*7)+j] +"");
}
out.print("");
}
%>
I tried this (saw it online) -  but I get an error about accessing the 
columns property.



If it matters, columns is inherited from a BaseForm class.

Thanks for helping,
Matt
-
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]


struts-el question

2003-06-04 Thread Matthew Van Horn
How do I access the form bean properties from my jsp page?

I have a property called columns which is a String[] array.
I'd like to do the equivalent of the following using tags.
<%
String[] myArray = myForm.getColumns();
for (int i=0; i < myArray.length; i = i+7) {
out.print("");
for (int j=0; j < 7; j++) {
out.print(""+ myArray[(i*7)+j] +"");
}
out.print("");
}
%>
I tried this (saw it online) -  but I get an error about accessing the 
columns property.



If it matters, columns is inherited from a BaseForm class.

Thanks for helping,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]