Re: Getting index inside iterate / pager tag [SOLVED]

2002-04-30 Thread Struts Developer

I was trying to use the getIndex() method improperly, that was giving me the 
error message.

When I added indexId="myIndex" to the iterate tag statement, and then 
changed my html:link tag to incorporate myIndex, I got the result I was 
looking for: a link from inside an iteration loop that contained the index 
of that row. Now my follow up action will know which row was selected 
(clicked) by the user.

The code now:



...






>From: "Struts Developer" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Getting index inside iterate / pager tag
>Date: Mon, 29 Apr 2002 14:13:08 -0500
>
>All -
>
>I am trying to get the index of the current row inside an iterate tag so
>that a link on that row properly identifies itself to the subsequent action
>class. However, all I get is a Class Not Found error pointing to the
>collection I am iterating.
>
>Here is my code:
>
>type="dhs.vcm.vis.form.NameSearchResultsForm">
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have tried using both "nameSearchResults" and "results" followed by the
>getIndex() call.
>
>What am I screwing up?
>
>TIA,
>/\/\ark
>
>_
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Getting index inside iterate / pager tag

2002-04-30 Thread Nicolas De Loof

indexId defines the name of the Integer stored in page scope AND the name of
a scripting variable created in your JSP.
so in example you can use

or
<%= inx %>

You can so use the first html:link syntax
Second one is illegal because JSP tag cannot be used as attribute value of
other JPS tags (XML compliant syntax)


Nico












Try it out.
Leo


-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Getting index inside iterate / pager tag


Okay, I looked in the documentation and found that indexId is "The name
of
the scripting variable to be exposed as the current index."

What scripting variable? A new one in my JSP? Something on a bean
perchance?

Are there any examples? Why is it that javadocs are void of sample code?

,

/\/\ark




>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Getting index inside iterate / pager tag
>Date: Mon, 29 Apr 2002 15:17:47 -0400
>
>
>
>Look in the docs for indexId!
>
>Dave
>
>
>
>
>
>"Struts Developer"
<[EMAIL PROTECTED]>
>on
>04/29/2002 03:13:08 PM
>
>Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Getting index inside iterate / pager tag
>
>
>
>All -
>
>I am trying to get the index of the current row inside an iterate tag
so
>that a link on that row properly identifies itself to the subsequent
action
>class. However, all I get is a Class Not Found error pointing to the
>collection I am iterating.
>
>Here is my code:
>
>type="dhs.vcm.vis.form.NameSearchResultsForm">
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have tried using both "nameSearchResults" and "results" followed by
the
>getIndex() call.
>
>What am I screwing up?
>
>TIA,
>/\/\ark
>
>_
>Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>


_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


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

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


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




RE: Getting index inside iterate / pager tag

2002-04-29 Thread Leonardo Maciel

Since indexId defines the name on the JSP bean you can use it as any
other bean.












Try it out.
Leo


-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: Re: Getting index inside iterate / pager tag


Okay, I looked in the documentation and found that indexId is "The name
of 
the scripting variable to be exposed as the current index."

What scripting variable? A new one in my JSP? Something on a bean
perchance?

Are there any examples? Why is it that javadocs are void of sample code?

,

/\/\ark




>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Getting index inside iterate / pager tag
>Date: Mon, 29 Apr 2002 15:17:47 -0400
>
>
>
>Look in the docs for indexId!
>
>Dave
>
>
>
>
>
>"Struts Developer"
<[EMAIL PROTECTED]> 
>on
>04/29/2002 03:13:08 PM
>
>Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Getting index inside iterate / pager tag
>
>
>
>All -
>
>I am trying to get the index of the current row inside an iterate tag
so
>that a link on that row properly identifies itself to the subsequent
action
>class. However, all I get is a Class Not Found error pointing to the
>collection I am iterating.
>
>Here is my code:
>
>type="dhs.vcm.vis.form.NameSearchResultsForm">
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have tried using both "nameSearchResults" and "results" followed by
the
>getIndex() call.
>
>What am I screwing up?
>
>TIA,
>/\/\ark
>
>_
>Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


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

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




Re: Getting index inside iterate / pager tag

2002-04-29 Thread Struts Developer

Okay, I looked in the documentation and found that indexId is "The name of 
the scripting variable to be exposed as the current index."

What scripting variable? A new one in my JSP? Something on a bean perchance?

Are there any examples? Why is it that javadocs are void of sample code?

,

/\/\ark




>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Getting index inside iterate / pager tag
>Date: Mon, 29 Apr 2002 15:17:47 -0400
>
>
>
>Look in the docs for indexId!
>
>Dave
>
>
>
>
>
>"Struts Developer" <[EMAIL PROTECTED]> 
>on
>04/29/2002 03:13:08 PM
>
>Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:(bcc: David Hay/Lex/Lexmark)
>Subject:  Getting index inside iterate / pager tag
>
>
>
>All -
>
>I am trying to get the index of the current row inside an iterate tag so
>that a link on that row properly identifies itself to the subsequent action
>class. However, all I get is a Class Not Found error pointing to the
>collection I am iterating.
>
>Here is my code:
>
>type="dhs.vcm.vis.form.NameSearchResultsForm">
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>I have tried using both "nameSearchResults" and "results" followed by the
>getIndex() call.
>
>What am I screwing up?
>
>TIA,
>/\/\ark
>
>_
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Getting index inside iterate / pager tag

2002-04-29 Thread dhay



Look in the docs for indexId!

Dave





"Struts Developer" <[EMAIL PROTECTED]> on
04/29/2002 03:13:08 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Getting index inside iterate / pager tag



All -

I am trying to get the index of the current row inside an iterate tag so
that a link on that row properly identifies itself to the subsequent action
class. However, all I get is a Class Not Found error pointing to the
collection I am iterating.

Here is my code:




 














I have tried using both "nameSearchResults" and "results" followed by the
getIndex() call.

What am I screwing up?

TIA,
/\/\ark

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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








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




RE: Getting index inside iterate / pager tag

2002-04-29 Thread Leonardo Maciel

have you try ti use indexId?



indexId = The name of a page scope JSP bean that will contain the current
index of the collection on each iteration.

I don't have a sample code, but I saw it before posted in the list

Thx
Leo


-Original Message-
From: Struts Developer [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Getting index inside iterate / pager tag


All -

I am trying to get the index of the current row inside an iterate tag so 
that a link on that row properly identifies itself to the subsequent action 
class. However, all I get is a Class Not Found error pointing to the 
collection I am iterating.

Here is my code:




 














I have tried using both "nameSearchResults" and "results" followed by the 
getIndex() call.

What am I screwing up?

TIA,
/\/\ark

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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

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




Getting index inside iterate / pager tag

2002-04-29 Thread Struts Developer

All -

I am trying to get the index of the current row inside an iterate tag so 
that a link on that row properly identifies itself to the subsequent action 
class. However, all I get is a Class Not Found error pointing to the 
collection I am iterating.

Here is my code:




 














I have tried using both "nameSearchResults" and "results" followed by the 
getIndex() call.

What am I screwing up?

TIA,
/\/\ark

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: