Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Jar file dependency in a JSP page

Thread view: 
unlikeablePorpoise@gmail.com - 23 Mar 2007 22:57 GMT
I have written a java class (let's just call it foo) that can
successfully be accessed from my jsp page by jsp:useBean. Then I
imported some methods from a jar that are now being used in foo, and
this compiles successfully.

The problem is that now my jsp page won't compile anymore (after
importing the methods from the jar). I get a Jasper exception on the
line where I make a call to the method imported from the jar. Do I
have to import the jar on the jsp page as well?

Let me know if I need to clarify my question

Thanks,
 Sarah
Lew - 24 Mar 2007 05:07 GMT
> I have written a java class (let's just call it foo)

Let's rather call it Foo.

-- Lew
Andrew Thompson - 24 Mar 2007 05:26 GMT
On Mar 24, 8:57 am, unlikeablePorpo...@gmail.com wrote:
> I have written a java class (let's just call it foo)

See Lew's comment re capitalisation , but
further than that, why not call it what
it is?  Is the name a secret?

>..that can
> successfully be accessed from my jsp page by jsp:useBean. Then I
[quoted text clipped - 5 lines]
> line where I make a call to the method imported from the jar. Do I
> have to import the jar on the jsp page as well?

It might be that the server has yet to notice
the altered Jar.  Try refreshing the server.

To achieve that refresh, I would usually stop
and restart the server, but Lew pointed out
recently that it can be done while the server
is running (which is preferable - especially
if it is a production server!).

Andrew T.
Arne Vajhøj - 24 Mar 2007 15:37 GMT
> I have written a java class (let's just call it foo) that can
> successfully be accessed from my jsp page by jsp:useBean. Then I
[quoted text clipped - 5 lines]
> line where I make a call to the method imported from the jar. Do I
> have to import the jar on the jsp page as well?

Have you put the jar file in WEB-INF/lib so it is available at runtime
and restarted the web app ?

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.