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?

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.

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,
>>how do I run servlets within JSP pages? Send request for servlet to the webserver.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.