RE: tiles newbie problem

2005-02-06 Thread Richard Rozema
Funny how you include all but the contents of logger.jsp. Apparently a null
exception is thrown somewhere in logger.jsp when run through tiles only. I'm
a newbie myself and did encounter this a couple of times too. Just try and
eliminate lines from your logger.jsp to see when the problem goes away to
get to the cause of it.

Probably this does not apply to you, but in my case it is because for some
reason Action.servlet is not set (i.e. was null) when my controller's
.execute gets called. In Action.java is documented that under some
circumstances it should not be set, but nowhere there is a mentioning of how
to retrieve the servlet instead (I need it to retrieve a database connection
for the controller to operate on).

-Oorspronkelijk bericht-
Van: Mathias Peters [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 4 februari 2005 21:25
Aan: user@struts.apache.org
Onderwerp: tiles newbie problem


Hi to all,

I have a newbie problem and I would appreciate any help.
Thanks in advance.
I have the following constellation:
web.xml:


/tags/struts-tiles
/WEB-INF/struts-tiles.tld
   


struts-config.xml:





  


tiles-defs.xml







then i have a Definition-Jsp, where I extend "BasisLayout"
that looks like this:






this jsp do I include in newLog.jsp this way:

<%@ page language="java" %>
<%@ taglib uri="../../WEB-INF/struts-tiles.tld" prefix="tiles" %>
<[EMAIL PROTECTED] file="./layout/TilesDefinitions.jsp" %>



The head and the foot pages have been replaced correctly, but the
extended part of the Definitions-jsp is missing with the message:

[Exception in:/src/web/logger.jsp] null

.
The logger.jsp itself is working correctly, so it has to do something
with Tiles I suppose.
Didn't find anything in the UserGuide.
Thanks for any help
Matze


-
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]



tiles newbie problem

2005-02-04 Thread Mathias Peters
Hi to all,
I have a newbie problem and I would appreciate any help.
Thanks in advance.
I have the following constellation:
web.xml:

   
   /tags/struts-tiles
   /WEB-INF/struts-tiles.tld
  

struts-config.xml:

   
   
   
   
 

tiles-defs.xml

   
   
   
   

then i have a Definition-Jsp, where I extend "BasisLayout"
that looks like this:

   
   
   


this jsp do I include in newLog.jsp this way:

   <%@ page language="java" %>
   <%@ taglib uri="../../WEB-INF/struts-tiles.tld" prefix="tiles" %>
   <[EMAIL PROTECTED] file="./layout/TilesDefinitions.jsp" %>
   

The head and the foot pages have been replaced correctly, but the 
extended part of the Definitions-jsp is missing with the message:

[Exception in:/src/web/logger.jsp] null
.
The logger.jsp itself is working correctly, so it has to do something 
with Tiles I suppose.
Didn't find anything in the UserGuide.
Thanks for any help
Matze

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