Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Can JSP Access .jar files? (http://www.programmingforums.org/showthread.php?t=13098)

ssrun May 2nd, 2007 11:36 AM

Can JSP Access .jar files?
 
Hello!

I'm currently evaluating possible languages for writing a web application. The data for the application will be images stored directories compessed into .jar files. I'm wondering if JSP can access and read the .jar files. I have no experience with JSP so I'm a little in the dark on this one.

lectricpharaoh May 2nd, 2007 11:58 PM

Quote:

Originally Posted by ssrun
Hello!

Hi!
Quote:

Originally Posted by ssrun
I'm currently evaluating possible languages for writing a web application. The data for the application will be images stored directories compessed into .jar files. I'm wondering if JSP can access and read the .jar files. I have no experience with JSP so I'm a little in the dark on this one.

Should be totally possible to do this. To my knowledge, .jar files are compressed using the ZIP format. As there are classes in Java to handle ZIP compression, it should be a trivial task. See this page, for example.

msi_333 May 29th, 2007 1:43 PM

Quote:

Originally Posted by ssrun (Post 127373)
Hello!

I'm currently evaluating possible languages for writing a web application. The data for the application will be images stored directories compessed into .jar files. I'm wondering if JSP can access and read the .jar files. I have no experience with JSP so I'm a little in the dark on this one.

You can import the class the inside using page tag

:

<%@ page import="javax.servlet.http.HttpSession" %>
;)


All times are GMT -5. The time now is 2:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC