473,320 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

image input field not sending value to servlet request object

Hi - I have the following input field on my html page:

<input type="image" name="submit" id="submit" src="c:\image.jpg"
value="image.jpg">
I also have another input field on the form that is a text box. When
submitted my form posts its data to a servlet. I can click on the
image, and the form is posted and the servlet is ran. However, I was
stepping through the debuger of the servlet and I noticed the request
object sent from the form did not have the value of the image field in
it. It did have the value of the text field I mentioned, and that is
it.

In the servelt I run (this is more or less pseudecode below)

Enumeration enumRequest = Request.GetParameterNames()
While enumRequest.hasmoreelements(){
string strParam = (String)enumRequest.nextelement()
string strParamValue = (String)request.getparameter(strParam)
}

The only parameter returned to me is the value in the text
field....Why am I not receviing the value of the image field i.e.
"image.jpg"

Thanks.
Jul 20 '05 #1
1 5946
ef******@actelesys.com (efiedler) wrote:
Hi - I have the following input field on my html page:

<input type="image" name="submit" id="submit" src="c:\image.jpg"
value="image.jpg">
I also have another input field on the form that is a text box. When
submitted my form posts its data to a servlet. I can click on the
image, and the form is posted and the servlet is ran. However, I was
stepping through the debuger of the servlet and I noticed the request
object sent from the form did not have the value of the image field in
it. It did have the value of the text field I mentioned, and that is
it.


According to the reference I'm looking at, there is no "value"
property for the <input type="image"...> tag.

--
Tim Slattery
Sl********@bls.gov
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: Desmond Rivet | last post by:
Hi all, I will do an experiment on this soon, but if anyone knows off the top of their head... Let's say you have a servlet that processes a POST request. A HTTP client sends a POST request...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
7
by: Neo Geshel | last post by:
Greetings. I have managed to stitch together an awesome method of posting text along with an image to a database, in a way that allows an unlimited number of previews to ensure that text and...
1
by: G | last post by:
Hello Friends How are you? I came with a problem near you. I want to upload a image to my ftp, iam getting this below error. i have a code which is working in my local system, i have an idea...
6
by: santhoskumara | last post by:
How to request to servlet from Ajax and also I got the DOM object in the servlet through Business Logic. Now how will i pass the DOM object from serlvet to Clientside. Where in the client Side i am...
2
by: vijaykumardahiya | last post by:
Hello Sir, I have a simple Issue but It is not resolve by me i.e input parameter are not store in Ms-Access. I store the input parameter through Standard Action <jsp:useBean>. jsp:useBean call a...
9
by: mjahabarsadiq | last post by:
Hi I have created a servlet that is to be started at the server startup. And I got it. In that I have created a object of another class and set it as a session attribute. What I am trying is...
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.