954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Running Servlets in NetBeans 6.5 with Glassfish V2

Hello to all, I was wondering how to run servlets using Glassfish V2. I'm using NetBeans 6.5 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions?

CodeBoy101
Junior Poster in Training
71 posts since Dec 2007
Reputation Points: 8
Solved Threads: 0
 

Installed glassfish bundled with netbeans or manually?

Just right click on the project, go to NEW>SERVLET, Enter name of servlet, click OK. Enter the code, and save. Right click on servlet file and select RUN to run the servlet.

ThinkFree
Light Poster
28 posts since Jul 2009
Reputation Points: 10
Solved Threads: 4
 

Thank you for your response. Glassfish was bundled with Netbeans by the way. Bur I have a question: how do I run servlets within JSP pages?

CodeBoy101
Junior Poster in Training
71 posts since Dec 2007
Reputation Points: 8
Solved Threads: 0
 

CodeBoy101,
>>how do I run servlets within JSP pages?

Send request for servlet to the webserver.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 
Hello to all, I was wondering how to run servlets using Glassfish V2. I'm using NetBeans 6.5 and need to use servlets, but I don't want to install Tomcat to do so, any suggestions?


javapassion.com - GlassFish Programming/Development

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You