Absent Member.
Absent Member.
516 views

Renaming JSP file after each change

Hi All,

 

I have been working on this JSP which is really huge in terms of the formatting and every time I make any changes to the JSP file, I keep on renaming it. Hence the count today has rose somewhere to around 600. I remember I had heard of something in which we need to make some changes / or get some parameter enabled and then just touch the JSP file through cygwin. But I don't recall that now.

 

Can anyone please help me with it or any other possible convenient solutions?

An immediate response would be appreciated.

Thanks!

 

Regards

Debasish

0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

Hi Debasish,

 

Try the following steps:

 

1) Open the file web.xml located in <PPM_HOME>\server\<SERVER_NAME>\deploy\jbossweb-tomcat55.sar\conf

2) Search for <param-name>development</param-name>

3) Change the following <param-value> from false to true

4) Restart the PPM Server

 

Note that there is a slight performance impact with this change.

 

Let me know if that worked.

 

Kind Regards,

Etienne.

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Another way is to go to 

 

WORK directory, the go the specific JSP location (same as it is in <root>server..../deploy)

 

Here you can find out the JAVA and .CLASS file specific to you JSP. You can delete these and it will resolve your renaming issue.

 

But again this is a manual task.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
0 Likes
Absent Member.
Absent Member.

 

Hi Etienne,

 

Before giving it a try, would want to know the possible performance issues you are talking about as people here are a bit impatient with the dashboard loading page and all. Have already faced such issues and took quite some time to clean up the mess. So would like to know any possible issue so that I can be aware of it and mitigate it beforehand.

Thanks!

 

Regards

Debasish

0 Likes
Absent Member.
Absent Member.

@Utkarsh,

 

Thanks for your response. Just was eagerto know that do we have to perform this each and every time i.e. like temp and work folder, does it get created everytime or its a one time process. And the impact after deleting the java and .class file ?

Thanks!

 

Regards

Debasish

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Hi Debasish,

 

As I mentioned earlier that this would be a manual task.

 

So instead of renaming the JSP, just simple go to WORK directoty (to desired path) and then delete the JAVA and .class file (assoicated to the file name).

 

Doing so won't impact the server performance as you are only deleting the java and .class file of your custom JSP.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
0 Likes
Micro Focus Expert
Micro Focus Expert

Hi Debasish,

 

I have no idea how much exactly will be the performance impact of turning on JSP development mode. The "only" impact is that every time a user will try to access a JSP, the server will check whether the JSP was modified (just by looking at the file timestamp). This is not a huge performance impact, but this tends to be a very common performance tuning tip provided, so the performance impact might eventually be noticeable.

 

So you are not advised to enable it on Production environment, but if you are experimenting with JSP, I supposed you did so in a dev or test environment, which doesn't seem to be the case.

 

Thanks,

Etienne.

0 Likes
Absent Member.
Absent Member.

I do not remember seeing your version # but in PPM 8 there is a server parameter called

JSP_RECOMPILE_ENABLED that might help. It's generally not recommended for prod due to potential performance degradation, but works great for a dev env.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.