Click here to Skip to main content
15,886,137 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: About Form Design Pin
Keith Barrow28-Mar-11 1:24
professionalKeith Barrow28-Mar-11 1:24 
GeneralRe: About Form Design Pin
Ali Al Omairi(Abu AlHassan)28-Mar-11 1:46
professionalAli Al Omairi(Abu AlHassan)28-Mar-11 1:46 
GeneralRe: About Form Design Pin
Keith Barrow28-Mar-11 2:16
professionalKeith Barrow28-Mar-11 2:16 
GeneralRe: About Form Design Pin
User 171649228-Mar-11 2:26
professionalUser 171649228-Mar-11 2:26 
AnswerRe: About Form Design Pin
Dalek Dave27-Mar-11 7:17
professionalDalek Dave27-Mar-11 7:17 
GeneralRe: About Form Design Pin
Ali Al Omairi(Abu AlHassan)27-Mar-11 8:25
professionalAli Al Omairi(Abu AlHassan)27-Mar-11 8:25 
GeneralRe: About Form Design Pin
Keith Barrow28-Mar-11 1:28
professionalKeith Barrow28-Mar-11 1:28 
QuestionUnable to perform simple upload from simple HTML page Pin
Branislav Vidovic25-Mar-11 1:25
Branislav Vidovic25-Mar-11 1:25 
Hello guys!

I am trying to achieve a simple upload of a file and a text parameter from a html form. The html page is deployed on jboss 4.2.3.GA (but the result is the same even if you put it anywhere outside the server, etc. on your C drive). My POST request always seems to be empty. I am executing request in Firefox 4.0 browser. Here is the web page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Testing</title>
</head>
<body>
	<h1>Use the form to call webservice</h1>
	<form action="http://localhost:8080/mobileEmailService/service/OEV" method="post" enctype="multipart/form-data">
		Picture: <input type="file" name="img"/><br />
		Name: <input type="text" name="name"/><br />
		<input type="submit" value="Submit" />
	</form>
</body>
</html>

I am using HttpFox utility in Firefox to examine my request. The POST data always seems to be empty so the parameters in the servlet are also empty. If i change the enctype="multipart/form-data" to enctype="application/x-www-form-urlencoded" then i can get all parameters, but they are only strings. For name parameter this is ok, but for file i just get the file name string and that is not ok Wink | ;) I need a file.
So does anyone has idea how is this accomplished?
I am using jboss RESTeasy web service to read the request. But jboss resteasy webservices are just servlets in my opinion. But any way, the data does not even get into the request. So that is the main problem. The client does not even send it.
AnswerRe: Unable to perform simple upload from simple HTML page Pin
Gerben Jongerius25-Mar-11 2:01
Gerben Jongerius25-Mar-11 2:01 
Questionmail addresses in html pages... Pin
Joan M24-Mar-11 9:57
professionalJoan M24-Mar-11 9:57 
AnswerRe: mail addresses in html pages... Pin
AspDotNetDev24-Mar-11 10:13
protectorAspDotNetDev24-Mar-11 10:13 
QuestionRe: mail addresses in html pages... Pin
Joan M27-Mar-11 20:59
professionalJoan M27-Mar-11 20:59 
AnswerRe: mail addresses in html pages... Pin
AspDotNetDev28-Mar-11 19:27
protectorAspDotNetDev28-Mar-11 19:27 
GeneralRe: mail addresses in html pages... Pin
Joan M29-Mar-11 0:41
professionalJoan M29-Mar-11 0:41 
AnswerRe: mail addresses in html pages... Pin
Dalek Dave25-Mar-11 5:00
professionalDalek Dave25-Mar-11 5:00 
GeneralRe: mail addresses in html pages... Pin
Peter_in_278027-Mar-11 21:11
professionalPeter_in_278027-Mar-11 21:11 
GeneralRe: mail addresses in html pages... Pin
Joan M29-Mar-11 0:39
professionalJoan M29-Mar-11 0:39 
QuestionConsuming SOAP 1.1 WebService using Telnet Pin
NandoMan23-Mar-11 15:18
NandoMan23-Mar-11 15:18 
QuestionPrinting issues in IE with framesets Pin
Gerben Jongerius23-Mar-11 5:04
Gerben Jongerius23-Mar-11 5:04 
AnswerRe: Printing issues in IE with framesets Pin
cjoki24-Mar-11 5:10
cjoki24-Mar-11 5:10 
GeneralRe: Printing issues in IE with framesets Pin
Gerben Jongerius24-Mar-11 22:31
Gerben Jongerius24-Mar-11 22:31 
GeneralRe: Printing issues in IE with framesets Pin
cjoki25-Mar-11 3:06
cjoki25-Mar-11 3:06 
Questionsomething very Strange in Webservice and windows-ce connection.... Pin
goldsoft19-Mar-11 19:20
goldsoft19-Mar-11 19:20 
QuestionWidth of window and presentation Pin
Dalek Dave11-Mar-11 14:27
professionalDalek Dave11-Mar-11 14:27 
AnswerRe: Width of window and presentation Pin
Graham Breach11-Mar-11 23:04
Graham Breach11-Mar-11 23:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.