Web Modules?

It's quite possible I have missed something.... but what exactly is the extent of the Servlet & JSP support in Netbeans? i.e., I can add a Web module, and proceed to add Servlets or JSP pages, but the IDE doesn't seem to manage much. That is, at deployment time, the class files are not put into WEB-INF/classes (unless I manually created the classes in that folder), the WEB-INF/web.xml is not managed by the IDE and I have to manually edit this file myself. About the only thing the IDE does seem to manage is being able to run the servlet within it.

[579 byte] By [Boehrer,Tracy] at [2007-11-25 16:52:07]
# 1

Tracy Boehrer wrote:

>It's quite possible I have missed something.... but what exactly is the extent of the Servlet & JSP support in Netbeans? i.e., I can add a Web module, and proceed to add Servlets or JSP pages, but the IDE doesn't seem to manage much. That is, at deployment time, the class files are not put into WEB-INF/classes (unless I manually created the classes in that folder), the WEB-INF/web.xml is not managed by the IDE and I have to manually edit this file myself. About the only thing the IDE does seem to manage is being able to run the servlet within it.

>

This is why I also have Forte 4. I use it for JSP custom tag

development and whenever I want to make changes to web.xml. I make too

many typos to feel comfortable editing this file manually. You just

click on web.xml in the explorer and the elements are exposed as

properties. Clicking on the ellipses next to the 'property' you want to

edit, say, Servlet Mapping, brings up an appropriate editor. Actually,

it has a passable general xml editor for any other xml file. It is

rather clunky and takes some getting used to, but it beats a text editor

any day.

Tomm

Carr,Tomm at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 2

Ya... I use a text editor... hi-tech.

Really though, the only reason to use the web module in Netbeans is for debugging within the IDE. And everyone knows that real men use System.out to debug an application anyway...

It would be especially cool if when you add a servlet, Netbeans would update the web.xml and have properties on the servlet to adjust various web.xml elements for that servlet (servlet-mapping, etc...). Or even (as you said) if you could edit the web.xml in the same way you can edit an Ant file (using the pop-up menu to add a specific element type).

Additionally, it shouldn't really matter where the class are created at (you shouldn't have to manually remember to create them in the WEB-INF/classes), but rather at deployment, Netbeans will put everything in the right place. Netbean should also understand the difference between deploying as a Jar or War file.

I know, I know... it's open source, I should make it work that way.... ;-)

--Original Message--

From: Tomm Carr [mailto:TommCatt@computer.org]

Sent: Friday, August 09, 2002 1:37 PM

To: nbusers@netbeans.org

Subject: Re: Web Modules?

Tracy Boehrer wrote:

>It's quite possible I have missed something.... but what exactly is the extent of the Servlet & JSP support in Netbeans? i.e., I can add a Web module, and proceed to add Servlets or JSP pages, but the IDE doesn't seem to manage much. That is, at deployment time, the class files are not put into WEB-INF/classes (unless I manually created the classes in that folder), the WEB-INF/web.xml is not managed by the IDE and I have to manually edit this file myself. About the only thing the IDE does seem to manage is being able to run the servlet within it.

>

This is why I also have Forte 4. I use it for JSP custom tag

development and whenever I want to make changes to web.xml. I make too

many typos to feel comfortable editing this file manually. You just

click on web.xml in the explorer and the elements are exposed as

properties. Clicking on the ellipses next to the 'property' you want to

edit, say, Servlet Mapping, brings up an appropriate editor. Actually,

it has a passable general xml editor for any other xml file. It is

rather clunky and takes some getting used to, but it beats a text editor

any day.

Tomm

Boehrer,Tracy at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 3

TB> Really though, the only reason to use the web module in Netbeans

TB> is for debugging within the IDE. And everyone knows that real men

TB> use System.out to debug an application anyway...

No, real men use log4j. Once you try it you'll never go back.

--

regards,

Peter Kelley

MoveIt Pty Ltd

Transport of the mails, transport of the human voice, transport of

flickering pictures - in this century, as in others, our highest

accomplishments still have the single aim of bringing men together. -

Antoine-Marie-Roger de Saint-Exupery

Kelley,Peter at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 4

Peter Kelley writes:

#

# TB> Really though, the only reason to use the web module in Netbeans

# TB> is for debugging within the IDE. And everyone knows that real men

# TB> use System.out to debug an application anyway...

#

# No, real men use log4j. Once you try it you'll never go back.

And for any women who wish to continue to outperform their male

colleagues, they can also try the HTTP Monitor module, which reduces

the need to rely on print statements and loggers further :)

Ana

vonKlopp,Ana at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 5

Ana,

Touche

Wednesday, August 14, 2002, 3:25:40 PM, Ana von Klopp wrote:

AvK> Peter Kelley writes:

AvK> #

# TB>> Really though, the only reason to use the web module in Netbeans

# TB>> is for debugging within the IDE. And everyone knows that real men

# TB>> use System.out to debug an application anyway...

AvK> #

AvK> # No, real men use log4j. Once you try it you'll never go back.

AvK> And for any women who wish to continue to outperform their male

AvK> colleagues, they can also try the HTTP Monitor module, which reduces

AvK> the need to rely on print statements and loggers further :)

AvK> Ana

--

regards,

Peter Kelley

MoveIt Pty Ltd

For it is a sin against the reason to tell men that to travel

hopefully is better than to arrive; and when once they believe it,

they travel hopefully no longer. - G. K. Chesterton

Kelley,Peter at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...
# 6

Peter Kelley writes:

# Ana,

#

# Touche

Wasn't the first person who made the reference to real men a woman

anyway? :) I just thought it was a good opportunity for a joke

anyway. Though you could of course make me extra happy by checking out

the HTTP Monitor to see if it would reduce the need for log

statements...

Ana

# Wednesday, August 14, 2002, 3:25:40 PM, Ana von Klopp wrote:

#

#

# AvK> Peter Kelley writes:

# AvK> #

# # TB>> Really though, the only reason to use the web module in Netbeans

# # TB>> is for debugging within the IDE. And everyone knows that real men

# # TB>> use System.out to debug an application anyway...

# AvK> #

# AvK> # No, real men use log4j. Once you try it you'll never go back.

#

# AvK> And for any women who wish to continue to outperform their male

# AvK> colleagues, they can also try the HTTP Monitor module, which reduces

# AvK> the need to rely on print statements and loggers further :)

#

# AvK> Ana

#

#

# --

#

# regards,

# Peter Kelley

#

# MoveIt Pty Ltd

#

# For it is a sin against the reason to tell men that to travel

# hopefully is better than to arrive; and when once they believe it,

# they travel hopefully no longer. - G. K. Chesterton

#

vonKlopp,Ana at 2007-7-2 23:52:20 > top of Java-index,Archived Forums,Sun ONE Studio 4...