JSP edit/deploy in IDEA - options?

Answered

My projects rely on Maven for their builds.  But in IDEA that usually means that even a tiny HTML change requires a full rebuild and redeploy of the whole project.

I would swear that when I was using Eclipse for these exact same projects a change in a JSP automatically deployed the changed JSP to Tomcat (when running inside of the IDE), so it was very fast to make quick HTML/JSP changes and retest.   Is there any way to get the same JSP change behavior  in a Maven project with IDEA?

0
7 comments

What values do you recommend using?

 

The default values (and values I am changing to as a "guess") are:

Update=Restart Server (I am changing to hotswap)

Frame deactivation=Do Nothing (I am changing to hotswap)

Show dialog=Checked (left it that way)

 

EDIT/UPDATE:  Those changes did nothing.  Editing the JSP is not triggering a deploy, and clicking on Rerun is running a full Maven rebuild.

0

Bruno,

Please use "update classes and resources". Hot swap works for classes and during debug session only.

0

The On Update pulldown does not have the option for resources.  This is what it has:

- Hot Swap Classes

- Redeploy

- Restart Server

NOTHING there for "resources" or JSPs.  Makes no sense.

and since this is a module under Maven control the other options would trigger a maven build.  Sigh.

0

 Bruno,

What IDE version do you use? Is it possible to share sample project example, so I could check it on my side?

0

2022.2 (Ultimate Edition)  Build #IU-222.3345.118, built on July 26, 2022.

I doubt my organization would allow me to share the project, it contains all of our Java 17 codebase to date.  I would probably get fired for violating security.  Small portions and screenshots no problem.

0

Bruno,

There is no need to share your secured project. Please try to create new simple one and check if it has needed options.

0

Please sign in to leave a comment.