File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Include a JSP using realtive path

 
Ajay KumarKashyap
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your directory structure where you are keeping JSP files?
 
Ajay KumarKashyap
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic