Bernard and I had a similar weekend - I'm porting a WW
1.0 app to WW/Xwork (for fun, not production), ran
into the same null pointer and resolved it the same
way (root components in otherwise empty
components.xml).  I'll pull my ServletContextListener
as the real solution.  Thanks!

However, the reason I had added the
ServletContextListener was as a (shot-in-the-dark)
attempt to resolve another null pointer I was getting:


ActionContext.getSession() always returns a null Map.

I've replaced this with:

ServletActionContext.getRequest().getSession() 

...and all is fine, but I'm wondering if I haven't
misconfigured something (although walking through the
code, there's nothing in WW 2.0 that seems to set the
session).  ActionContext.getSession() was useful in WW
1.0 for returning a convenient wrapper around the
HttpSession (SessionMap) - is this not going to be the
case anymore?  Will there be a return of SessionAware
eventually?

The other issue I ran into was the absence of many of
the WW 1.0 JSP tags - url, action and bean in
particular.  The roadmap makes no mention of these and
I couldn't find details in the archives so I'll just
ask: what are the status of these tags - deprecated,
not yet implemented, terminated?

I'm not particularly distraught as there are clear
techniques to switch to and (largely because of the
testimonials I've been reading in this list) I'm going
to try out Velocity but I am still curious about the
absence of the tags.

Otherwise the port has been as smooth as can be.  The
interceptors and validation scheme have been
excellent.  Great work!

t

_____________________________________________

You should only need this ServletContextListener if
you are using the
Component stuff, in which case you would also need a
components.xml 
file
to describe the components you use.=20


> I get around it by providing a dummy components.xml
file=20
> where it only=20
> has a root node with nothing in between. It works
that way.
>=20
>=20
> cheers,
> /bernard
>=20
>=20

Jason




__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to