Hiii....I'm just finish study all tutorial in CodeBarn in this site. At the moment now I want to concentrate on Servlet and JSP. I'm using Eclipse as a tool in writing my code. I'm using this IDE because at my office, java expert using this IDE to do a project.
My question is, anybody know how to Run Servlet in Eclipse. Any body here is expert in Eclipse. Can u explain me step by step to Run the program or u could give me link that teach this thing to me. That's all from me. Tq.
Well here is the thing. A Servlet, the way it is supposed to be run, needs to run in a Web Server. Which basically means, no to your question.
However, there are other things you can do to "test" your Servlet running through Eclipse.
1. Remote Debugging, have the Servlet run in the Web Server, but have Eclipse hook into the Web Server for Remote Debugging. You can do a search on the JavaRanch Newsletter for remote debugging and find an article on how to set that up.
2. Mock Objects/Unit Tests. Using Mock Objects you can simulate a Web Container and pass fake Request and Response object to see how your Servlet runs.
"Akmal Java", We're pleased to have you here with us in the IDEs forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. I'm guessing your last name isn't "Java."
Thanks, Jeanne IDEs Forum Bartender [ June 17, 2005: Message edited by: Jeanne Boyarsky ]