Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:55 AM 7/28/2004, you wrote: the first issue that comes to mind is that the tabbed menus are in a separate Tile from the one that contains the tags. For submit buttons to work, they'd have to be *within* the form tags, and AFAIK you can't split the form across multiple Tiles. You can split t

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:56 AM 7/28/2004, you wrote: Is it possible to use CSS to make a button look like a hyperlink (I have very limited CSS myself)? Heck, Paul, you can use the struts tag to make the button "look like a hyperlink". There is nothing special about this. Check out the Struts HTML image tag which

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:55 AM 7/28/2004, you wrote: I'm going to bow out of this now-- you have your solution, I have mine, both of them work, and the OP can choose one of the many ideas that have been thrown out there and be on his way. Okay dokay, and agreed. I always like discussing these things with you Wendy

RE: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:40 AM 7/28/2004, you wrote: Michael, I use this approach fairly often. A typical scenario would be an order confirmation screen where the user can enter delivery details and remove items from their shopping basket (by clicking on a hyperlink). It is important that any details the user enters

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
>Wendy wrote: > >The text on each tab is a > >hyperlink, and I *have* to make the form submit when the user clicks to > >switch to another tab, or I lose whatever they've typed on the form. I do > >it with JavaScript: > >Michael wrote: > This is the problem, Wendy. Don't make the text on the tag

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
)? cheers, Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: 28 July 2004 18:43 > To: Struts Users Mailing List > Subject: Re: Re: Re: Re: Why does work differently than > ? > > > At 10:16 AM 7/28/2004, you wrote: > &g

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:36 AM 7/28/2004, you wrote: We're geeks who expects tact? :) I understood what you said. And you're probalby right.. Good point! ///8-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:42 AM 7/28/2004, you wrote: if([ActionForm].getButton().getFirstChoice().pressed()) { // do whatever } else if ([ActionForm].getButton().getSecondChoice().pressed()) { // do whatever } else if([ActionForm].getButton().getSecondChoice().pressed()) { // do whatever } else { // throw exc

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:16 AM 7/28/2004, you wrote: i'm a Struts newbie. and while playing around with this situation i wasn't seeing my values getting populated in my actionform. i figured it had to do with the way i set up my Struts tags, , and their parameters. so in the Struts world, is there a way to submit a

RE: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
they remove an item. Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: 28 July 2004 17:55 > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > At 09:52 AM 7/28

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:31 AM > To: Struts Users Mailing List > Subject: RE: Re: Re: Re: Why does work differently than > ? > > > At 10:25 AM 7/28/2004, you wrote: > >

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:12 AM 7/28/2004, you wrote: The text on each tab is a hyperlink, and I *have* to make the form submit when the user clicks to switch to another tab, or I lose whatever they've typed on the form. I do it with JavaScript: This is the problem, Wendy. Don't make the text on the tag a hyperlink

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:25 AM 7/28/2004, you wrote: Nope. It's not a struts issue at all... it's an HTML issue. My response was not really too tactful, Jim. Sorry! I am not a very tactful person. - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:25 AM 7/28/2004, you wrote: Nope. It's not a struts issue at all... it's an HTML issue. Struts tags just generate html (well, except the validation tag.). What you want would be difficult to genreate in any kind of sensical way. This is not true. The tags may just generate HTML, but t

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:16 AM 7/28/2004, you wrote: Sorry Michael, i wasn't ignoring you. you must've responded to each of my responses to the others. :) the original problem was that i have to add a product to the database. when the user clicks the initial add button they are taken to a page that has three links o

RE: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
Andrew Close [mailto:[EMAIL PROTECTED] > Sent: 28 July 2004 17:52 > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > Jim, > > heh, i would prefer not to use javascript, but i couldn't think of

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:17 AM > To: Struts Users Mailing List > Subject: Re: Re: Re: Re: Why does work differently than > ? > > > Sorry Michael, i wasn't ignoring you. yo

RE: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:13 AM 7/28/2004, you wrote: I'm guessing the problem is client/boss/marketroids. Given what he said to me about not liking js either and he mentioned he was asked to use links for the form submission Something this hoaky is probably client/marketroids. My money is on marketroids. If

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Sorry Michael, i wasn't ignoring you. you must've responded to each of my responses to the others. :) the original problem was that i have to add a product to the database. when the user clicks the initial add button they are taken to a page that has three links on it. Add Member Product Add No

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: if i was 'allowed' to use separate submit buttons i would do that. or even radio buttons and a single submit button. but i was asked to use hyperlinks... Is this just a school problem where the instructor wants to see if you can do something goofy? If so, pleas

