Illep
Illep

Reputation: 16841

Sending a POST request to the server

I need to send a POST request using java. The server i am trying to access has a username and password i need to pass those parameters as well.

1.) I have installed Tomcat in my machine and configured the developer environment. I am using eclipse. There are different types of projects i could create using Eclipse, and i need to know what is the best project i should create to develop my application ?

2.) Can someone show me some sample code or tutorial which would help me to develop my task ?

My Eclipse version : Eclipse Java EE, Indigo service release 2

EDIT

Is it a JPA project, Enterprise Application Project, Dynamic Web Project, Dynamic Web Application, EJB project, Application Client project, Static Web Project.

Upvotes: 0

Views: 1703

Answers (5)

manurajhada
manurajhada

Reputation: 5380

Please have a look at this link.. Hope will be helpful to you..

Please read the link till point 20. Once you know how to write a web-service, we can arrange a training session with Shivang on how to integrate webservices with Appian.

http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html

Upvotes: 1

abson
abson

Reputation: 9348

Dynamic Web project should be the option you must select for performing this. In eclipse you can do this by following the steps as mentioned in the below link

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.wst.webtools.doc.user%2Ftopics%2Ftwcreprj.html

Upvotes: 1

ChadNC
ChadNC

Reputation: 2503

Tutorial in PDF from Core Servlets Another Tutorial from Core Servlets

Upvotes: 0

tagtraeumer
tagtraeumer

Reputation: 1491

if you wanna create a website use "dynamic web project"

for your issue, this might be useful: Java - sending HTTP parameters via POST method easily

Upvotes: 1

Related Questions