HighDots Forums  

submitting forms with a link instead using a submit-button (JSP/Struts)

alt.html.dhtml alt.html.dhtml


Discuss submitting forms with a link instead using a submit-button (JSP/Struts) in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eztup
 
Posts: n/a

Default submitting forms with a link instead using a submit-button (JSP/Struts) - 08-20-2004 , 11:17 AM







Hi!

I want to submit a form via link, because our customers don't want t
have usual buttons.

Okay, I could use JavaScript to submit a form, but this does not wor
with struts-framework within our JSPs somehow - he seemes to submit th
form twice then it seems :-/

html:link styleClass="headerNav" href="#?buttonSave=clicked
onclick="javascript:submitForm( 'editUserChainForm' )"
bean:message key="form.submit.save"/
/html:link

But I'm looking for an alternative: Isn't it possible to dynamicall
generate a transparent gif which looks like a link and which I coul
use as an image-button? Is there a JAVA-API for it?

greetz
eztu

--
eztup

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: submitting forms with a link instead using a submit-button (JSP/Struts) - 08-21-2004 , 02:41 PM






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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.