The extends attribute refer to a definition in the factory (initialized from the config file). The definitions define directly in a jsp page are not stored in the factory, but in a jsp context, so they can't be found by the extends attribute. This is certainly something to improve, but the ability to define definitions in jsp is not often used. It is usually replaced by the use of an xml config file.


Cedric

Michael Ruppin wrote:

For an exercise, I decided to try using a JSP for my
definitions, as opposed to XML.  All went fine until I
tried to implement a definition with an extends
attribute.  It works fine in XML, but in a JSP I
get:javax.servlet.ServletException: Can't get
definitions factory from context.  Both my JSP and XML
tests used the same struts-1.1-rc1 jars, in Tomcat
4.1.18. Can this not be done?  I've never seen an
example, but all the documentation I've found
indicates this is a valid tag attribute.  My war
files:
http://snow.prohosting.com/mruppin/tilesxml.war
http://snow.prohosting.com/mruppin/tilesjsp.war


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to