thanks for the reply, I thought about this method but I will have many "doEntity" calls on one form, and multiple hidden fields of the same name with no way to distinguish between them. In other words, if I hit the button labelled "language" I need the hidden field set to that versus if I hit the button "contact." Maybe I can use javascript to set the hidden field correctly? Let me give it a shot I will let you know, thank you!
Luke Majewski ----- Original Message ----- From: "Keith Seim" <[EMAIL PROTECTED]> To: "Turbine Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 4:38 PM Subject: Re: parameter passing help Ahh, parameter passing... I too have been stumped with these (see my messages from today ;). I believe I can help you with this Query: Your <input> tag should be inside a <form> tag. I believe all you need to do is add another tag inside the form tag (as you would in normal cgi programming): <input type="hidden" name="entity" value="$stringOfYourChoosing"> Havn't tested it, but I'm pretty sure that should work... if it doesn't you can complain at me :). Oh, and if anyone can help with my posts below, it'd be appreciated! Keith On Wednesday, July 9, 2003, at 04:27 PM, Luke Majewski wrote: > Hi, > > I've looked for a decent amount on how to pass parameters to action > events with no luck. > > This is a fairly simple request, so I hope someone has the answer: > > I have in my vm file: > > <input type="submit" name="eventSubmit_doEntity" value="Edit Contacts"/> > > and I have a in my java: > > public void doEntity(RunData data, Context context, String entity) > throws Exception > > Now, I know that "data" and "context" get passed in there > automatically, but if I want a String of my choosing to be passed as > "entity", how would I go about that? I assume there is some syntax > that I can use , something like name="eventSubmit_doEntity?entity..." > etc but I can't figure it out. > > Any help would be appreciated, thank you! > > Luke Majewski > ___________________________________ Keith Seim • http://kjsdesigns.com --------------------------------------------------------------------- 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]
