eztup <eztup.1bchba (AT) news (DOT) webfrustration.com> wrote:
Quote:
I want to submit a form via link, because our customers don't want to
have usual buttons. |
Tell them they are wrong. Of course, you probably want to tell that in
some polite way. But they are.
Quote:
Okay, I could use JavaScript to submit a form, but this does not work
with struts-framework within our JSPs somehow - he seemes to submit the
form twice then it seems :-/ |
Well, using JavaScript as the only way of submitting a form _is_
mostly distorted, is it not?
Quote:
html:link styleClass="headerNav" href="#?buttonSave=clicked"
onclick="javascript:submitForm( 'editUserChainForm' )"
bean:message key="form.submit.save"/
/html:link |
What's that? Not HTML for sure.
Quote:
But I'm looking for an alternative: Isn't it possible to dynamically
generate a transparent gif which looks like a link and which I could
use as an image-button? Is there a JAVA-API for it? |
When in a deep hole, stop digging and climb up.
Use a form with a normal submit button. If your customers insist on
getting hurted, use style sheets (simple CSS will suffice, no "DHTML"
needed) to change the _visual appearance_ of the button to something
link-like. You know, set background and color, remove border, add
underlining, and so on.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html