RE: TILES ERROR when using more than one directory

2003-08-20 Thread Holman, Cal
Cameron   You are correct the references are set to the base tag - but to avoid all 
the issues from the template's relationship to the various folders where the actual 
jsp's are I anchor the base to the root directory of the web app like this:

base href=http://%= request.getServerName()%:%= 
request.getServerPort()%%=request.getContextPath()%//

Messy - there may be better ways to do this.

Then all URLs are simple - they all are from the root directory no matter which 
template they are pulled into.  Here is the base definition for a site and you can see 
the directory structure is not flat.  Now I do not place jsps in the WEB-INF folder 
but I am not sure that matters.

  definition name=home.pagedef   page=/template.jsp
  put name=title value=home.title /
  put name=header
value=/web/includes/header.jsp /
  put name=index 
value=/web/pages/home/HomeIndex.jsp /
  put name=indexMain 
value=/web/includes/index.jsp /
  put name=content   
value=/web/pages/home/HomeContent.jsp /
  put name=footer
value=/web/includes/footer.jsp /
  put name=styleSheet
value=web/styles/Omega_StyleSheet.css /
  put name=keywords  value=home.keywords/
  put name=crumbs
value=/web/includes/crumb.jsp/
  put name=crumbtitle1   value=Home/
  put name=crumblink1value=/do/home/home/
   put name=defname  value=home.pagedef/
  /definition

  definition name=about.pagedef extends=home.pagedef 
  put name=title value=about.title /
  put name=content   value=/web/pages/about/AboutContent.jsp /
  put name=keywordsvalue=about.keywords/
  put name=crumbtitle2  value=About/  
  put name=crumblink2  value=/do/home/About/
  put name=defname  value=about.pagedef/
  /definition

Cal

-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 11:39
To: 'Struts Users Mailing List'
Subject: RE: TILES ERROR when using more than one directory

I did not solve this problem, and since I had not gotten any responses,
decided to just give up and keep all the templates in the same folder.

Your suggested methodology confuses me somewhat...  an html:base / tag
is supposed to set the references of all files called from a particular
JSP to the local root of this JSP.  The references to the other TILES
are all stored in the tiles-defs.xml file, not in the JSP.  Further,
regardless of whether I use a BASE tag or not, I get this error.  If the
parser cannot actually find the file (assuming it is confused about the
local vs absolute paths) then it just doesn't load the tile at all.  In
my situation, it does seem to locate the file, but it just throws an
error anyway.  It would appear that your initial TILE and all embedded
TILEs need to be located in the same directory.   Is anyone else
actually implementing what I have tried to do? 

Specifically:

definition name=.list path=/WEB-INF/admin/list.jsp
 put name=body   value= /
/definition

definition name=category.list extends=.list
 put name=body   value=/WEB-INF/admin/pages/categorylist.jsp /
/definition


extending a definition by tossing in a file in a deeper directory...

thanks for any further assistance

Cameron

-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 2:10 PM
To: Struts Users Mailing List
Subject: RE: TILES ERROR when using more than one directory

Cameron Did you figure this out?  I use a base tag in my template to
anchor all tiles jsp files to the single spot in the webapp.  You should
not have any problems having a more complex directory structure - it is
simplified if all the paths are from the same point in the webapp.

Cal

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 07:20
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: TILES ERROR when using more than one directory

I am having a problem storing portions of a TILES layout in different
directories.

When using TILES definitions

This works:


  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list page /
put name=body   value= /
  /definition

  definition name=category.list extends=.list
put name=body   value=/WEB-INF/admin/categorylist.jsp /
  /definition


BUT, this doesn't:

  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list

RE: TILES ERROR when using more than one directory

2003-08-19 Thread Holman, Cal
Cameron Did you figure this out?  I use a base tag in my template to anchor all 
tiles jsp files to the single spot in the webapp.  You should not have any problems 
having a more complex directory structure - it is simplified if all the paths are from 
the same point in the webapp.

Cal 

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 07:20
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: TILES ERROR when using more than one directory

I am having a problem storing portions of a TILES layout in different
directories.

When using TILES definitions

This works:


  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list page /
put name=body   value= /
  /definition

  definition name=category.list extends=.list
put name=body   value=/WEB-INF/admin/categorylist.jsp /
  /definition


BUT, this doesn't:

  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list page /
put name=body   value= /
  /definition

  definition name=category.list extends=.list
put name=body   value=/WEB-INF/admin/pages/categorylist.jsp
/
  /definition


