aspose file tools*
The moose likes JSP and the fly likes Include a JSP using realtive path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Include a JSP using realtive path" Watch "Include a JSP using realtive path" New topic
Author

Include a JSP using realtive path

Ajay KumarKashyap
Greenhorn

Joined: Dec 26, 2012
Posts: 2
Hi All,

I am working on an application which uses relative path to include JSP file

the file which i want to include is in other package.
when i am running the current JSP page it is throwing

java.lang.NullPointerException
at oracle.jsp.provider.JspFilesystemResource.translateToAbsolutePath(JspFilesystemResource.java, Compiled Code)


but when i am moving that included file into same package it is running proeprly.
The relative path for other package i am using is :

<%@ include file ="../Examine/exam.jsp"%>

and for same package i am using

<%@ include file ="exam.jsp"%>


Server on which I am working is Apache HTTP 1.2
and Jdk 1.2.2
IDE: Eclipse


Could any one help me out for this.

Thanks in advance.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Hi Ajay welcome to Javaranch
It is recommended that you start your question in a new thread, posting to a 2 year old thread is not a good practice to get maximum response.
I am splitting this one for you.


SCJP, SCWCD.
|Asking Good Questions|
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

What is your directory structure where you are keeping JSP files?
Ajay KumarKashyap
Greenhorn

Joined: Dec 26, 2012
Posts: 2
Hi Amit,


thanks for Your suggestion.


the directory Structure for this application is like.

root Folder
|_____________ JavaSorce(Folder)
|______________Screens(Folder)
|_____________ Examination(Folder)
|______ all jsp Files
|_______________Menu(Folder)
|________ jsp files


actually the application has build nearby 8-10 years back. theres is no structure according to latest Directory Structure
it is used in Folder like Strucrture.

Thanks & Regards.
Ajay
 
jQuery in Action, 2nd edition
 
subject: Include a JSP using realtive path