f



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.
0
efiedler
6/27/2003 3:21:52 PM
comp.lang.javascript 38370 articles. 2 followers. javascript4 (1315) is leader. Post Follow

1 Replies
1062 Views

Similar Articles

[PageSpeed] 41

efiedler@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
Slattery_T@bls.gov
0
Tim
6/27/2003 4:36:17 PM
Reply:

Similar Artilces:

javascript validation for a not required field, field is only required if another field has a value
The psuedocode is 1. if "search_bu" is empty then return false because it is a required field 2. if "search_zoneid has a value then if search_zonenm is empty return false 3 OR the reverse of 2 if "search_zonenm has a value then if search_zoneid is emtpy return false I think what it is doing know is working on all 3 but if I don't input either a zoneid or zonenm it still asks for the zonenumber????? It may be number 2 and 3 need to be an OR someway? The problem is zoneid or zonenm are not rquired but it is acting like the...

Getting value from asp:label into javascript input value
Hello, I really hope that someone can help me resolve my problem, I've been working on it for the past few days, to no avail. I have an asp:label which gets its value from the database, but what I'm trying to do is to get that value (from the asp:label) and place it inside the javascript input value. I can post sample code if required. TIA D "Dwizz" <Dwizz20@yahoo.co.uk> wrote in message news:1123236443.969946.4850@g47g2000cwa.googlegroups.com... > Hello, > I really hope that someone can help me resolve my problem, I've been > working on it for the p...

Checking input fields(text) value when field is loosing focus
Hello, I have I simple question that is not clear for me. So, I have a input field (text field) in my html page. User should give input as a string like following 12 345 678,0 If user gives input in format 12345678,0 and leves the input field how can I format the value 12345678,0 into format 12 345 678,0? Are there any Javascript that can handle this with Regular Expressions? Thanks! JohnnyW wrote: > [...] I have a input field (text field) in my html page. > User should give input as a string like following 12 345 678,0 > > If user gives input in format 12345678,0 and lev...

apache failure to send specific javascript/css files for a request. Times out the entire request
background: Our site runs on apache and php, and uses a load balancer to distribute traffic requests. Some of our javascript and css files are run in php via .htaccess in order to generate urls within the files. Today we noticed that one html page in particular times out or loads very slowly. findings: We found that a particular javascript file was not being loaded and thus times out the entire page. There was no response from Apache whatsoever for this file. WireShark shows no response packets from the server. We are able to fix the problem by 1. moving the file to the cdn, o...

concatenate in Javascript function? simple field validation funciton not working
I have a field called telephone whose ONBLUR action is to call a javascript function: validatePhoneNumber(telephone) The non-working function is: function validatePhoneNumber(v) { var phone =document.form. + v + .value; //HERE"S WHAT IS NOT WORKING var stripped = phone.replace(/[\(\)\.\-\ ]/g, ''); .........//code left out for clarity document.form. + v + .focus() } I want to reuse the function so I need to make it generic. Any ideas? Many thanks. The first line in your function i...

Javascript Image objects not loaded
So, basically this is the problem. I have this... <div id="mainframe"> <img src="image.jpg" id="image"> </div> Then when I try to in a function say... function checkImage() { var image = document.getElementById("image"); var height = image.height; } -------------- Many times the image height will not be defined. I recently changed the past so it uses AJAX to change the <img src... stuff to return new data for that inner HTML block.. Still the image will not have properties. Now, this is a problem in IE/FF, but not in opera. ...

Send both parameters and objects to servlet
Is it possible to send both parameters ( as if coming from a form) and binary objects( such as vector) from an applet to a servlet. I want to be able to read properties as regular parameters using getParameter and also get objects. Is this possible and if so how do I set up the regular parameters ( provided I am writing the binary objects to a stream) and how do I then retrieve them. <kikotores@yahoo.com> wrote in message news:1149100946.959326.247990@i40g2000cwc.googlegroups.com... > Is it possible to send both parameters ( as if coming from a form) and > binary objects( such ...

get value from input field
Hi everyone! I have one problem... I am developping a C# program and I need to get a value from an input field to a string variable or a TextBox. How can I do? Please I need your help. thanks Rui said the following on 11/27/2006 5:43 AM: > Hi everyone! > > I have one problem... > > I am developping a C# program and I need to get a value from an input > field to a string variable or a TextBox. How can I do? > > Please I need your help. <URL: http://jibbering.com/faq/#FAQ4_13> -- Randy Chance Favors The Prepared Mind comp.lang.javascript FAQ ...

About inputs ports sending values up
hi All, lets way we have the following scenario library IEEE; use IEEE.std_logic_1164.all; entity bot is port (i: input std_logic); end entity bot; architecture arc of bot is begin end architecture arc; entity top is port (j: input std_logic); end entity top; architecture arc of top is begin t1: entity WORK.bot port map (i=>j); end architecture arc; Now, one thing I dont understand is, if we are not allowed to connect i from bot as output port, how do we send values up , to the top level entity,. What is the need to call ports as input or output then Wha...

Copy File Field Value to Dynamic File Field Value
Firefox showed me a security error when I was copying a value of file field object into new DOM created input file field. Can I do something about it? Thanks. VUNETdotUS wrote: > Firefox showed me a security error when I was copying a value of file > field object into new DOM created input file field. Can I do something > about it? Nope, it's a security issue, you're not able to manipulate file fields. -- # Regards || piotr[.]solnica[at]gmail[.]com || jid : s0lnic@jabster.pl # # s0lnic || http://blog.solnic.in5.pl || icq : 385935391 # On Nov 7, 9:55 am, s0...

Pass input Array value to function to calc different input value
Please forgive, I have looked at so much info I can't figure out how to put it together even though I know it must be fairly simple. I have an array of input text boxes (txtDOBn) where n is created at load. On the onchange event I want to calc the age and show in adjacent input text boxes that are readonly and also arrays (an age calced for each DOB entered). I was going to use the datediff function in vbscript to do the calc. Can someone please help me pull the pieces together or point me to a similiar example? I didn't post HTML because of message about spam. *** Sent via ...

show image when a field value = 1
I am trying to get a script to show a particular image when a field value = 1, otherwise it will show something else, and this is what I came up with: $i=0; while ($i < $num) { $name=mysql_result($result,$i,"name"); $date=mysql_result($result,$i,"date"); $status=mysql_result($result,$i,"status"); echo "<b>$name</b> <br><b>$date</b><br> "; if (status == 1) { echo <img src='../images/yes.jpg'> } else { echo <img src='../images/no.jpg'>...

Extracting array values in Object.send.
How can I exract array values when using Object.send. See the example below. class TestSend def test( arg1, arg2, arg3) puts arg1 puts arg2 puts arg3 end end t = TestSend.new t.send('test', 'hey', 1, 'rrr') args = ['hey',1,'rrr'] t.send('test', args) #this throws an argument error, 3 for 1.. Thanks. -- Posted via http://www.ruby-forum.com/. Aaron Smith wrote: > How can I exract array values when using Object.send. See the example > below. > > class TestSend > > def test( arg1, arg2, arg3) > p...

Showing an image, based on the value in a field
I have a straightforward feature in an application, which is working, but I feel that I haven't done it as efficiently as possible. Can anyone tell me how I should have done it? In a table of Courses, I have a field (c_status) showing whether the course is Open, Closed, or Planned. Associated with this, I have a "traffic light" indicator (c_status_light), i.e. just a circle which is red, green, or amber. So if the course is open, the light shows green, etc. c_status_light is a calc field, result container, defined as: Case ( c_status="Open";g_green_light; c_status...

Web resources about - image input field not sending value to servlet request object - comp.lang.javascript

Sending/receiving relationship - Wikipedia, the free encyclopedia
A sending/receiving relationship is one in which a public school district sends some or all of its students to attend the schools of another ...

U.K. Woman Faces 20 Months For Creating Fake Facebook Accounts, Sending Herself Abusive Messages
A woman in Cornwall in the U.K. came up with a creative way to use Facebook to accelerate a family spat, and it earned her 20 months in prison. ...

CHVRCHES - Dear guys, Please stop sending us emails like... - Facebook
Dear guys, Please stop sending us emails like this. This is one of the more polite ones. Other recent classics include "I'm going to give her ...

[...] Facebook Prevents Users From Sending Suspicious Friend Requests To Strangers, Inside Facebook [...] ...
Facebook has begun implementing new security measures to prevent friend request spamming. Some users are being shown a “This Request Can’t Be ...

A better experience for sending Tweets and DMs - Twitter Blog
... panel New Tweet panel in da...... Skip to main content Blog Got an account? Sign in Search form Search &nbsp A better experience for sending ...

How to Go From Working 60 Hours a Week to 40 By Sending 2 Emails a Week
I’m convinced 95% of cubicle workers who work over 60 hours a week constantly can cut it down to 40-45 hours by sending 2 emails a week to their ...

Emoticon and Emoji Box for iPhone -Save Emoticons,emoji,pic and images for Sending Message! 200 FREE ...
Get Emoticon and Emoji Box for iPhone -Save Emoticons,emoji,pic and images for Sending Message! 200 FREE emoticons and emojis - on the App Store. ...

Thanks for sending an iPhone4 and Sim T-Mobile but ... - Flickr - Photo Sharing!
... that's probably not going to work. (also, I'm sticking with the iPod touch).

Texas Man Makes $10K A Month Sending Potatoes With Personalized Messages In The Mail! - YouTube
Alex Craig, 24, said he came up with the idea for Potato Parcel earlier this year while having dinner with his girlfriend. His girlfriend called ...

'It was scary': widow speaks out as Muslim cleric pleads guilty to sending offensive letters to families ...
The young widow of fallen Australian soldier Brett Till still recalls the fear that came after she opened a letter sent to their home that labelled ...

Resources last updated: 2/6/2016 11:27:39 PM