RE: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:10 AM > To: Struts Users Mailing List > Subject: Re: Re: Re: Why does work differently than > ? > > > At 09:58 AM 7/28/2004, you wrote: > >i

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
From: "Michael McGrady" <[EMAIL PROTECTED]> > Why in Heaven's name would you want to submit a form with a link? This is not as odd as you seem to think. Case in point... I have a tabbed menu, and each tab has a [Struts] form on it. The text on each tab is a hyperlink, and I *have* to make the

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: if i was 'allowed' to use separate submit buttons i would do that. YOU ARE ALLOWED TO USE SEPARATE SUBMIT BUTTONS. PLEASE TELL US WHAT THE DARN PROBLEM IS. - To unsubscribe, e-mail: [EMAIL PR

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: i agree, what i'm attempting is kindof goofy. Hi, Andy, You are stuck in a bad solution and all the discussion is about the goofy solution. However, if you would, once again, just tell us what the problem is, we can give you solutions, I would bet, that are not

RE: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 9:52 AM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > Jim, > > heh, i woul

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Hi Michael, i agree, what i'm attempting is kindof goofy. i'm trying to submit a form using a hyper-link instead of a submit button. i have three links on the page that perform similar but different actions. each link sets a value in a hidden field that should be picked up by the actionform upon

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:52 AM 7/28/2004, you wrote: heh, i would prefer not to use javascript, but i couldn't think of another way to submit the form with links. Why in Heaven's name would you want to submit a form with a link? Please step back one step further and tell us why you want to use a link to do what i

Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Jim, heh, i would prefer not to use javascript, but i couldn't think of another way to submit the form with links. the form is a and all of the html components inside the form are Struts html components. the link just has an onclick parameter in it that calls the javascript. the javascript is

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:46 AM 7/28/2004, you wrote: yes my submit button is named submit. but when i tested using it i wasn't using javascript. ;) only the links are using javascript to set one hidden field on the form. i hard coded that value with the submit button. in all cases the hardcoded value or the value

RE: Re: Why does work differently than ?

2004-07-28 Thread Geeta Ramani
+1 on this.. Actually make that a +100..:) > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:44 PM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:41 AM 7/28/2004, you wrote: Robert, :i'm seeing the data, but when i set breakpoints in my actionform set methods, two of them aren't being called... andy The question, Andy, whatever your problem is, that Robert is posing is whether "form.field.value" shows the data. Whether you are just s

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Hi Wendy, yes my submit button is named submit. but when i tested using it i wasn't using javascript. ;) only the links are using javascript to set one hidden field on the form. i hard coded that value with the submit button. in all cases the hardcoded value or the value set via javascript is p

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:39 AM 7/28/2004, you wrote: Andy - Based on your email it is hard to tell, but I think you are attempting to do a form.submit(); call in the link action to submit the form. Andy, I would be willing to bet against pretty heavy odds that your attempted solution here, Andy, is not necessary or

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Robert, :) i'm a step ahead of you. my values do show up in the client side html before submitting the form. and they show up in alert statements upon submission. that is what is so puzzling. i'm seeing the data, but when i set breakpoints in my actionform set methods, two of them aren't bein

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
Andrew, could you restate what you are trying to do? Why are you using JavaScript? My guess is there is a safer and sounder way to solve whatever your problem is, if you merely are trying to submit a form with some issues which are unknown to me around that. Michael -

Re: Re: Why does work differently than ?

2004-07-28 Thread Matt Bathje
This works far more reliably for me. Matt Bathje (sorry for the non-struts stuff!) - Original Message - From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, July 28, 2004 11:16 AM Subject: RE

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
Hi, Andrew: If you are going to show HTML try the tag and change the HTML tags with "<" and ">" instead of < and >. What you are doing, Andrew, is not clear to me. You have talked about using instead of to submit a form. I have no idea why you would ever think these two would work the sam

RE: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 9:10 AM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > hi Robert, > > yes i&

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
From: "Andrew Close" <[EMAIL PROTECTED]> > 2) Wendy gave me a > slightly different approach to try by calling the function and setting > the values of the hidden fields and then submitting. however, two of > the hidden fields are set upon arrival to the page by my action form. > but they are not b

Re: Re: Why does work differently than ?

2004-07-28 Thread Robert Miller
Andy, I don't have an answer but what I would try first is examining those values on the client. First do a view source on your generated HTML and make sure your values are there. Next in your Javascript after you've set any values but before you submit your form (which should be last anyway) use a

Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
hi Robert, yes i've tried using javascript, but i must be doing something wrong. i've tried two approaches. 1) i was calling a javascript function that set the action for me and then submited the form. but the values inside my hidden fields weren't getting picked up. 2) Wendy gave me a slightl