struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anuradha S.Athreya" <>
Subject File Upload enctype
Date Fri, 26 Aug 2005 06:23:42 GMT

I have 2 different issues, which are listed below 
(1)	To upload a file , is it necessary to specify the
enctype="multipart/form-data". Can Struts handle file upload in another way
when the enctype has not been specified.
function validateDelete()
	return confirm("Delete Data");	

	<html:link action="deleteData" name="deleteDataParams" scope="page"
onclick="return validateDelete()" >
      				Delete Data 

	To the validateDelete() Javascript function, I want to pass a java
variable. How do I do it? 
	Once I pass the variable, my javascript function has to be :

function validateDelete(data)
	return confirm("Delete Data"+data);	

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message