You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Art Vandalay <av...@yahoo.com> on 2003/02/24 19:30:10 UTC
LookupDispatchAction w/ Buttons & Images
I have a page that has 7 text buttons, an HTML table
with repeating rows of data, and 2 images. The images,
Previous and Next, allow a user to scroll through the
data that is displayed in the HTML table.
I chose to implement this as a LookupDispatchAction
originally because each of the 7 buttons will submit
the form. But the 2 images will also need to submit
the form. I'm not sure how to do this.
How do I tell Struts to set the parameter value
identified in my struts_config for the image that was
clicked as it does for the text buttons? There is no
"property" attribute on <html:image> (well, there is
but its deprecated and was used for a different
purpose). Do I need to do this myself in my javascript
that submits the form?
If anyone has done this before and has any
examples/advice I'd appreciate it.
TIA.
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: LookupDispatchAction w/ Buttons & Images
Posted by Vic Cekvenich <vc...@basebeans.com>.
I read your post that said: I wants an example of images to submit.
You got a link to a working example, and how it works.
Please don't call me in-effective. I promise I will try to concentrate.
See what nice gets you.
Vic, aka not nice anymore, nor effective.
Art Vandalay wrote:
> Thanks, but that older post from the archives does not
> answer my question. I had searched the archive, like I
> always do and found no previous answer to my question.
>
> Maybe instead of being a "nice" guy you should
> concentrate on being an "effective" guy.
>
>
> --- Vic Cekvenich <vc...@basebeans.com> wrote:
>
>>By searching the mail archive for you for other
>>times this question was
>>asked:
>>
>
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg48962.html
>
>>Vic, a nice guy.
>>
>>
>>Art Vandalay wrote:
>>
>>>I have a page that has 7 text buttons, an HTML
>>
>>table
>>
>>>with repeating rows of data, and 2 images. The
>>
>>images,
>>
>>>Previous and Next, allow a user to scroll through
>>
>>the
>>
>>>data that is displayed in the HTML table.
>>>
>>>I chose to implement this as a
>>
>>LookupDispatchAction
>>
>>>originally because each of the 7 buttons will
>>
>>submit
>>
>>>the form. But the 2 images will also need to
>>
>>submit
>>
>>>the form. I'm not sure how to do this.
>>>
>>>How do I tell Struts to set the parameter value
>>>identified in my struts_config for the image that
>>
>>was
>>
>>>clicked as it does for the text buttons? There is
>>
>>no
>>
>>>"property" attribute on <html:image> (well, there
>>
>>is
>>
>>>but its deprecated and was used for a different
>>>purpose). Do I need to do this myself in my
>>
>>javascript
>>
>>>that submits the form?
>>>
>>>If anyone has done this before and has any
>>>examples/advice I'd appreciate it.
>>>
>>>TIA.
>>>
>>>__________________________________________________
>>>Do you Yahoo!?
>>>Yahoo! Tax Center - forms, calculators, tips, more
>>>http://taxes.yahoo.com/
>>
>>
>>
>>
> ---------------------------------------------------------------------
>
>>To unsubscribe, e-mail:
>>struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>struts-user-help@jakarta.apache.org
>>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: LookupDispatchAction w/ Buttons & Images
Posted by Art Vandalay <av...@yahoo.com>.
Thanks, but that older post from the archives does not
answer my question. I had searched the archive, like I
always do and found no previous answer to my question.
Maybe instead of being a "nice" guy you should
concentrate on being an "effective" guy.
--- Vic Cekvenich <vc...@basebeans.com> wrote:
> By searching the mail archive for you for other
> times this question was
> asked:
>
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg48962.html
>
> Vic, a nice guy.
>
>
> Art Vandalay wrote:
> > I have a page that has 7 text buttons, an HTML
> table
> > with repeating rows of data, and 2 images. The
> images,
> > Previous and Next, allow a user to scroll through
> the
> > data that is displayed in the HTML table.
> >
> > I chose to implement this as a
> LookupDispatchAction
> > originally because each of the 7 buttons will
> submit
> > the form. But the 2 images will also need to
> submit
> > the form. I'm not sure how to do this.
> >
> > How do I tell Struts to set the parameter value
> > identified in my struts_config for the image that
> was
> > clicked as it does for the text buttons? There is
> no
> > "property" attribute on <html:image> (well, there
> is
> > but its deprecated and was used for a different
> > purpose). Do I need to do this myself in my
> javascript
> > that submits the form?
> >
> > If anyone has done this before and has any
> > examples/advice I'd appreciate it.
> >
> > TIA.
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: LookupDispatchAction w/ Buttons & Images
Posted by James Mitchell <jm...@apache.org>.
Hey, that's not fair. Your sig is better than mine :)
--
James Mitchell
Software Engineer/Struts Evangelist
"Beer is the reason we get up each afternoon."
Ray McNeill
> -----Original Message-----
> From: Vic Cekvenich [mailto:vc@basebeans.com]
> Sent: Monday, February 24, 2003 2:34 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: LookupDispatchAction w/ Buttons & Images
>
>
> By searching the mail archive for you for other times this
> question was
> asked:
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg
> 48962.html
>
> Vic, a nice guy.
>
>
> Art Vandalay wrote:
> > I have a page that has 7 text buttons, an HTML table
> > with repeating rows of data, and 2 images. The images,
> > Previous and Next, allow a user to scroll through the
> > data that is displayed in the HTML table.
> >
> > I chose to implement this as a LookupDispatchAction
> > originally because each of the 7 buttons will submit
> > the form. But the 2 images will also need to submit
> > the form. I'm not sure how to do this.
> >
> > How do I tell Struts to set the parameter value
> > identified in my struts_config for the image that was
> > clicked as it does for the text buttons? There is no
> > "property" attribute on <html:image> (well, there is
> > but its deprecated and was used for a different
> > purpose). Do I need to do this myself in my javascript
> > that submits the form?
> >
> > If anyone has done this before and has any
> > examples/advice I'd appreciate it.
> >
> > TIA.
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: LookupDispatchAction w/ Buttons & Images
Posted by Vic Cekvenich <vc...@basebeans.com>.
By searching the mail archive for you for other times this question was
asked:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg48962.html
Vic, a nice guy.
Art Vandalay wrote:
> I have a page that has 7 text buttons, an HTML table
> with repeating rows of data, and 2 images. The images,
> Previous and Next, allow a user to scroll through the
> data that is displayed in the HTML table.
>
> I chose to implement this as a LookupDispatchAction
> originally because each of the 7 buttons will submit
> the form. But the 2 images will also need to submit
> the form. I'm not sure how to do this.
>
> How do I tell Struts to set the parameter value
> identified in my struts_config for the image that was
> clicked as it does for the text buttons? There is no
> "property" attribute on <html:image> (well, there is
> but its deprecated and was used for a different
> purpose). Do I need to do this myself in my javascript
> that submits the form?
>
> If anyone has done this before and has any
> examples/advice I'd appreciate it.
>
> TIA.
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org