Hi all,
I have an html page (external.html) and in another my struts application
is running, could I use a title:put pointing to his web page? That page
is a dynamic perl page...
I don't know if tiles:get tag gets directly a file, o maybe it can do a
http request to another machine, in order to
On 02/07/2004 10:53 PM eric scroger wrote:
Can someone tell me why I'm getting question mark
chacters in my output display instead of the actual
page content?
I'm using Tomcat 4.0.x with Struts 1.1.
Question marks in the output can be the result of fmt:message taglibs
not finding their given key
Can someone tell me why I'm getting question mark
chacters in my output display instead of the actual
page content?
I'm using Tomcat 4.0.x with Struts 1.1.
I'm using a simple layout template and setting
the Tiles in the layout as follows:
layout.jsp:
%@ taglib uri=/WEB-INF/struts-tiles.tld
tiles:insert attribute=content /
On 5 Feb 2004, at 06:47, Anand Stephen wrote:
Any idea what would cause this exception?
500 Servlet Exception
java.lang.NullPointerException
at
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:
528)
at
Any idea what would cause this exception?
500 Servlet Exception
java.lang.NullPointerException
at
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:528)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java
:487)
at
Hmm...
Looks like you got yourself a null pointer mate!
;-)
-Original Message-
From: Anand Stephen [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 February 2004 13:48
To: Struts-User
Subject: Basic Tiles question!
Any idea what would cause this exception?
500 Servlet Exception
.
At 09:46 PM 2/4/2004, you wrote:
Hmm...
Looks like you got yourself a null pointer mate!
;-)
-Original Message-
From: Anand Stephen [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 February 2004 13:48
To: Struts-User
Subject: Basic Tiles question!
Any idea what would cause this exception
hi ALL,
When we incluse dtd while declaring tile-def.xml file which looks something like.
!DOCTYPE tiles-definitions PUBLIC
-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
IS IT NESECCARY I SHOULD BE
I think so... It might be possible to download the dtd to a directory in
your webapplication's directory locally and then refer to that instead...
!DOCTYPE tiles-definitions PUBLIC
-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN
dtds/tiles-config_1_1.dtd
Morten
- Original Message -
From: Kalra, Ashwani [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 6:27 AM
Subject: tiles question
hi,
I tiles you have to maintain two pages. One that includes all the sections
like header, footer, variable content jsp, etc
On 10/30/2003 09:00 AM Frers Michael wrote:
Hi
well this is ok
tiles is used to manage many jsp sides with all nearly the same layouts over
one configuration file
this means you have to maintain (if you use full tiles power) minimum 3
files:
the layout jsp (setting positions of header, body,
There's a method of reducing this duplication in Ted Husted's Struts in
Action book - the method, I believe, is called the body wrap method
and it addresses a particular situation that is common, that allows you
to eliminate this duplication. Also, you can define and extend tile
definitions in
/
/definition
In fact, ted Husteds book(Struts In Action)has a very chapter about it.That should
ehlp u.
Regards,
Shirish
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2003 3:48 PM
To: Struts Users Mailing List
Subject: Re: tiles question
hi,
I tiles you have to maintain two pages. One that includes all the sections
like header, footer, variable content jsp, etc. and one jsp which contains
your code(varible part).
This doubles up the no of jsps ? Is it ok. any work around ?
TIA
Ashwani Kalra
http://www.geocities.com/ashwani_kalra
A simple question I guess,
Is it legal to have the tags like html /html and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
html:html header etc. tags?
Erez
-
To unsubscribe, e-mail:
, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question
A simple question I guess,
Is it legal to have the tags like html /html and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
html:html header etc. tags?
Erez
It's strange since until now I haven't removed those tags and it just
went fine...strange no?
-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:52 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question
It depends on how
. It is sometimes better to use the JSP tags html:html rather than plain
html.
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question
A simple question I guess,
Is it legal to have the tags
To: 'Struts Users Mailing List'
Subject: Simple Tiles question
A simple question I guess,
Is it legal to have the tags like html /html and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
html:html header etc. tags?
Erez
Yeah, that's strange, but then some browsers are pretty good at ignoring bad
HTML
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:56 PM
To: 'Struts Users Mailing List'
Subject: RE: Simple Tiles question
It's strange since until now I
on the html:html Struts
tag, or am I wrong? I wish...
Erez
-Original Message-
From: Hue Holleran [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:59 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question
Erez,
Tiles are included in the HTML page like any other 'fragment
I have tiles definition file and and I use
putList name=items
item value=item1 link=link1 /
item value=item2 link=link2 /
/putList
Suppose now I need item2 to be displayed only for user in role admin
How would I go about doing it? There is no role attribute for item.
Is there a good way to
Haven't gone into the details of it..
but could you pass in one definition (override) over
the other where one putlist is different than the
other and each has a role name on it?
sandeep
--- Alex Shneyderman [EMAIL PROTECTED] wrote:
I have tiles definition file and and I use
putList
I am looking to do something like what is listed below, is it possible or a
way to do similar:
tiles-defs.xml:
definition name=doc.errorPage
Can you explain what you want to do in english, rather than pseudocode?
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:54 AM
To: [EMAIL PROTECTED]
Subject: Tiles question
I am looking to do something like what is listed below
Look at the bottom of the original message.
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 12:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles question
Can you explain what you want to do in english, rather
Here is a little more detail:
I want a single reusable JSP error page which will have two pieces.
1. The message the user sees must be variable
(was a prob., figured out a decent solution. I still want multi-line,
formatted HTML to be sent to the JSP though)
2. The stacktrace printed in
Hello,
I'm new to tiles and can't make it work. I'm trying to display users list
(body - users.jsp) and get an error:
[ServletException in:/users.jsp] Cannot find bean usersList in scope
request' . I'm populating 'usersList' bean and put it into request in my
Action class.
It displays header and
Did you add Tiles plugin in your struts-config.xml ?
- Original Message -
From: Mykola Ostapchuk [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:48 PM
Subject: Tiles question
Hello,
I'm new to tiles and can't make it work. I'm trying
, 2003 10:12 PM
Subject: Re: Tiles question
Did you add Tiles plugin in your struts-config.xml ?
- Original Message -
From: Mykola Ostapchuk [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:48 PM
Subject: Tiles question
Hello
Hi,
The action DoFirst.java isn't putting the userList bean into the request.
It should be doing something like
request.setAttribute(userList, userListBean);
It is also using the 'perform()' method, if you are using the latest
struts then you should be using the 'execute()' method instead.
all the objects in request
disappear?
- Original Message -
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 10:47 PM
Subject: Re: Tiles question
Hi,
The action DoFirst.java isn't putting the userList bean into the request
Mykola Ostapchuk wrote:
I have request.setAttribute(userList, userListBean); string in execute()
method.
My Action class works well without tiles - it returns a bean to users.jsp
and I see the users list.
I'm wandering if I'm using DoFirst action forward class in a right way?
Maybe because of this
.
- Original Message -
From: Jason Lea [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 11:26 PM
Subject: Re: Tiles question
Mykola Ostapchuk wrote:
I have request.setAttribute(userList, userListBean); string in
execute()
method.
My Action
I am wondering how I should
structure my tile files
I currently have secured, and
non-secured files planned to be used:
Non
Secured:
==
/index.jsp
/help.jsp
/content/*.jsp
/content/*.do
Secured:
===
/private/*.jsp
/private/*.do
Both use common tiles, images, styles
etc..:
Hi,
A tile attribute is only visible in its tile, not in its parent, not
in the sub tiles.
You should pass the attribute explicitly from the current tile to the
inserted tile, or put the value in the request context:
tiles:insert attribute=header
tiles:put name=title beanName=title
How do I get the contents of a variable which is clearly available
inside the layout file
to be available inside a tile?
In my layout file, I can have something like tiles:getAsString
name=title/ which works just fine.
If I put the same tag in a tile, I get this error message:
Hi,
The exception says that the Tiles Factory can't be found, so I suppose
there was a problem during the initialization of it.
If you use latest nightly build of Struts1.1 (recommended), you need
to declare the TilesPlugin in the struts-config.xml. You don't need the
On 12/12/2002 04:11:08 AM Cedric Dumoulin wrote:
snip
If you use latest nightly build of Struts1.1 (recommended), you need ...
/snip
Is the 20021107 build close enough? Or go with last night's build? I am
just starting to implement Tiles today (got Struts in Action opened to
chapter 11 :)).
I don't remind the exact day when I have added the multi-modules
behavior. To be sure, take the latest nightly build.
Cedric
Susan Bradeen wrote:
On 12/12/2002 04:11:08 AM Cedric Dumoulin wrote:
snip
If you use latest nightly build of Struts1.1 (recommended), you need ...
/snip
Gemes Tibor wrote:
2002. december 12. 16:27 dátummal Cedric Dumoulin ezt írtad:
I don't remind the exact day when I have added the multi-modules
behavior. To be sure, take the latest nightly build.
By the what is the multi-modules like?
This is the module capability provided by
Hi,
I am using Tiles and Struts and WebLogic 6.1. I have created some tile
definitions in a file called mytiles-defs.xml under DefaultWebApp\WEB-INF.
When I try to access my main page, I get the foll. exception:
Factory initialized
The answer is yes.
Daniel Ritchey wrote:
Can a tiles definition layout path reference a Struts action path?
I need to be able to dynamically select which layout to use.
Thanks in advance,
Dan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Can a tiles definition layout path reference a Struts action path?
I need to be able to dynamically select which layout to use.
Thanks in advance,
Dan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Daniel Ritchey schrieb:
Can a tiles definition layout path reference a Struts action path?
I need to be able to dynamically select which layout to use.
Your scenario seems to be similar to the TabbedLayout example.
[...]\struts-tiles\layouts\tabsLayout.jsp is doing this - although
with the
I get an error when trying to display a simple JSP using Tiles:
- org.apache.jasper.JasperException: Error - Tag Insert : No value defined
for bean 'forteus.default' with property 'null' in scope 'request'.
I don't fully understand what is happening, or indeed what is meant to
happen... Does
Hi,
As you use definitions defined in a xml file, you should insert them
as follow:
tiles:insert name=forteus.default
tiles:put name=body-content value=home-body.jsp/
/tiles:insert
In your example, you have use beanName instead of name.
Cedric
Daniel Haynes wrote:
I get
://www.calandva.com/
-Original Message-
From: Daniel Haynes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 10:16
To: Struts-User (E-mail)
Subject: newbie tiles question
I get an error when trying to display a simple JSP using Tiles:
- org.apache.jasper.JasperException: Error
Thanks - that worked !
Dan
-Original Message-
From: Holman, Cal [mailto:[EMAIL PROTECTED]]
Sent: 08 October 2002 15:40
To: 'Struts Users Mailing List'
Subject: RE: newbie tiles question
Try changing your home.jsp to reference the definition not a bean
This is the JSP that is throwing
components ?
Is it the unique solution to customize the menu for each page ?
-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: 16 September 2002 20:20
To: Struts Users Mailing List
Subject: Re: Tiles question - menu items
If you're using sub-applications, you could
Hi.
I am trying to use tiles in Struts 1.1.b and i found in the examples that
tiles-defs.xml is referenced twice in application
1. web.xml
!--init-param
param-namedefinitions-config/param-name
param-value/WEB-INF/tiles-defs.xml/param-value
1. It appears the first is a comment - an optional suggested configuration.
2. Apparently, there is a method in MessageResources that requires this
declarative setting; what's the big deal? Struts is still beta, after all.
-Original Message-
From: Vladislav Kamensky [mailto:[EMAIL
Vladislav Kamensky wrote:
Hi.
I am trying to use tiles in Struts 1.1.b and i found in the examples that
tiles-defs.xml is referenced twice in application
1. web.xml
!--init-param
param-namedefinitions-config/param-name
1. It appears the first is a comment - an optional suggested configuration.
No. I commented it in order to test whether it makes sence.
The answer from Cedric Dumoulin seems to be truth.
The plugin loads the config from web.xml, and override them with the
data from struts-config.xml.
nocache=true/
(You can change the nocache if you want)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition from an action
]
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my struts-config.xml:
actionpath=/resources
forward=site.resources.page/
Here's the definition in my tiles
nocache=true/
(You can change the nocache if you want)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition
-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my
Yes it is ;-)
Have you specify to use the appropriate Tiles processor (if struts1.1) or tiles
action servlet (struts1.0.x) ?
In struts1.1, add following to your struts-config file :
!-- Here we specified the tiles processor --
controller
Hi Struts,
etco Is it possible to call a tiles layout definition from an action tag in my
etco struts-config.xml file?
etco Here's the tag in my struts-config.xml:
etco actionpath=/resources
etcoforward=site.resources.page/
etco Here's the definition in my
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: tiles question
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my struts-config.xml:
actionpath
Hi Struts,
WWC Also, in struts-config.xml, you should have:
WWC controller processorClass=org.apache.struts.tiles.TilesRequestProcessor
nocache=true/
yes, that it was. Thanks
so long
Ingo Bruell
---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12
Hi,
Is it possible to call a tiles layout definition from an action tag in my
struts-config.xml file?
Here's the tag in my struts-config.xml:
actionpath=/resources
forward=site.resources.page/
Here's the definition in my tiles-defs.xml:
definition
Mailing List
Subject: Re: Tiles question: Is it possible to insert a
ComponentDefinition into a Tile context dynamically?
Hello,
If you are in a tile controller, you don't have to create a new
ComponentDefinition, you can set the attributes of the current tiles
(because you
to the new Tile definition. Is this
possible?
Thanks again,
Chris
-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:29 AM
To: Struts Users Mailing List
Subject: Re: Tiles question: Is it possible to insert a
ComponentDefinition
Hello,
If you are in a tile controller, you don't have to create a new
ComponentDefinition, you can set the attributes of the current tiles (because you
are in the controller).
To add / overload an attribute in the context, do something like :
String attribute =
Hi,
I have a tile that reads items from a PutList list and then inserts each
item into the current page.
struts_logic:iterate id=item name=itemList scope=page
type=String
tiles:insert name='%=item%' flush=true/
/struts_logic:iterate
When the items in the list are tiles defined in
Hi,
I have a tile that reads items from a PutList list and then inserts each
item into the current page.
struts_logic:iterate id=item name=itemList scope=page
type=String
tiles:insert name='%=item%' flush=true/
/struts_logic:iterate
When the items in the list are tiles defined in
Is it OK to use bean:message to look up a message inside a tiles:put tag?
For example:
tiles:put name=title
bean:message key=commissions.signingBonus.title/
/tiles:put
The instantiating page might get the title like this:
titletiles:getAsString name=title//title
Is anyone else doing
06, 2002 10:37 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: Tiles question: Using bean:message inside tiles:put
Is it OK to use bean:message to look up a message inside a
tiles:put tag?
For example:
tiles:put name=title
bean:message key
:
Sorry for this stupid tiles question, but I need to make sure I understand
this.
When I tried tiles, it appeared to severely affect performance. This seemed
to be because a new JSP was *constructed* on each request and then
*compiled* before finally being run, which then served up the HTML
If content/functionality is relatively static (and you are not deploying to
unknown containers), JSPs should really be precompiled by the container JSP
compiler (Jasper in Tomcat) and included in the jar deploy file.
Mark
-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL
Sorry for this stupid tiles question, but I need to make sure I understand
this.
When I tried tiles, it appeared to severely affect performance. This seemed
to be because a new JSP was *constructed* on each request and then
*compiled* before finally being run, which then served up the HTML
:
Sorry for this stupid tiles question, but I need to make sure I understand
this.
When I tried tiles, it appeared to severely affect performance. This seemed
to be because a new JSP was *constructed* on each request and then
*compiled* before finally being run, which then served up the HTML
Hi,
I have no ideas on an xml/xsl architecture using tiles.
But, for dynamic portal, I have added such an example in the latest
distribution
(tiles/tutorial/dynPortal).
This example allows to choose tiles to render in portal. You can
choose in a list
of available tiles, and move tiles
75 matches
Mail list logo