Build project by change my JSP page

Hi everybody,
I'm new to Idea and maybe it's trivial question. When I make any changes on my JSP page and I want to see results, do I have to build a project again? If I don't build(make), the previous version of the page(servlet) remains on my localhost. Where is the problem? I thought, that Tomcat recognizes changed file and generates new servlet for the given JSP page.
All I ask is just how to make some changes on jsp page and check how it looks like in the browser.
Thanks for any advice.

7 comments

Right click on the page you want to deploy and select Package file

Norris Shelton
Sun Certified Java Programmer




vladimir kolesnik wrote:

>Hi everybody,
>I'm new to Idea and maybe it's trivial question. When I make any changes on my JSP page and I want to see results, do I have to build a project again? If I don't build(make), the previous version of the page(servlet) remains on my localhost. Where is the problem? I thought, that Tomcat recognizes changed file and generates new servlet for the given JSP page.
>All I ask is just how to make some changes on jsp page and check how it looks like in the browser.
>Thanks for any advice.

>

0

Thanks a lot, it's exactly what I need. Could you please explain a little bit, what exactly do this "package file" command? I searched help and google and haven't found anything.

0

That is what IJ called this functionality that they added for the web
functionality. They added this ability so we could make a a lot of
changes, but deploy just a specific file, bean, etc first.

Norris Shelton
Sun Certified Java Programmer




vladimir kolesnik wrote:

>Thanks a lot, it's exactly what I need. Could you please explain a little bit, what exactly do this "package file" command? I searched help and google and haven't found anything.

>

0

It's not very user-friendly feature. It takes a lot of time to rightclick and "Package file" with every change I have made in my JSP page and want to check the result. And I noticed that sometimes it does not work. The changes are not deployed. I'm really disappointed by this.
At least I would expect the existance of checkbox (or whatever) in the settings where I can choose between automatic deployment of all changed code and those I specificaly want to deploy. Anyway, thanks for you time and help.

0

I agree. When I saw the checkbox "synchronise exploded folder", I expected it to copy the static file types (JSP, for example) to the web-app dir automatically on save. MyEclipse does this, for example, it works really well.

Fortunately it does seem that you can apply a keyboard shortcut to this action (Other -> Package file). I haven't tried it though.

At the end of the day, I'm still using Ant for all my building and deployment, it still works the best.

0

The problem with automatic deployment of a change was the case where you
have changed 3 files, but you only wanted one of them to be deployed.

However, I agree, that it would be nice to have an option to deploy all
changed files.

Norris Shelton
Sun Certified Java Programmer




vladimir kolesnik wrote:

It's not very user-friendly feature. It takes a lot of time to rightclick and "Package file" with every change I have made in my JSP page and want to check the result. And I noticed that sometimes it does not work. The changes are not deployed. I'm really disappointed by this.
At least I would expect the existance of checkbox (or whatever) in the settings where I can choose between automatic deployment of all changed code and those I specificaly want to deploy. Anyway, thanks for you time and help.

>

0

I believe the synchronize option refers to files that were previously
deployed, but are now deleted from your project. It removes these files.

As far as it not picking up changes, that is probably related to your
web server. I have had this fairly often with Tomcat. It's the nature
of the beast. usually, going back and manually changing the file (> 3
seconds elapse) resolves the problem with Tomcat detecting the changed file.

Norris Shelton
Sun Certified Java Programmer




Colin Fleming wrote:

>I agree. When I saw the checkbox "synchronise exploded folder", I expected it to copy the static file types (JSP, for example) to the web-app dir automatically on save. MyEclipse does this, for example, it works really well.
>
>Fortunately it does seem that you can apply a keyboard shortcut to this action (Other -> Package file). I haven't tried it though.
>
>At the end of the day, I'm still using Ant for all my building and deployment, it still works the best.
>

>

0

Please sign in to leave a comment.