Access classes in Tomcat
In Tomcat (Version 5.0) jsp files are usually placed under
Under /webapps/[myWebApplication]/Web-INF/classes/ I have all my java
How can I access this classes from my JSP-File?
Peter H=F6ltschi wrote:
> How can I access this classes from my JSP-File?
Copying from the top of a .jsp I find somewhere on the disk:
<%@ page language=3D"java"
import=3D"jada.jada.*, java.util.*, more.stuff.*"%>
Hope this helps.
...Is it possible to have globally accessible classes?
I'm fairly new to java and OOP in general so i'm sure there will be a
simple answer to my question, I just can't seem to find anything on
The problem is I have a class called 'Server' and a class called
'ServerConfiguration', along with several other classes. In the main
method of the Server class I create a new instance of
ServerConfiguration passing with it the url of the config file. The
problem comes when I want to use this instance of the
ServerConfiguration class in other classes. I don't want to declare
another instance in each class as ...global variables accessed through multiple DLL class instance.
Hi, my problem is quite complexe to describe but here is a try :
I have a C++ library exporting a class which is wrapped using a C++
..Net Wrapper to be used in a C# software.
In the C++ library I have a file which contains C functions in which
there are global variable and pointers (it's not my code) and the C++
class access the C functions for some processing.
My C# application is multithreaded and I instanciate two classes
exported from the DLL which can be used concurrently.
My question is : Sometime it crashes and I suspect that the problem is
that the C global variables are uniqu...How to I access a logging class from any other class.
I want to be able to write log data. How can I access my logging class
from any class in the app, without passing a reference to it?
Responding to Ssg31415926...
> I want to be able to write log data. How can I access my logging class
> from any class in the app, without passing a reference to it?
I'll assume you only have one instance of the logging class.
First let me point out that implementing relationships by passing
objects is usually not a good idea. The problem is that conceptually one
[Client] --------- [Service1] ----...accessing Class from class symbol
I'm trying to work out how to access Class methods when I only have the
puts "Hello Foo"
puts "Hello Bar"
# I could do this, but there must be a better way.
Kernel doesn't have send, so I can't pass the class as a symbol to
Kernel, and then send the method.
"treefrog" <email@example.com> writes:
> I'm trying to work out how to access Cl...Where to save classes? How to access classes?
I'm trying to get into the object oriented aspect of Python. If I create
a custom class (in it's own file), how do I access that class in a
function in a different file? In Java there's the notion of a CLASSPATH,
where you can tell the compiler to look for classes. Is there something
similar to this in Python?
David Mitchell wrote:
> I'm trying to get into the object oriented aspect of Python. If I create
> a custom class (in it's own file), how do I access that class in a
> function in a different file? In Java there's t...accessing one class from another class
I'm trying to consuming an xml file and map it to a Ruby object that
would describe that xml file.
What would be the best way to implement the following scenario.
Let's say I have several classes: Student, Course, Person, Tuition
Xml for this would look like this:
</Course>...accessing class variables of private classes
I need to access class variables of a class I'd like to make private:
Name Error: global name '_Foo__Foo' is not defined
Here I want to prevent the user of instanciating __Foo from outside of the
a_list = 
NameError: global name '_A__A' is not defined
Here I want to keep a list of instanciated objects of class __A, so I can
update interna...Could an instance of a small class as a member of a bigger class access the bigger class's static variable?
I am making a simulation program in which I constructed 2 classes. A
small one which describe a single atom (cls_atom), and a large one,
which is the container of the simulation containing lots of atoms
(cls_box). Therefore cls_atom will create thousands of instances as
member of cls_box.
Now there are lots of member variables of the cls_box needed to be
shared by all instances of cls_atom. For example, temperature T,
pressure P and total volume of the box, V, which is the global
parameter for the sandbox and should be accessed by all atoms.
Is there a way to authorize such access...