aspose file tools*
The moose likes JSP and the fly likes Path problem, seeking advice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Path problem, seeking advice" Watch "Path problem, seeking advice" New topic
Author

Path problem, seeking advice

Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
Hello,

I have few jars which I required to run a JSP file and I am using JDeveloper to compile and run. In JDeveloper, you can add the path of the jars in the project properties(Everybody know this). My question is when I deploy this
JSP to solaris server, how do I add the path in my JSP file, I have only one JSP page. How can set the path? Besides I am not using war or ear to deploy to a remote server?

Any help is highly appreciable.

Thanks


Never take anything for granted because you never know when you will lose it
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42917
    
  68
To run a web app, you will need to have a WEB-INF directory in your project directory, which contains your Java class files and the web.xml file, amongst other things. Put the jar files inside WEB-INF/lib, and they will be found automatically - you don't need to change the classpath.
Pol Appan
Ranch Hand

Joined: Aug 26, 2004
Posts: 144
Thanks a lot.

What if I want to create a subfolder inside web-inf/lib and put the JARS inside the sunfolder?

When I put JARS under the subfolder, my JSP is not working, do I need to add anything in my JSP?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42917
    
  68

What if I want to create a subfolder inside web-inf/lib and put the JARS inside the sunfolder?

When I put JARS under the subfolder, my JSP is not working, do I need to add anything in my JSP?


Subfolders inside WEB-INF/lib simply will not work. The servlet specification would be the place to read up on web application directory structure, especially WEB-INF.
[ August 19, 2005: Message edited by: Ulf Dittmer ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Path problem, seeking advice