html-servlet

Hi,

i 'm sending one html file to servletlike

<body>

<form action="goToCtrl">

<img name="imgone" src=" somepath " alt=""/>

<input type="submit"/>

</form>

</body>

and at server side in Servlet i want to get the image.

how can i get the image .

any sample code or links plz

[505 byte] By [veerjaa] at [2007-11-26 14:54:39]
# 1
What are you trying to do? Do you send this text to the servlet as a request parameter so it can parse it and retrieve the image name? The best you can accomplish is get the image name, but how do are you going to use that name?Mike
bellyrippera at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 2
I think you have posted this question earlier also. There is answer given over there. You should first check out that part http://forum.java.sun.com/thread.jspa?threadID=5123590
pkta at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 3
Hi,Get the image object from the request.getParameter() method, typecast it to a java.io.file object and process it what ever way u want, u can also get the stream from the file object.-GS
Gudalaa at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 4
we can not type cast to File from request.getParameter();
veerjaa at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 5

> we can not type cast to File from

> request.getParameter();

No of course not don't be silly.

PLEASE RETURN TO YOUR CROSS POST WHERE YOUR QUESTION HAS ALREADY BEEN ANSWERED IN DETAIL WITH CODE SAMPLES

http://forum.java.sun.com/thread.jspa?threadID=5123590

cotton.ma at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 6
maybe this person does not want to use common's package
pkta at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...
# 7

> maybe this person does not want to use common's

> package

Judging from his posts so far the main problem is that he's just an idiot. You were right to post a link to the previous thread because he already had this question answered. If the answer was lacking then he should address it in that thread. Most likely though he hasn't even bothered to check that thread for replies yet.

cotton.ma at 2007-7-8 8:43:07 > top of Java-index,Java Essentials,New To Java...