Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a link to submit a form

Status
Not open for further replies.

fnuzbit

Programmer
Jan 4, 2005
2
GB
I am trying to submit a form using a link instead of pressing a buttton, I have tried the following code but the action doesn't get executed, in fact nothing happens.

<form name="breadcrumb" method="post" action="/showcase/SelectBreadcrumbAction.do">
<input type="hidden" name="path" value='<%= breadcrumb.getPath()%>'/>
</form>
<a href ='javascript:void(document.forms["breadcrumb"].submit()' >link</A>

I have a bean with a get and set method for the path value. Does anyone know a way I can do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top