on 12-12-2007 12:56 PM
Hi friends,
We need to send a patch for enhancement, which contains classes and a JSP file also. So, we know how to send class files, but we are not aware of how to send a JSP file in the patch.
Please help us if anybody know this.
Thanks & Regards,
Ravi
Hi,
usually you have the JSPs as precompiled versions? Then it is in a class file as well, and so it will be the usual way. If you do not precompile it, then you just need to change the location you send the file to in the deployment descriptor. That will save the file then in the correct position.
Hope this helps,
Regards,
Oliver
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oliver,
Thanks for your reply.
If I am sending the class file of the Jsp, then what has to be the path of that class file in the patch. Means If iam sending a class file of any controller class, iam giving the path as WEB-INF\classes\package.....\xxx.class in the patch, like this what should be the path of the JSP class file in the patch.
Thanks & Regards,
Ravi Shankar
Hi,
After deploying this custom patch to our application, class files are perfectly getting used but not the JSP file. Application is still using the compiled jsp (class) which is placed in the 'application.jar' under the lib folder.
Is is possible to update this jar file or to change some mappings?
Thanks in advance.
Ravi
Hi Ravi,
<b>Is is possible to update this jar file or to change some mappings?</b>--->I think you can not update the application.jar file.
Let me know one thing, while you creating war file from NWDS/Eclipse did you compile JSP pages as Precompiled class files. If you did that, your application will not point JSP pages that you applied as patches.
Is your application is in production phase? If yes, my first suggestion is..If you have updated application.jar file, apply the application.jar file as patch.
If your application is not in production phase....best option is, again create a war file as pre-compiled jsp pages, and make changes in NWDS that the compiled class files should loaded as application.jar file. Then you can apply patches easily.
Hope this helps you..
Regards,
Murthy
Hi All,
We have solved this problem by updating the application.jar file through install.xml file with the compiled JSP file. We have made an entry in the install.xml file, like ADD To ARCHIVE which updates the jar file with this compiled JSP file. This has solved our problem and the jsp is working fine.
So, Is this the correct approach or is there any fault in this. Please post your comments on this approach.
Thanks & Regards,
Ravi Shankar
Hi Ravi,
Creating a patch with Install.xml is the correct approach , you can also use this xml file to manipulate property file and for many other task.Kindly refer to this <a href="http://help.sap.com/saphelp_nw04/helpdata/en/46/de964bd6913c1de10000000a155369/frameset.htm">link</a> which has all task used in it.
Regards,
Rajan
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.