The only difference is that I have put the category list page into a
directory called pages.

Is there something I am missing?  Should I be setting the second file's
path to be pages/categorylist.jsp without the rest of it since someone
mentioned before that child tiles are locally referenced?  I tried this,
but it doesn't work either.

Is there a configuration setting which controls the ability to do this?

Has anyone else experienced this error?

Thanks for any thoughts

Cameron


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

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

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



RE: TILES ERROR when using more than one directory

2003-08-19 Thread Cameron Hickey
I did not solve this problem, and since I had not gotten any responses,
decided to just give up and keep all the templates in the same folder.

Your suggested methodology confuses me somewhat...  an html:base / tag
is supposed to set the references of all files called from a particular
JSP to the local root of this JSP.  The references to the other TILES
are all stored in the tiles-defs.xml file, not in the JSP.  Further,
regardless of whether I use a BASE tag or not, I get this error.  If the
parser cannot actually find the file (assuming it is confused about the
local vs absolute paths) then it just doesn't load the tile at all.  In
my situation, it does seem to locate the file, but it just throws an
error anyway.  It would appear that your initial TILE and all embedded
TILEs need to be located in the same directory.   Is anyone else
actually implementing what I have tried to do?  

Specifically:

definition name=.list path=/WEB-INF/admin/list.jsp
 put name=body   value= /
/definition

definition name=category.list extends=.list
 put name=body   value=/WEB-INF/admin/pages/categorylist.jsp /
/definition


extending a definition by tossing in a file in a deeper directory...

thanks for any further assistance

Cameron 

-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2003 2:10 PM
To: Struts Users Mailing List
Subject: RE: TILES ERROR when using more than one directory

Cameron Did you figure this out?  I use a base tag in my template to
anchor all tiles jsp files to the single spot in the webapp.  You should
not have any problems having a more complex directory structure - it is
simplified if all the paths are from the same point in the webapp.

Cal 

http://www.calandva.com/Last update 08/01/03


-Original Message-
From: Cameron Hickey [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 07:20
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: TILES ERROR when using more than one directory

I am having a problem storing portions of a TILES layout in different
directories.

When using TILES definitions

This works:


  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list page /
put name=body   value= /
  /definition

  definition name=category.list extends=.list
put name=body   value=/WEB-INF/admin/categorylist.jsp /
  /definition


BUT, this doesn't:

  definition name=.list path=/WEB-INF/admin/list.jsp
put name=title  value=the list page /
put name=subtitle  value=the list page /
put name=body   value= /
  /definition

  definition name=category.list extends=.list
put name=body   value=/WEB-INF/admin/pages/categorylist.jsp
/
  /definition


The only difference is that I have put the category list page into a
directory called pages.

Is there something I am missing?  Should I be setting the second file's
path to be pages/categorylist.jsp without the rest of it since someone
mentioned before that child tiles are locally referenced?  I tried this,
but it doesn't work either.

Is there a configuration setting which controls the ability to do this?

Has anyone else experienced this error?

Thanks for any thoughts

Cameron


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

  
Learn more about Paymentech's payment processing services at
www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments
are proprietary and confidential information intended only for the use
of the recipient(s) named above.  If you are not the intended recipient,
you may not print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the
sender by return e-mail and delete this message and any attachments from
your computer.

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



Re: Tiles Error

2003-03-25 Thread Cedric Dumoulin
 It is hard to say what is wrong without more information ;-).
 Jasper report an error while it try to convert the jsp page ?
 Check your jsp for a tiles:put  .. tag whith a path attribute, or 
path as attribute value ... Then, check if your tag has the correct 
syntax.

  Cedric



Alonso, Damian wrote:

Hi Everyone,



I am trying to migrate my app to use Tiles (using Struts 1.1 RC 1).  I am
currently getting the following error trying to load my first page:


org.apache.jasper.JasperException: Warning - Tag put : Bad type 'path'.
   at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
... [snip]





Does anyone know why this exception occurs??



Thanks in advance,



Damian.

www.sensis.com.au

A leading Australian advertising, information 
and directories business. 

www.yellowpages.com.au
www.whitepages.com.au
www.citysearch.com.au
www.whereis.com.au
www.telstra.com.au
This email and any attachments are intended only for the use of the recipient and may 
be confidential and/or legally privileged.
Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or 
damage arising from using, opening or transmitting this email.
If you are not the intended recipient you must not use, interfere with, disclose, copy 
or retain this email and you should notify the sender immediately by return email or 
by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888]
 



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


