From: "Andrew Close" <[EMAIL PROTECTED]>
> so in the Struts world, is there a way to submit a form using a
> hyperlink without using javascript?

In your case, YES, I think this can be done without JavaScript (although
that's still my preferred solution).

The reason is that it does not sound like the user gets to make any changes
to the data on this page with the three links.  In this case, you already
know all three parameters that need to be 'submitted' to the server.

Your three links would look like:

http://www.example.com/strutsapp/someAction.do?param1=a&param2=b&param3=c

param1 would vary for each of the three types of items, and param 2 & 3 come
from the prior form.  There has been some discussion lately about html:link
only taking one parameter... I'd do it with JSTL, but if you have to use the
original struts tags, you can <bean:write> the two params you need to pass
through.

So there isn't really a need for a "form" on this intermediate page, if you
can get *all* of the parameters into the URL, and there are no other choices
that the user gets to make.

Personally I'd still do it with a form, three hidden fields, and JavaScript
to set one of the form elements & submit the form.  Mostly so I could POST
the form and keep the user from bookmarking something they shouldn't.

-- 
Wendy Smoak


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

Reply via email to