Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Why does html:submit work differently than html:link action=?

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 being

RE: Re: Why does html:submit work differently than html:link action=?

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 html:submit work differently than html:link action=? hi Robert, yes i've tried using javascript, but i must

Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Why does html:submit work differently than html:link action=?

2004-07-28 Thread Matt Bathje
Subject: RE: Re: Why does html:submit work differently than html:link action=? -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 html:submit work differently than

Re: Re: Why does html:submit work differently than html:link action=?

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: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Re: Why does html:submit work differently than html:link action=?

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

RE: Re: Why does html:submit work differently than html:link action=?

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 html:submit work differently than html:link action=? At 09:39 AM 7

Re: Re: Why does html:submit work differently than html:link action=?

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 html:form 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

Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Re: Why does html:submit work differently than html:link action=?

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

RE: Re: Why does html:submit work differently than html:link action=?

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 html:submit work differently than html:link action=? Jim, heh, i would prefer not to use javascript, but i

Re: Re: Re: Why does html:submit work differently than html:link action=?

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: Re: Re: Why does html:submit work differently than html:link action=?

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

RE: Re: Re: Re: Why does html:submit work differently than html:link action=?

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]

Re: Re: Why does html:submit work differently than html:link action=?

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

RE: Re: Re: Re: Why does html:submit work differently than html:link action=?

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 html:submit work differently than html:link action=? At 10:25 AM 7/28/2004, you wrote: Nope. It's

Re: Re: Re: Re: Why does html:submit work differently than html:link action=?

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

Re: Re: Why does html:submit work differently than html:link action=?

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 a

Re: Re: Why does html:submit work differently than html:link action=?

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