
July 12th, 2002, 07:51 AM
|
|
Junior Member
|
|
Join Date: Jul 2001
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
how to allow jsp and applet to access common class instance
how can a jsp file and an applet in that jsp file both access the get/set method of an instance of one particular class ?
problems
1. where do i store the applet class, and the accessor class, can i use codebase and store applet class also in WEB-INF/classes where the accessor class is currently ? if yes how ? (i tried using codebase="../WEB-INF/classes" but it does not work
2. suppose class name is Bid,
first jsp creates instance Bid b = new Bid()
and sets some property
but then applet class will create another instance
Bid b = new Bid()
but this will not get the same value since a new isntance is created .. is the only solution using static method ??
thanks
|