Hi,
Thanks for the advise. I tried this way. and It worked. Thanks a lot.
After deploying in such way there was another problem. Though I found a solution of that, I thought I should put up both the problem and solution here.
The
java classes were not readable from the
jsp inside any folder structure.
inside root
i have /jsp/mypage.jsp
there i am using a page import to access a class like the way below:
<%@ page import ="myPackage.MyClass"%>
And MyClass.java was present inside /WEB-INF/classes/myPackage/MyClass.java
But while running the application the server was not able to identify this class from the jsp.
It was throwing error in the import line itself.
In localhost the same structure is running quite well. Only after deploying to the production server the problem arises.
So i put all my JSPs in the root directory of my application (took them out of the /jsp folder). Then it was able to recognize the class imports. and everything rest worked well.
I still don't understand why the previous structure didn't work in the server. If anyone has any idea, please let me know.