Deploying modified Portlet JSPs in Liferay without restarting

This is an issue that I have tried to find answers on the internet because it is a big problem that I had.
So the problem is in Liferay Portlet development. When you work on the JSP files, make minor modifications and want to upload them into Liferay to see them. To be recompiled

If you overwrite the JSP files into webapps/youre-portlet folder the modifications are simply NOT recompiled.
They are not.
The “classical” solution is to re-deploy the portlet but this is very frustrating because it takes too long and really slows the development process.

I’ve seen the solution o some forums but nobody quit nailed the problem. Everywhere it was written vaguely. So here is what you have to do:

In the Liferay’s temp folder there are sub folders for each portlet. The modified JSP must be placed in there and in this case Liferay will refresh (recompile the JSP) and show the modification. BUT beware that there are multiple sub folders for each portlet. You have to place the JSP file in the last one in chronological order. The newest one.

I recommend creating some ANT scripts to do this automatically because it is also frustrating to keep copy/paste-ing them. In this case you have to be careful that the scripts copy only the modified JSP. If you copy the whole JSP folder (like WEB-INF/web-ui or whatever is yours) that it will not work. Liferay does not accept this. Or at least it didn’t work to me.

I hope this will save you some time.

Cheers.

Finally, there’s another very important peculiarity of what does Cialis that brings it so high above its alternatives. It is the only med that is available in two versions – one intended for use on as-needed basis and one intended for daily use. As you might know, Viagra and Levitra only come in the latter of these two forms and should be consumed shortly before expected sexual activity to ensure best effect. Daily Cialis, in its turn, contains low doses of Tadalafil, which allows to build its concentration up in your system gradually over time and maintain it on acceptable levels, which, consequently, makes it possible for you to enjoy sex at any moment without having to time it.