Add an actionListener ActionEvent in jsp
- From: "lynch_susan" <lynch_susan@xxxxxxxx>
- Date: 30 Mar 2006 07:36:11 -0800
Newbie,
Im trying to add an actionListener ActionEvent to a submit button in
jsp and don't know how to go about it.
<form name="form" method="post" action=""
enctype="multipart/form-data">
<input type="file" name="imagefile">
<br>
<input type="submit" name="Submit" value="Submit">
<%
Submit.addActionListener(this);
public void actionPerformed(ActionEvent e)
{
if(e.getSource() == Submit )
{
//code to copy image
}
}
%>
</form>
Thanks.
.
- Follow-Ups:
- Re: Add an actionListener ActionEvent in jsp
- From: Chris Smith
- Re: Add an actionListener ActionEvent in jsp
- From: Bjorn Abelli
- Re: Add an actionListener ActionEvent in jsp
- Prev by Date: Re: integers and arrays inJava - how?
- Next by Date: Input/Output program Compiles but doesn't run
- Previous by thread: Timer as an inner class
- Next by thread: Re: Add an actionListener ActionEvent in jsp
- Index(es):