[studs-user] Implementing samples from the book Professional Jakarta Struts
Status: Beta
Brought to you by:
mojavelinux
|
From: Maarten S. <mgs...@wa...> - 2004-09-06 20:25:25
|
Hi!
I've been trying to implement (or port) some samples from the book
'Professional Jakarta Struts' by James Goodwill and Richard Hightower.
Well, I'm stuck in Chapter 3, at the section 'Creating Your First Struts
Application'. Sounds good!
Anyway, the problem I'm having can be viewed at the following URL:
http://www.watmoetjeanders.nl/dev/
Try entering some stock symbol (try 'SUNW' for an actual result), and
it'll show you the current price. Now, go back and try again (or just
refresh the page).
"Fatal error: Unknown(): The script tried to execute a method or
access a property of an incomplete object. Please ensure that the
class definition lookupform of the object you are trying to operate
on was loaded _before_ the session was started in
/.../RequestProcessor.php on line 290"
As long as the session exists this keeps happening.
The LookupForm class extends the ActionForm class. The source and
configuration (including a modified String and HtmlFormTag class) can be
found at:
http://www.watmoetjeanders.nl/dev/misc/
Source files have been renamed to .txt to prevent parsing.
Any suggestions how to fix this? How can I 'import' a class before the
session starts (except by hacking index.php)? IMHO, this should be done
automatically by Studs :)
Thanks,
Maarten
--
"The greatest mistake you can make in life
is to be continually fearing you will make one."
- Elbert Hubbard
|