On 25/03/2004 13:22, Mariano García [EMAIL PROTECTED]
wrote:
El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió:
Below is a reply sent to this mailing list about something very similar to
what you are looking for.
but there is any way to use dynamic content only using tiles tags
El mié, 24-03-2004 a las 20:21, Pedro Salgado escribió:
Below is a reply sent to this mailing list about something very similar to
what you are looking for.
but there is any way to use dynamic content only using tiles tags? In my
case, I have a 'setAttribute(serverLocation, Location
Hi All,
I may have found a bug in Tiles and exception handling when using the
controllerUrl attribute within the tiles definition (fyi:xml format).
In my case the controllerUrl points to a TilesAction subclass that
collects some business data. The problem is thus; if it encounters an
error
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
and browser's
confirmation message? I thought setting rediect=true to forward should to
the trick; but it doesn't! Last night while going thru the archives, I
figured that this does work when you forward to /someAction.do or
/somePage.jsp but doesn't work for Tiles definitions!!!
Any help would be greatly
Hi all,
I am newbie using tiles, so maybe this question is too easy for you.
I want to use a tile definition in which, one of the attribute values is
dynamic. It is something like this:
definition name=tracebox.def.encoderconfig extends=tracebox.def.menu
put name=title value=encoderconfig
Below is a reply sent to this mailing list about something very similar to
what you are looking for.
Hope it helps,
Pedro Salgado
Hi Robert..
I guess you could achieve the same using the controllerClass attribute and
building your class.. For instance, I have this definition in the
tiles
Any takers?
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 10:17 AM
Subject: redirect=true and Tiles; does it work?
Dear all,
I've been struggling with this problem for about two days
--- atta-ur rehman [EMAIL PROTECTED] wrote:
Any takers?
I'll give it a shot.
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
global-forwards
forward name=invalidToken path=showInvalidTokenMessage.do
redirect=true /
/global-forwards
I believe the
:
Below is a reply sent to this mailing list about something very similar to
what you are looking for.
Hope it helps,
Pedro Salgado
Hi Robert..
I guess you could achieve the same using the controllerClass attribute and
building your class.. For instance, I have this definition in the
tiles-defs.xml
I apologize if I didn't mention it but I'm using the Velocity tiles
tool. Maybe that would be a better place for this question.
Mike
Mike Foody wrote:
I have a similar question. I would like to insert at runtime multiple
instances of the same layout and set a property at that time. I
://jakarta.apache.org/struts/tags-tiles; prefix=tiles
%
tiles:insert beanName=someDefinition flush=true /
I might be off with one or two parameters of the tiles:insert because I
haven't needed to do that in a long time.
I just read your note about velocity tiles but since I haven't used them, I
can't answer
and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
Any takers?
I'll give it a shot.
ATTA
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
global-forwards
forward name=invalidToken path=showInvalidTokenMessage.do
redirect=true
On 24/03/2004 22:45, Mike Foody [EMAIL PROTECTED] wrote:
I apologize if I didn't mention it but I'm using the Velocity tiles
tool. Maybe that would be a better place for this question.
Well the solution for your problem is the one below.
I don't if your using velocity to generate your
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before it does
that it check for the valid token and in the case of an invalid token it
just forwards (redirects) to the invalidToken global forward.
On invalid token message press refresh
, 2004 3:07 PM
Subject: Re: redirect=true and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before it does
that it check for the valid token and in the case of an invalid token it
just forwards (redirects
-
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:07 PM
Subject: Re: redirect=true and Tiles; does it work?
--- atta-ur rehman [EMAIL PROTECTED] wrote:
TestProcessAction just forwards to success forward. But before
See inline, please.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:56 PM
Subject: Re: redirect=true and Tiles; does it work?
Is this correct?
1. User submits the form to /processTest.do
!
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:11 PM
Subject: Re: redirect=true and Tiles; does it work?
See inline, please.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED
I can confirm the stated behavior for both Mozilla FireFox 0.8 and Netscape
7.1 too.
- Original Message -
From: atta-ur rehman [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 4:15 PM
Subject: Re: redirect=true and Tiles; does it work
.
- Original Message -
From: Hubert Rabago [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:56 PM
Subject: Re: redirect=true and Tiles; does it work?
Is this correct?
1. User submits the form to /processTest.do
TRUE
PROTECTED]
Sent: Wednesday, March 24, 2004 4:13 PM
Subject: Re: redirect=true and Tiles; does it work?
And you're saying that with
http://localhost:8080/test/showInvalidTokenMessage.do; on the address
bar,
the user clicks on refresh and causes TestProcessAction to execute
again?
TRUE
All,
I wrote a custom tag that generates JSP code that includes struts tags and
tiles tags.
They are not getting interpreted by the JSP Container.
Can you please let me know if it is possible? If it is possible are there
any examples that
help me understand the life cycle?
Thanks
be what you can do is to write a temporary jsp file and then redirect to that
temporary jsp file.
But why you have to go this way?It looks too contrived/complicated to me.
Why not just spit out proper HTML from your tags?
And the only purpose is to reuse the existing struts/Tiles tags,why not extend
Shirish,
Thanks for answering the e-mail.
One reason I would like to generate Struts, Tiles tags is to implement
composition.
Take an example of generating a Table structure. I would like to use
Struts and Tiles because
of all the niceties. I hope this example makes sense?
If what you
Will there meeting be video stream (stream cast) for other user?
Best Regards,
Benz Lim
-Original Message-
From: Van Riper, Mike [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 4:29 AM
To: '[EMAIL PROTECTED]'
Subject: [OT] 3/18 Struts Tiles Talk by Rick Hightower at VeriSign
.
-
Hi people!
Concerning tiles definition and extension of those.
First part-o-mail: concrete problem
Second part-o-mail: a more general approach (beginning of it ;)
First part:
I see the need for extending
-Original Message-
From: Benz Lim [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 2:11 AM
To: Struts Users Mailing List
Subject: RE: [OT] 3/18 Struts Tiles Talk by Rick Hightower at VeriSign
Will there meeting be video stream (stream cast) for other user?
Benz,
I wish
.
The definition needs to be more like so:
definition name=tiles.view path=/tiles-test/template.jsp
put name=title value=PAGE TITLE/
put name=content value=/tiles-test/index.jsp/
/definition
Where /tiles-test/template.jsp could look like:
%@ taglib uri=/tags/struts-tiles prefix=tiles %
html
You need to define the laytou of your pages? Did you define where Tiles
should put title and content? If not, he can't compose your page.
Take a look now in the path attribute.
definition name=tiles.view path=myLayout.jsp
put name=title value=PAGE TITLE/
put name=content
Hi
I am having a problem with a simple Tiles based site using the
classicLayout.
The problem is that the menu only appears on the first page - if I select a
link to another page the footer,body and copyright are rendered but the
menu is missing.
Here is the tiles-defs.xml ;
?xml version=1.0
Anybody can tell me if using Tiles in an application make it slower? is
there a way to make this better?
Thanks,
JP
I've noticed an annoying feature using html:link page=#
onclick=submit(); someText /html:link. It does one of the
following: a) It tries to search the page /somePage.jsp# or b) submits
the form and continues to the right page, where my action forward
points.
Because the only JSP-pages I have is
When ever I am using method isDate of GenericValidator I am getting following
error. Even for my date format 12-DEC-2004 I am getting same exception.
I coudn't able to figure out what is the problem.
-Jignesh
ava.lang.IllegalArgumentException: Illegal pattern character 'O'
-
From: Jaakko Rytinki [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 15:31
To: Struts Users Mailing List
Subject: Tiles and html:link onclick=submit()
I've noticed an annoying feature using html:link page=#
onclick=submit(); someText /html:link. It does one of the
following: a) It tries to search
I find no trouble with Tiles performance.
At 06:59 AM 3/16/2004, you wrote:
Anybody can tell me if using Tiles in an application make it slower? is
there a way to make this better?
Thanks,
JP
-
To unsubscribe, e-mail: [EMAIL
: Tuesday, March 16, 2004 5:22 PM
To: Struts Users Mailing List
Subject: Re: Does Tiles has performance?
I find no trouble with Tiles performance.
At 06:59 AM 3/16/2004, you wrote:
Anybody can tell me if using Tiles in an application make it slower? is
there a way to make this better?
Thanks,
JP
This is a newbie question on using the Tiles with Struts (never tried it
before). I followed the instructions in the first half of Tiles 101/201,
linked from the Tiles documentation but am having no luck on the
Struts/Tiles integration front. I suspect I've simply missed a step
somewhere
Dear Laurie,
You forgot to set a page in your tile definition with the path attribute.
The definition needs to be more like so:
definition name=tiles.view path=/tiles-test/template.jsp
put name=title value=PAGE TITLE/
put name=content value=/tiles-test/index.jsp/
/definition
Where /tiles
We are using the Struts-EL tags in conjunction with jstl. We now have a
need to use el expressions with the tiles tags. Where is the
struts-el.tld? The file under contrib
/contrib/struts-el/webapps/WEB-INF/struts-tiles.tld
is exactly the same
Hello,
In a Struts 1.1 project, I am trying to find the tiles tld file that
uses the el classes in the struts-el subproject. I assumed that the
naming scheme would be consistent so I looked for struts-tiles-el.tld
under contrib/struts-el but I only found:
contrib/struts-el/webapps/WEB-INF
From: Joshua Tuberville [mailto:[EMAIL PROTECTED]
In a Struts 1.1 project, I am trying to find the tiles tld file that
uses the el classes in the struts-el subproject. I assumed that the
naming scheme would be consistent so I looked for struts-tiles-el.tld
under contrib/struts-el but I only
Wendy
On Mon, 2004-03-15 at 14:49, Wendy Smoak wrote:
Are you sure you're not looking at the release notes on the website,
which would be for the nightly builds? There is a 1.2.0 release out
now, although AFAIK it has not been promoted to an official/stable
version.
Yes you are correct this
what i got here is very special layout code which I reuse inside of one jsp and i don't
want to remove it from there, because no other jsp would need it.
so it would be quite stupid to separate them.
i'm trying to achieve this functionality with tiles
(so in my case it's a .printMessages tile
Is anybody using Tiles and the sslext taglib form link tags?
I am thinking of using them with Tiles.
Has this been implemented yet? I was wondering because I think it must
be a fairly complicated algorithm to check whether a link URL or a form
submit action needs HTTPS or not.
I was also
Adam, I've been using SecurityFilter (sslext taglib form and link tags) with Tiles for
a while without
any issues.
robert
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 11:25 AM
To: Struts Users Mailing List
Subject: sslext http/https
Hi Folks,
This is the situation:
A struts application that uses tiles. A user needs to logon to work with
the app. A logged-on user has a value object userSessionVO with some
authenication parameter in the session. A not-logged-on user could be
identified by the missing session attribute
try
request.getRequestDispatcher(/myACtion.do).forward(request, response);
rather than redirect.
On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote:
Hi Folks,
This is the situation:
A struts application that uses tiles. A user needs to logon to work
with
the app. A logged-on user has
, Tiles, javax.servlet.Filter: Redirect Problem
Hi Folks,
This is the situation:
A struts application that uses tiles. A user needs to logon to work with
the app. A logged-on user has a value object userSessionVO with some
authenication parameter in the session. A not-logged-on user could
(request, response);
rather than redirect.
On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote:
Hi Folks,
This is the situation:
A struts application that uses tiles. A user needs to logon to work
with
the app. A logged-on user has a value object userSessionVO with some
authenication
, Christian Schlaefcke wrote:
Hi Folks,
This is the situation:
A struts application that uses tiles. A user needs to logon to work
with
the app. A logged-on user has a value object userSessionVO with
some
authenication parameter in the session. A not-logged-on user could be
identified by the missing
.
Rick Hightower is the CTO of ArcMind http://www.arc-mind.com and one of
the co-authors of Professional Jakarta Struts.
If you would like to learn about the Tiles framework in Struts 1.1, this
would be an excellent talk to attend. The full meeting announcement can be
found online here:
http
Hi All!
I am attempting to call a tiles:getAsString from a JSP page which is an
attribute in the tiles definition.
Example:
===
definition name=au.com.carsales.csApp.layouts.default
path=/WEB-INF/jsp/layouts/default.jsp
put name=page_title
-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 7:20 PM
To: 'Struts Users Mailing List'
Subject: Calling a tiles attribute from another attribute
Hi All!
I am attempting to call a tiles:getAsString from a JSP page which is an
attribute
hello
I want to use tiles tabbed layout. I'm using tiles at the moment, but no tiles
definitions.
My question is : can I use this layout without definitions and how do I put the tabs
in my jsp that fills my layout page, e.g.
tiles:insert page = /layouts/isisLayoutExtraHeadMenu.jsp flush=true
code that gets called from the struts action. Therefore the cookie seems to not be
getting set on the response only when called from the tiles controller class.
Any ideas?
**
Mi8 Powered Applications - Brains for Business
David,
it's a bit difficult to know what's going on without seeing your action
mapping which calls that .default definition.
On 03/05/2004 10:08 PM David Erickson wrote:
First the sample code:
XML defintion:
definition name=.default path=/tiles/layouts/base.jsp
put name=header value=/tiles
Hi
I want to use the tab-layout from Dumoulin. I use tiles in my application, but no
tiles-definitions.
Can I use tabs without definitions ?
Does someone have an example, because when using definitions, you put tabs via :
item:value, but I don't know how I can in my jsp, because
Suppose I have a string defined
in a definition, such as:
definition name=foo page=/myPage.jsp
put name=title value=Hello/
/definitions
How would I go about replacing Hello with
a reference to a string instead of the string itself?
Can this be done just using tiles-defs.xml, or is
it a two step
First the sample code:
XML defintion:
definition name=.default path=/tiles/layouts/base.jsp
put name=header value=/tiles/header.jsp/
put name=menu value=.menu.main/
put name=body value=${body}/
put name=footer value=/tiles/footer.jsp/
put name=logon value=/tiles/logon.jsp/
put name=title
Jim,
sounds like you haven't realised that tiles attributes are not given
global scope. You have to explicitly useAttribute each time. That
includes when you nest a child tile - you must useAttribute on it
first, and then have it put again in-between the inserts for the child.
On 03/02/2004 10
Hi,
I was able to render the client side javascript (Dynamic as well static
javascript) using the Struts Validator framework. The validations are done
properly on the invalid data. [Errors are displayed]. But I can see from the
server logs that form is submitted. Ideally it should not have
'
request parameter. So far, so good.
Here's what I need to do:
based on the orgType request parameter, make an orgType-specific call to one
of my tiles.
I have a tile for breadcrumbs that I pass in a path to, and then a tag on
the breadcrumb tile spits out the breadcrumb trail. So far all I have
put name=foo value=${bar} type=string/definition/page /
On 2 Mar 2004, at 22:15, Anderson, James H [IT] wrote:
There's something I'm not understanding :-( I've got the following
tiles definitions.
definition name=.mainLayout
path=/tiles/layouts/mainLayout1.jsp
put name=header value
Maybe I didn't follow you, but I changed
definition name=.activity.detail extends=.mainLayout
put name=content value=.portfolioLayout/
put name=app-specific value=/tiles/activityinfo.jsp/
/definition
to
definition name=.activity.detail extends=.mainLayout
put
put name=title value=Mellow World!!! type=string /
put name=content value=portfolio.default type=definition /
put name=app-specific value=/tiles/activityInfo.jsp type=page /
/definition
When did all this .somename business start then, i've seen this else
where. Looks like dirty php
Hi people!
Concerning tiles definition and extension of those.
First part-o-mail: concrete problem
Second part-o-mail: a more general approach (beginning of it ;)
First part:
I see the need for extending the entries of a putList without overriding the
entries in the super definition.
Example
/
item value=cache-control link=no-cache /
item value=expires link=0 /
/putList
/definition
definition name=.head.project extends=.head.common
putList name=httpEquiv
item value=expires link=1 /
item value=description link=tiles
/
item value=description link=tiles definition extension
example /
/putList
/definition
so usually this would replace the list in .head.common with the one in
.head.project
desired behaviour would be to just add the new entries (description) and
overwrite those
=pragma link=no-cache /
item value=cache-control link=no-cache /
item value=expires link=0 /
/putList
/definition
definition name=.head.project extends=.head.common
putList name=httpEquiv
item value=expires link=1 /
item value=description link=tiles definition extension
example /
/putList
/
.mainPage is a Tiles page defined like this:
definition name=.base page=/faces/DefaultLayout.jsp
put name=title value=/DefaultTitle.jsp/
put name=headerSpecific value=/Blank.jsp/
put name=content value=/Blank.jsp/
put name=footer value=/DefaultFooter.jsp/
/definition
definition name=.mainPage
I'm interesting in converting an existing Struts application with
traditional JSP's and Actions into a Tiles application. Can I take a phased
in approach where some forwards point to the tiles-def.xml and some do not?
Or is the tiles-def.xml approach all or nothing?
Thanks,
Marcella
You can very much do so.
We had a completed 50% of our application when we migrated to Tiles.
That is what we did.
Instead of changing the existing working functionality,We just started using tiles for
new development.As a result , we have tiles definitions as well as normal jsps.
BTW
Sure, you can refer to both tiles definitions and .jsp files in the same
application.
-Original Message-
From: Marcella Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: Phase in Tiles?
I'm interesting in converting an existing
Thanks!
From: Mainguy, Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Phase in Tiles?
Date: Mon, 23 Feb 2004 09:42:46 -0500
Sure, you can refer to both tiles definitions and .jsp files in the same
Thanks for your prompt reply - I will look into naming conventions!
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Phase in Tiles?
Date: Mon, 23 Feb 2004 15:41:21 +0100
You can very much do so.
We had a completed 50% of our
processorClass=org.apache.struts.tiles.TilesRequestProcessor
plug-in className=org.apache.struts.tiles.TilesPlugin
set-property property=definitions-config value=/WEB-INF/tiles-defs.xml
/
set-property property=definitions-parser-validate value=true /
set-property property=moduleAware value=true
In some pages my tiles are nested three deep. I would like to pass parameters to
these tiles, but I don't want to have every level put attributes again for the
tiles it contains.
Is there any way to put an attribute in to tile scope once, and have deeply
nested tiles see the attribute?
Rick DeBay
to
differentiate between the page?
In the struts config I have...
action path=/Rewards type=org.apache.struts.actions.ForwardAction
parameter=RewardsView /
In the tiles config I have...
!-- Titles --
definition name=template_sidebar
path=/template/template_sidebar.jsp
put name=title value=/
put
global-forwards
forward name=error path=/error.jsp /
/global-forwards
in your action you can forward to error in the event that something's
gone pear-shaped.
On 19 Feb 2004, at 01:58, Russ Baker wrote:
I am having a real issue with the way Tiles handles an error page. I
am
setting up
Hi Russ,
I had the same problem and ended up including the error page in the body
of the tiles layout. This way the user could continue in the app, but be
informed that an error occurred. So, all of my body tiles have an error page
directive. If the error occurs elsewhere (header, menu, footer
In case this helps some people, yesterday I stumbled on a missing bit of
necessary information in the otherwise very good book, Programming with
Jakarta Struts, by Chuck Cavaness (Nov 2002 printing): Chapter 14, 'Using
Tiles', fails to explain the TilesRequestProcessor. I can find no mention
Group,
I'm having a problem if I use the message-resources inside my tiles
jsp. I'm doing something similar to the standard tiles sample for designing
a layout for menus with the selected menu shown differently.
I'm doing something like this :
% String sel = ( String
That was a great trick Jayesh. It solved my problem too.
Thx.
Avinash
-Original Message-
From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 11:39 AM
To: Struts Users Mailing List
Subject: RE: Tiles and message-resources
You could pass in the key
You can use Xkins to add skins to the website while still using tiles
(http://xkins.sourceforge.net).
You can use XkinsForms tags or create your own taglibs and use xkins to
generate HTML.
You can use css with Xkins, and each skin can have it's own path for
it's css:
For example, if you have
Dear All,
In my webapp, I have to store all dynamic page content within a database
as it is not possible to write to the disks on which the server runs.
These dynamic pages are generated by a servlet which takes the page id as
a request parameter. At the moment this servlet sends the page to
.
2) Keep in mind that the paths in your tile definitions are ALWAYS
relative to the context root, not the module root. If you have a tile def
myTile with a jsp stored under MyWAR/module1/jsp/myTileJsp.jsp, the path in
the tiles-defs.xml is /module1/jsp/myTileJsp.jsp -- you probably already
knew
Compile the tiles into .java files, compile these files into .class files
and jar them up. You'll need to add servlet mappings to every webapp's
web.xml, though.
Here's the test JSP I'm working with (called myjsp.jsp).
%@ page session=false %
%@ page import=java.util.Date %
html
body
h1Hi
* name=FooTile
* display-name=FooTile
* description=My tile
* load-on-startup=3
*
* @web.servlet-mapping
* url-pattern=/tiles/FooTile
*/
%
Something still doesn't smell right though, tiles-defs? and maybe
struts config? Perhaps have the a tile attribute in your definition
whether you
are using a JSP or a precompiled JSP (a servlet). So, the url-pattern would
continue to read /tiles/FooTitle.jspf. This allows you to construct links
and test in a manner that isn't locked to a particular deployment. In
development, we work within the JSP directories so we want
with forms
contained inside tiles. I think
put name=action value=/foo.do type=string /
put name=body value=/tiles/mytile.jsp type=page /
then in the tile naturally
tiles:useAttribute name=action
html-el:form action=${action}
I'll have a play some more.
But i certainly think that generating
try to put this is a template. We'll
see what I break then.
On Tuesday 17 February 2004 20:50, Niall Pemberton wrote:
Doesn't look like a tiles issue to me. Something doesn't add up with the
message you say you're getting and the source you're showing - you should
only get the not found
Is there any way to for a tlles definition to take a value from the
message-resources file? For example, if I wanted only one file to control my
applications text, could
tiles:put name=title value=Page Title /
pull the value from the message-resources file like a JSP would do.
You can internationalize your tiles definitions. In the localized
version you only override the localized strings.
Example
tiles-defs.xml
definition name=.home extends=.mainLayout
put name=title value=Homepage/
put name=content value=somejsp.jsp/
put name=leftCol value
, February 18, 2004 11:33 AM
To: Struts Users Mailing List
Subject: Tiles and message-resources
Is there any way to for a tlles definition to take a value from the
message-resources file? For example, if I wanted only one file to control
my
applications text, could
tiles:put name=title value=Page
Hi,
I have searched through the mailing list archives but have not seen if
there was any resolution to the question of: have the tiles execessive
memory usage/performance issues been resolved for the struts 1.2
timeframe? If not, can anyone recommend an alternative to tiles besides
using includes
Someone know if there are some problem with tiles and messages(errors) I'm using at
Action file (just code parts ) :
ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage(e.getMessage()); //at the catch
messages.add(ActionMessages.GLOBAL_MESSAGE
I am having a real issue with the way Tiles handles an error page. I am
setting up the following jsp directive in the base layout:
%@ page language=java errorPage=/error.jsp %
But when I do this, the page shows the error, something like:
[ServletException in:/somePage.jsp] / divide by zero
to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:[OT] making struts/tiles parse the output of a servlet
Dear All,
In my webapp, I have to store all dynamic page content within a database
as it is not possible to write
What is the best way to do printer friendly pages using Tiles?
We've got a portal type application. I'm looking at the Dynamic Look
Feel capability of Tiles as a canidate for implementing print friendly
pages.
Does anyone have any suggestions or wish to share about how they did it?
Many
1 - 100 of 2839 matches
Mail list logo