Reputation: 16841
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
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
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
Upvotes: 1
Reputation: 2503
Tutorial in PDF from Core Servlets Another Tutorial from Core Servlets
Upvotes: 0
Reputation: 8014
You should create Web project.
http://besthowtodo.com/blog/2010/05/how-to-create-dynamic-web-project-in-eclipse.html
Upvotes: 1
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