Re: Tiles error (Help)

2002-09-26 Thread Alexandre Albert

Try to use
org.apache.struts.tiles.ActionComponentServlet for the
action servlet.

--- Heligon Sandra [EMAIL PROTECTED] wrote:
 
   I am using Tiles and when I run my application
   I have the following error:
 
   javax.servlet.ServletException: Can't get
 definitions factory from
 context. 
   javax.servlet.ServletException: Can't get
 definitions factory from
 context.  
   at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
 l.java:471)   
   at

org.apache.jsp.index$jsp._jspService(index$jsp.java:96)
   
   at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 
   I work with Struts1.1b2, my config file is the
 following:
   
   servlet
   servlet-nameaction/servlet-name
  

servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
   param-namedefinitions-config/param-name
   
 param-value/WEB-INF/tiles-defs.xml/param-value
   /init-param
   init-param
   
 param-namedefinitions-parser-validate/param-name
param-valuetrue/param-value
   /init-param
   init-param
param-namevalidate/param-name
   param-valuetrue/param-value
   /init-param
   init-param
   param-namedefinitions-debug/param-name
   param-value1/param-value
   /init-param
   init-param
   param-namedebug/param-name
   param-value2/param-value
   /init-param
   init-param
param-nameconfig/param-name
  

param-value/WEB-INF/struts-config.xml/param-value
   /init-param
   load-on-startup2/load-on-startup
/servlet
 
   What does it mean ?
 
   Thanks,
   Sandra
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
Alex

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: Tiles error (Help)

2002-09-26 Thread Dariusz Wojtas

Hi, I had the same problem.
That was the error I could see in the browser.
But in my app logs I found more details.
I just forgot to close some tag in my struts-config file.
I corrected that and it works nicely again.

Maybe that is your problem too?

Darek

Wednesday, September 25, 2002, 3:48:19 PM, you wrote:
HS I am using Tiles and when I run my application
HS I have the following error:

HS javax.servlet.ServletException: Can't get definitions factory from
HS context. 
HS javax.servlet.ServletException: Can't get definitions factory from
HS context.
HS at
HS org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
HS l.java:471) 
HS at org.apache.jsp.index$jsp._jspService(index$jsp.java:96)  
HS at
HS org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

HS I work with Struts1.1b2, my config file is the following:

[snip]


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




Re: [Tiles] Error using controllerClass - says I need to extend Actionbut I am

2002-09-02 Thread Cedric Dumoulin


  Hi,

  Do you have the full stack trace of the error ? This will help to 
understand what happen.

 Cedric

Michael wrote:

When I try to use controllerClass:

  definition name=plant_list
  path=/jsp/status/plant_list.jsp
 
controllerClass=com.idtect.oemserver.web.GetAllPlantsAction
  

I get this error:

[ServletException in:/jsp/layouts/default_layout.jsp] Controller of
class 'com.idtect.oemserver.web.GetAllPlantsAction' should implements
'Controller' or extends 'Action'' 

My controller class does extend TilesAction (which extends Action):

public final class GetAllPlantsAction extends TilesAction {
}

Am I doing something wrong?


Michael


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


  




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




Re: Tiles Error

2002-02-12 Thread Ted Husted

It sounds like the Tiles definitions are not being loaded from the XML
configuration file. 

Make sure the Tiles subclass of ActionServlet is installed properly.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/



Sanjay Choudhary wrote:
 
 Hi guys,
 
 I am new to struts and tiles.
 
 When I am trying to using Definations in tiles I am
 getting the following errors :-
 
 Error Message: Can't get definitions factory from
 context.
 Error Code: 500
 Target Servlet: null
 Error Stack:
 javax.servlet.jsp.JspException: Can't get definitions
 factory from context.
  at
 org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:502)
 
  at
 org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:385)
 
  at
 org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:342)
 
  at
 basicpage_jsp_6._jspService(basicpage_jsp_6.java:90)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
 
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
  at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
 
  at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
 
  at
 org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
 
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
  at
 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
 
  at
 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
 
  at
 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
 
  at
 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
 
  at
 com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
 
  at
 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
 
  at
 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
 
  at
 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
 
  at
 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
 
  at
 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
 
  at
 com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
 
  at
 com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
 
  at
 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
 
  at
 
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
 
  at
 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
 
  at
 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
 
  at
 com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
 
  at
 com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
 
  at
 com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
 
  at
 com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
 
 
 Am I doing some mistake in configuration files?
 
 Pls. advice.
 Sanjay
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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