Unable to invoke servlet from client (simple java class)
Raja Sekhar Tiruveedula
Greenhorn
Joined: Jul 21, 2009
Posts: 2
posted
0
Hi all,
I had written simple servlet and client.I am able to invoke servlet from browser and from JSP page.My servlet is not getting invoked from client (simple java program used URL).
-------------------------------------------------------
Here is my client code
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
Sekhar,
Could you explain bit more about your servlet, like what kind of input your servlet would expect from the client? and expected response?. As per the client code you have written, it looks to me that the servlet is expecting "File" kind of input from the client, but in your reply to Davit you mentioned that you have just pasted the URL in browser, this is totally confusing me.
Explain your expected servlet input/output in detail.
Katty Knk
Greenhorn
Joined: Jul 21, 2009
Posts: 3
posted
0
Katty Knk wrote:Sekhar,
Could you explain bit more about your servlet, like what kind of input your servlet would expect from the client? and expected response?. As per the client code you have written, it looks to me that the servlet is expecting "File" kind of input from the client, but in your reply to Davit you mentioned that you have just pasted the URL in browser, this is totally confusing me.
Explain your expected servlet input/output in detail.
Refer this link, i hope this would give you more detail.