Hi all,
I'm using Tomcat 4.1.15 with Struts 1.0.2 and set up a framework to use templates with
the template-Tags.
I already set template:get flush=false but I still don't get any exceptions dumps
if a part of jsp code is incorrect in any of the included files.
The template part causing that
Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 13. Dezember 2002 14:02
To: [EMAIL PROTECTED]
Subject: Use of Struts 1.0.2 template tag doesn't display jsp
errors in included files
Hi all,
I'm using Tomcat 4.1.15 with Struts 1.0.2 and set up a
framework
Hello all,
i would like to use template tags.
For exemple, i will define a JSP template like this :
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
html
head
titletemplate:get name=title//title
link rel=stylesheet type=text/css href=toto.css/
/head
body
template:get
The template tags are deprecated in 1.1 in favor of Tiles.
David
From: Jean-Baptiste Onofré [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Struts template tag
Date: Mon, 18 Nov 2002 17:08:06 +0100
Hello all,
i would like to use
Thanks for info,
but i'm in 1.0.2 in my dev.
I will try that i have write :)
Best regards
--
Jean-Baptiste Onofré (Nanthrax)
Membre fondateur de phpFR.org
http://www.phpfr.org
[EMAIL PROTECTED]
Membre fondateur du LUG Béziers
http://www.lug-beziers.org
[EMAIL PROTECTED]
--
To unsubscribe,
With jsp:include, I can pass parameter values to the included page by using
jsp:param.
Can I get this functionality using the Struts template tag library? If so,
can I use request.getParameter to retrieve values in the included page
CB Thomas wrote:
With jsp:include, I can pass parameter values to the included page by
using jsp:param.
Can I get this functionality using the Struts template tag library?
Yes. Use the direct attribute, like this:
template:put name='title' content='Templates' direct='true'/
Then in your
There is also Tiles for this sort of thing.
David Geary wrote:
CB Thomas wrote:
With jsp:include, I can pass parameter values to the included page by
using jsp:param.
Can I get this functionality using the Struts template tag library?
Yes. Use the direct attribute, like this:
Tiles
Hi All!
I've seen a number of posts looking for help/info on the this type of error message
(i.e., javax.servlet.ServletException: Exception creating bean of class
???.???.xxxForm: java.lang.ClassNotFoundException: ???.???.xxxForm) that occurs when
they attempt to test their struts
-4.0.4)
Thanks!
jw
- Original Message -
From: jw [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 31, 2002 1:28 PM
Subject: Re: Using the template tag library with parameters like jsp:param
Hi All!
I've seen a number of posts looking for help/info
I use nested template tag as the following:
template:insert template=template.jsp
template:put name=header content=header.jsp/
template:put name=content direct=true
template:insert template=contentTemplate.jsp
template:put name=contentTitleImage
content=images/content_01.gif
Check application struts-template.war shipped with Struts distribution. Also,
you can check Tiles wich is an advanced template framework.
Cedric
Henry Lu wrote:
Is there any examples with struts template tag? I have had difficulties to
use it. I got error:
Invalid directive
Any
Dumoulin wrote:
Check application struts-template.war shipped with Struts distribution. Also,
you can check Tiles wich is an advanced template framework.
Cedric
Henry Lu wrote:
Is there any examples with struts template tag? I have had difficulties to
use it. I got error
Dumoulin wrote:
Check application struts-template.war shipped with Struts distribution. Also,
you can check Tiles wich is an advanced template framework.
Cedric
Henry Lu wrote:
Is there any examples with struts template tag? I have had difficulties to
use it. I got error
Is there any examples with struts template tag? I have had difficulties to
use it. I got error:
Invalid directive
Any idea?
---
Henry Lu
MCITphone: (734) 936-2063
University
I would appreciate anybody that has an answer to this problem we have.
We serve our jsp and html pages on different servers with the help of a
plugin. Let's say our jsp pages are on server1 with an alias of /server1
and html pages are on server2 with an alias of /server2.
In the template jsp
Does template tag requires to work with session?
My web application has lots of pages that are purely
publication that no session is required.
If I add %@ page session=false %
then template content will disappear.
If I remove %@ page session=false % which is
default to %@ page session=true
Looks like you got a flush problem. You can try to use flush=true in
template:get This is a known problem with some web container.
Cedric
Bryan Mallinson wrote:
I am using template tags.
I place content in another JSP file and insert it in a template file.
When the output is
.
Thanks,
Dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
]On Behalf Of Cedric Dumoulin
Sent: Monday, September 03, 2001 3:33 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic template tag parameter values
The tiles tutorial have been moved into the tiles-doc.war
, 2001 3:33 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic template tag parameter values
The tiles tutorial have been moved into the tiles-doc.war file, under
'tutorial'.
I think the error is issue because the servlet has failed to start. Are
you
sure you use a jaxp1.1 compliant parser
of my tomcat server
to deploy them.
thanks for the help.
Dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
]On Behalf Of Cedric Dumoulin
Sent: Friday, August 31, 2001 5:01 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic template tag parameter values
You can
You can do something like :
template:put name=sidebar content='%= /jsps/sidemenu+ clientName+
.jsp%'/
But you certainly have to put some processing before to check if the
clientName is valid.
Also, you can check Tiles contribution for others ideas. For example, you can
adapt the
tomcat server
to deploy them.
thanks for the help.
Dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
]On Behalf Of Cedric Dumoulin
Sent: Friday, August 31, 2001 5:01 AM
To: [EMAIL PROTECTED]
Subject: Re: dynamic template tag parameter values
You can do something
Our site will be accessed by users via other sites on the web. For
instance, our site might be accessed from a link on Cisco's site. When this
occurs we want the GUI to be different than the default GUI (same general
layout, but different graphics etc.) To do this I was hoping to include a
Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 19, 2001 7:18 AM
To: [EMAIL PROTECTED]
Subject: Re: What is Titles? and what gonna happens to template tag in
thefurture?
The Tiles tablib can be used as a drop-in replace for the template
taglib. You can even continue to use
, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/
Trieu, Danny wrote:
Robert,
Thanks you for your reply. Do you know if there is any change or
enhancement to the template tag in the future release
any link where I can read more about Titles?
Thanks,
danny
http://www.lifl.fr/~dumoulin/tiles/
HTH,
robert
-Original Message-
From: Trieu, Danny [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 1:45 PM
To: '[EMAIL PROTECTED]'
Subject: What is Titles? and what gonna happens to template tag in the
furture?
any link where I can read
Robert,
Thanks you for your reply. Do you know if there is any change or
enhancement to the template tag in the future release?
danny
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: RE: What
Danny,
I'm not qualified to answer this question. Maybe one of the Struts dev team
can chime in on this one. I have heard that Tiles will be incorporated into
a future Struts release, but I'm not sure what will happen to the template
tag.
robert
-Original Message-
From: Trieu, Danny
absolute, or relative to the template, NOT the putting JSP.
-Original Message-
From: Boompally, Jayapal [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:15 PM
To: '[EMAIL PROTECTED]'
Subject: Problem in template tag
First time template working correctly but when I submit
Thanks! This worked wonderfully. I can now see that, for instance, I
typo'd one of my MessageResource names.. instead of the annoying
exception in struts template:'get' tag. :)
-tak
Yeah this is a problem with WebLogic, it doesn't propogate tag exceptions.
Fortunately the struts tags
First time template working correctly but when I submit to other same page
it is not showing header, footer, menu it only showing content
please help me
Thanks
Jayapal
Summary:
our custom taglib exceptions are being masked from the Jsp errorPages by
our usage of the struts template taglibs. Is there a way we can
percolate our exceptions to the JSP error pages?
Details
We're running using WebLogic 6.0 on Linux.
We've been using struts for about six months
m
Robert Taylor wrote:
Although it doesn't discuss struts template tag specifically, the J2EE
BluePrint has a good section on the comparison of JSP includes and using
templates. I believe it is in section 10.3 where it discuss the Sample
Application: View.
http://java.sun.com/j2ee/
tables where you set the header, footer, sidebar, and etc...) on every
single jsp page.
Troy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jim Newsham
Sent: Friday, March 16, 2001 7:20 PM
To: [EMAIL PROTECTED]
Subject: struts-template tag library vs
plate" web app. will clear
this up for you.
Good luck,
Troy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jim Newsham
Sent: Monday, March 19, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: Re: struts-template tag library vs. jsp:include/
Thank you f
Hi,
What are the differences between using the struts template tag library and
jsp's include action? What are the advantages and trade-offs of each?
Thanks,
Jim Newsham
d will be looking at this one closely.
Hal
Craig
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Nathan Eric Probst
Sent: Thursday, January 25, 2001 2:13 AM
To: [EMAIL PROTECTED]
Subject: Re: new template tag framework
CTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Nathan Eric Probst
Sent: Thursday, January 25, 2001 2:13 AM
To: [EMAIL PROTECTED]
Subject: Re: new template tag framework
Check out the Components extention to Struts:
http://gauss.ficsgrp.com/cdm
nathan
Quoc Le wrote:
On 1/25/2001 at 11:42 AM Craig R. McClanahan wrote:
It certainly won't be added to 1.0 at this point. For 1.1, I'm
certainly open to cool additions, and will be looking at this one
closely.
The coolest addition would be one that actually leveraged the Struts
framework, the way some of the
PROTECTED]]
Sent: Thursday, January 25, 2001 3:29 PM
To: Struts List
Subject: Re: new template tag framework
On 1/25/2001 at 11:42 AM Craig R. McClanahan wrote:
It certainly won't be added to 1.0 at this point. For 1.1, I'm
certainly open to cool additions, and will be looking at this one
closely
Another approach that's worth considering is the
portlet concept in JetSpeed
(http://jakarta.apache.org/jetspeed). The added
advanatge is it allows the user to customise the
layout themselves (a cheap form of personalisation).
It certainly won't be added to 1.0 at this point.
For 1.1, I'm
Check out the Components extention to Struts:
http://gauss.ficsgrp.com/cdm
nathan
Quoc Le wrote:
The struts-template example implements a "C-Frame" using
the new template tag framework. I was a little disappointed
to find, though, that each new page inserted inside the
C-Frame
Hay,
You can't use a java variable defined in a page inside included page.
You need to define your variable in a scope (here request, but can
also be session or application).
An alternative to your problem could also be :
%String strToBeUsedByPageA = "Hello";% template:insert
I have misspell the Components Proposal URL !
try : http://gauss.ficsgrp.com/cdm/
Cedric
Cedric Dumoulin wrote:
Hay,
You can't use a java variable defined in a page inside included page.
You need to define your variable in a scope (here request, but can
also be session or
to extend the template tag comes in.
In any rate, I have a work around for now, which is to use the
request.setAttribute(...) and request.getAttribute(...)
to pass and retrieve objects between those files involved in the template.
It is not convenient, but, I guess that's what I have to do at
Here is an example:
// Here is the code segment for the enclosing tag,
the template:insert ...
.
%
String strToBeUsedByPageA =
"Hello";
%
template:insert
template='aTemplate.jsp'
template:put
name='PageA.jsp'
/template:insert
// Here is the code segment for the enclosed file,
48 matches
Mail list logo