template tags

2001-06-12 Thread Mike Thompson



Ok, another question:
 
I'm trying to divide the web portion off the app 
into folders etc as per the walkthrough on husted.com.  My only problem is 
the links.  So down in one of my sub dirs, I would like to refer to a page 
in the root dir.  
  
            
 
        
 
My problem is that it looks for sidebar 
and home.jsp in the wrong directory.  They are located in the 
root directory.  I don't want to have to replicate sidebar and home in the 
child directory.  Has anyone else run into this?
    --m
 
Michael R. Thompsonhttp://www.instanton.com512.439.3815


template tags

2001-08-24 Thread devon . bowen

I put a special header and footer on all my pages. I'd like
to do this with the template tags. Template tags allow
you to pass named parameters to the template. However, I need
to pass a list of things (navigation URLs) into my header
so it can print a list of hyperlinks. It doesn't seem possible
to pass a list of items with the template tags. Can anyone
suggest anything?

Devon




Template tags ?

2001-01-05 Thread Laufer, Michael
Title: Template tags ?





Hi,


I'm already programming a couple of weeks with Struts and I'm totally fascinated about it, but
I still haven't figured out, when I could, should ... use the template-tags of the
Struts framework.
Could anybody give me a short introduction,maybe with a short example, how tu use these tags.


Thanks in advance.


Michael





Template tags?

2001-02-20 Thread John Nikolai


Hi all!

I'm defiantly new to the struts and taglibs so please bear with my questions:

We are writing a proof of concept to see if struts will meet our needs for 
a non-profit customer we are working with. Several questions have come up 
during this process. First off,  the web pages we will be creating will 
have a common navigation bar used across the whole web site. It would be 
great if we can create one HTML file called navigation.jsp which all pages 
use. It seems that the struts template taglibs might be the solution, 
unfortunately the 0.5 version of struts we downloaded does not contain 
these taglibs. The template taglibs are in CVS and easily accessed but I'm 
wondering if these are going to be distributed in the next release of 
struts. Also I'm wondering if the template taglibs will suit our needs. Any 
other solutions to the above problem would be greatly appreciated.

OK, this was only one question. I'm sure as we move along with the proof of 
concept more will pop up.

Thanks for all your help,
  - John




Template tags

2001-04-14 Thread Olivier Houyoux

Hi,

I'm using the template library to create a dynamic template for index pages
that share the same format (see below). One of the pages (menu.jsp) that
compose the template has a form which validation is handled by two
components : the associated ActionForm object for the simple validation and
the associated Action object for specific business logic validation.
If a validation error occurs, the request is redirected to the calling page
automatically by the ActionForm (I suppose) or manually by my Action object
(return new RedirectingActionForward("/index.jsp")).
Unfortunately, a part of the index page content is then lost : only the page
with the form (menu.jsp) is correctly displayed, the other parts
(header.jsp, body.jsp and footer.jsp) seem to be ignored.

What's wrong ? Is that a context relative path problem ? Any idea on how to
fix it ?


Here is my 'index.jsp' page :

<%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>









Regards,

Olivier.




Re: template tags

2001-08-24 Thread Gregor Rayman

<[EMAIL PROTECTED]> wrote:


> I put a special header and footer on all my pages. I'd like
> to do this with the template tags. Template tags allow
> you to pass named parameters to the template. However, I need
> to pass a list of things (navigation URLs) into my header
> so it can print a list of hyperlinks. It doesn't seem possible
> to pass a list of items with the template tags. Can anyone
> suggest anything?
> 
> Devon

You can put the list in an request scoped bean with defined name.
The template can then access it, e.g. with 

--
gR




Re: template tags

2001-08-27 Thread Cedric Dumoulin


  With Tiles, you can do something like :


  

  


 and in the template itself :


  


  



Also, template description can be defined in a separate file, and you
can use role with  (for now in jsp page, will
be soon available in definition file).

[EMAIL PROTECTED] wrote:

> > You mean something like this?
> >
> > 
> > 
> > 
> >
> > I am not sure, whether this is possible in the
> > soon-to-be-deprecated template
> > tags or in the tiles tags, but the idea is good.
>
> No, I mean a caller like:
>
> 
>   
>   
>   
> 
>
> Then in the template itself:
>
> 
>   
> 
>
> So the  would recognize that name needs
> to be a list and create the bean accordingly.
>
> Devon




Re: Template tags ?

2001-01-05 Thread Craig R. McClanahan


"Laufer, Michael" wrote:
 
Hi,
I'm already programming a couple of
weeks with Struts and I'm totally fascinated about it, but
I still haven't figured out, when
I could, should ... use the template-tags of the
Struts framework.
Could anybody give me a short introduction,maybe
with a short example, how tu use these tags.
 
There is a small example webapp that uses these tags included with Struts. 
Simply deploy the "webapps/struts-template.war" file in your servlet container,
and give it a try.
 
Thanks in advance.
Michael
Craig
 


RE: Template tags?

2001-02-20 Thread Andrew Boyko

> during this process. First off,  the web pages we will be creating will 
> have a common navigation bar used across the whole web site. It would be 
> great if we can create one HTML file called navigation.jsp which 
> all pages use.

If that's the only common element on the pages, you can do that 
using the JSP include tags, pulling in the common nav bar within
each content page.

The template tags (as we've been using them, at least) support a 
somewhat different model: your content pages push their specific 
content into common templates, which place the content into regions 
of the template.  This allows you to have standard headers, footers,
or any other common content and layout without the content pages 
needing to know or care what the standard layout is; it also allows 
you to redesign the template, potentially completely re-ordering 
the content presentation, without changing the content pages at all.

We've introduced the template tags to both java coders and HTML
authors, and all found it easy to understand and like,
and quite powerful.  

> It seems that the struts template taglibs might be the solution, 
> unfortunately the 0.5 version of struts we downloaded does not contain 
> these taglibs. 

In my experience, cvs or nightly builds have been solid for
a long while, and have been quite safe for development, not
only for the template tags, but for the entire library.  

Andy Boyko[EMAIL PROTECTED]



RE: Template tags?

2001-02-20 Thread McCay, Larry

The 1.0 release will be officially released very shortly.

In the mean time I suggest you use the latest nightly builds as they are
very nearly what the final 1.0 release will be. 

As far as the template tags I am not familiar enough with them to comment.

But, with jsp:include you can easily add your navigation bar.

-Original Message-
From: John Nikolai
To: [EMAIL PROTECTED]
Sent: 2/20/01 7:31 PM
Subject: Template tags?


Hi all!

I'm defiantly new to the struts and taglibs so please bear with my
questions:

We are writing a proof of concept to see if struts will meet our needs
for 
a non-profit customer we are working with. Several questions have come
up 
during this process. First off,  the web pages we will be creating will 
have a common navigation bar used across the whole web site. It would be

great if we can create one HTML file called navigation.jsp which all
pages 
use. It seems that the struts template taglibs might be the solution, 
unfortunately the 0.5 version of struts we downloaded does not contain 
these taglibs. The template taglibs are in CVS and easily accessed but
I'm 
wondering if these are going to be distributed in the next release of 
struts. Also I'm wondering if the template taglibs will suit our needs.
Any 
other solutions to the above problem would be greatly appreciated.

OK, this was only one question. I'm sure as we move along with the proof
of 
concept more will pop up.

Thanks for all your help,
  - John



Re: Template tags?

2001-02-20 Thread David Geary

John Nikolai wrote:

> We are writing a proof of concept to see if struts will meet our needs for
> a non-profit customer we are working with. Several questions have come up
> during this process. First off,  the web pages we will be creating will
> have a common navigation bar used across the whole web site. It would be
> great if we can create one HTML file called navigation.jsp which all pages
> use. It seems that the struts template taglibs might be the solution,
> unfortunately the 0.5 version of struts we downloaded does not contain
> these taglibs. The template taglibs are in CVS and easily accessed but I'm
> wondering if these are going to be distributed in the next release of
> struts. Also I'm wondering if the template taglibs will suit our needs. Any
> other solutions to the above problem would be greatly appreciated.

Yes, it sounds like templates suit your needs. And templates will be in
future Struts releases.


david  (developer of the Struts template tags)




Re: Template tags?

2001-02-20 Thread David Geary

Andrew Boyko wrote:

> > during this process. First off,  the web pages we will be creating will
> > have a common navigation bar used across the whole web site. It would be
> > great if we can create one HTML file called navigation.jsp which
> > all pages use.
>
> If that's the only common element on the pages, you can do that
> using the JSP include tags, pulling in the common nav bar within
> each content page.

True, but templates are so much cooler.  ;-)

> The template tags (as we've been using them, at least) support a
> somewhat different model: your content pages push their specific
> content into common templates, which place the content into regions
> of the template.  This allows you to have standard headers, footers,
> or any other common content and layout without the content pages
> needing to know or care what the standard layout is; it also allows
> you to redesign the template, potentially completely re-ordering
> the content presentation, without changing the content pages at all.

Another benefit is that templates encourage you to divide your JSP pages
into reusable components, although the same could be said of .

> We've introduced the template tags to both java coders and HTML
> authors, and all found it easy to understand and like,
> and quite powerful.

Amen.

> > It seems that the struts template taglibs might be the solution,
> > unfortunately the 0.5 version of struts we downloaded does not contain
> > these taglibs.
>
> In my experience, cvs or nightly builds have been solid for
> a long while, and have been quite safe for development, not
> only for the template tags, but for the entire library.

Templates are in Struts to stay.


david





RE: Template tags?

2001-02-21 Thread John Nikolai

At 08:27 PM 2/20/2001 -0500, you wrote:
> > during this process. First off,  the web pages we will be creating will
> > have a common navigation bar used across the whole web site. It would be
> > great if we can create one HTML file called navigation.jsp which
> > all pages use.
>
>If that's the only common element on the pages, you can do that
>using the JSP include tags, pulling in the common nav bar within
>each content page.
>
>The template tags (as we've been using them, at least) support a
>somewhat different model: your content pages push their specific
>content into common templates, which place the content into regions
>of the template.  This allows you to have standard headers, footers,
>or any other common content and layout without the content pages
>needing to know or care what the standard layout is; it also allows
>you to redesign the template, potentially completely re-ordering
>the content presentation, without changing the content pages at all.
>
>We've introduced the template tags to both java coders and HTML
>authors, and all found it easy to understand and like,
>and quite powerful.

This is what we used to do with our old custom tags. We would have one html 
file which contained the navigation portion (both a top and left hand 
navigation bar). We inserted a custom tag called "application" which would 
be "filled" in with a particular application when rendered. We wrote one 
class to render the navigation portion and created several abstract methods 
so that subclass can fill in the "application" and "menu" tags as needed. 
It looked like the following (please excuse the bad ascii art ;-)

  NavPageDisplayer
 ^
 | ProfilePageDisplayer
 | LoginPageDisplayer
 | MainPageDisplayer
 | etc...

So each NavPageDisplayer subclass would always be rendered with the 
navigation bar. With this design it was very easy to create a new dynamic 
page. I was hoping we could do something similar with the template taglib 
used by struts.


> > It seems that the struts template taglibs might be the solution,
> > unfortunately the 0.5 version of struts we downloaded does not contain
> > these taglibs.
>
>In my experience, cvs or nightly builds have been solid for
>a long while, and have been quite safe for development, not
>only for the template tags, but for the entire library.
>
>Andy Boyko[EMAIL PROTECTED]


I will download the latest source from cvs. Thank you to everyone for your 
help!

  - John




AW: Template tags?

2001-02-27 Thread D. Veniseleas



-Ursprungliche Nachricht-
Von:John Nikolai [SMTP:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 21. Februar 2001 01:31
An: [EMAIL PROTECTED]
Betreff:Template tags?


Hi all!

I'm defiantly new to the struts and taglibs so please bear with my questions:

We are writing a proof of concept to see if struts will meet our needs for 
a non-profit customer we are working with. Several questions have come up 
during this process. First off,  the web pages we will be creating will 
have a common navigation bar used across the whole web site. It would be 
great if we can create one HTML file called navigation.jsp which all pages 
use. It seems that the struts template taglibs might be the solution, 
unfortunately the 0.5 version of struts we downloaded does not contain 
these taglibs. The template taglibs are in CVS and easily accessed but I'm 
wondering if these are going to be distributed in the next release of 
struts. Also I'm wondering if the template taglibs will suit our needs. Any 
other solutions to the above problem would be greatly appreciated.

OK, this was only one question. I'm sure as we move along with the proof of 
concept more will pop up.

Thanks for all your help,
  - John
[]  
Hi,

I'm using a nightly build of struts 1.0 since some weeks and template tags are working 
quite well.
I insert data from files as well as from a database.
You can also invoke a template by itself and get very strange results...

Dimitris




Re: Template tags

2001-04-18 Thread Cedric Dumoulin


  Maybe your browser doesn't render correctly your page, due to a problem with
generated html tags. Check the source code of the resulting page : do you see
evidence of "missing" parts ?

Cedric

Olivier Houyoux wrote:

> Hi,
>
> I'm using the template library to create a dynamic template for index pages
> that share the same format (see below). One of the pages (menu.jsp) that
> compose the template has a form which validation is handled by two
> components : the associated ActionForm object for the simple validation and
> the associated Action object for specific business logic validation.
> If a validation error occurs, the request is redirected to the calling page
> automatically by the ActionForm (I suppose) or manually by my Action object
> (return new RedirectingActionForward("/index.jsp")).
> Unfortunately, a part of the index page content is then lost : only the page
> with the form (menu.jsp) is correctly displayed, the other parts
> (header.jsp, body.jsp and footer.jsp) seem to be ignored.
>
> What's wrong ? Is that a context relative path problem ? Any idea on how to
> fix it ?
>
> Here is my 'index.jsp' page :
>
> <%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>
>
> 
> 
> 
> 
> 
> 
>
> Regards,
>
> Olivier.




Tiles vs Template Tags

2002-10-22 Thread Affan Qureshi
I want the layout of my application in such a way that if I want to change it I have 
to make changes in a minimum number of places. What should I use Tiles or Template 
Tags? Can someone highlight the difference between the two?

Also when iterating a collection i want to check whether a value is null or not. 
Should I use  tag? Or how else?

Thanks a lot.



Error with Template Tags

2001-06-15 Thread Matt Raible



I have constructed a simple war utilizing the struts-template tag library.
I have deployed it to Tomcat, but I'm getting the error below.  Any ideas?

Thanks,

Matt



 Included servlet error: 500
Location: /uiframework/index.jsp
Error Location:
/uiframework/us/co/douglas/application/uiframework/presentation/template.jsp
Internal Servlet Error:javax.servlet.ServletException:
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
 at
us.co.d_00025uglas.application.ui_00025ramework.presentation.us_0002fco_0002
fdouglas_0002fapplication_0002fuiframework_0002fpresentation_0002findex_0002
ejspindex_jsp_7._jspService(us_0002fco_0002fdouglas_0002fapplication_0002fui
framework_0002fpresenta
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
 at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

Root cause:
javax.servlet.jsp.JspException:
 at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
 at
us.co.d_00025uglas.application.ui_00025ramework.presentation.us_0002fco_0002
fdouglas_0002fapplication_0002fuiframework_0002fpresentation_0002findex_0002
ejspindex_jsp_7._jspService(us_0002fco_0002fdouglas_0002fapplication_0002fui
framework_0002fpresenta
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
 at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java:479)






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: Re: template tags

2001-08-24 Thread devon . bowen

> > I put a special header and footer on all my pages. I'd like
> > to do this with the template tags. Template tags allow
> > you to pass named parameters to the template. However, I need
> > to pass a list of things (navigation URLs) into my header
> > so it can print a list of hyperlinks. It doesn't seem possible
> > to pass a list of items with the template tags. Can anyone
> > suggest anything?
> 
> You can put the list in an request scoped bean with defined name.
> The template can then access it, e.g. with 

That's what I'm doing at the moment with the old 
and  tags. I guess what I'm asking is can I do
this cleaner somehow with the template tags?

Devon




Re: Re: template tags

2001-08-24 Thread Gregor Rayman

<[EMAIL PROTECTED]> wrote:

> > You can put the list in an request scoped bean with defined name.
> > The template can then access it, e.g. with 
> 
> That's what I'm doing at the moment with the old 
> and  tags. I guess what I'm asking is can I do
> this cleaner somehow with the template tags?
> 
> Devon

You mean something like this?




   
I am not sure, whether this is possible in the soon-to-be-deprecated template
tags or in the tiles tags, but the idea is good.

--
gR




sub classing template tags

2001-02-26 Thread bram



Hy,
 
 
I was trying to subclass the template classes, and 
noticed that there were no get methods for the variables
is this done for a reason?
 
 
thanks
 
Bram


Re: AW: Template tags?

2001-02-27 Thread Robert Leland



"D. Veniseleas" wrote:
> these taglibs. The template taglibs are in CVS and easily accessed but I'm
> wondering if these are going to be distributed in the next release of
> struts. 

To quote David Geary, 'templates are here to stay'. All functionality that is in the
Beta or nightly builds will be in the final release of struts 1.0.

-Rob



Re: Tiles vs Template Tags

2002-10-23 Thread David Graham
Use Tiles, the template library is deprecated in favor of Tiles because 
tiles has more functionality.

I believe using the JSTL if tag with the empty keyword will return true when 
the value is false.

David



From: "Affan Qureshi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Tiles vs Template Tags
Date: Tue, 22 Oct 2002 22:01:22 -0700

I want the layout of my application in such a way that if I want to change 
it I have to make changes in a minimum number of places. What should I use 
Tiles or Template Tags? Can someone highlight the difference between the 
two?

Also when iterating a collection i want to check whether a value is null or 
not. Should I use  tag? Or how else?

Thanks a lot.


_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>



Re: Tiles vs Template Tags

2002-10-23 Thread Eddie Bush
Assuming a variable named booleanValue (which is a ... boolean!):

Use Tiles, the template library is deprecated in favor of Tiles 
because tiles has more functionality.

I believe using the JSTL if tag with the empty keyword will return 
true when the value is false.

David 


--
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Template tags and multiple directories

2001-05-22 Thread TJM Todd McGregor

I'm running into some weird behavior using the template tags. I have a
directory structure which separates different areas of my application into
different directories. My template.jsp file is in my root directory and is
shared by pages in the sub-directories. The problem is, all paths to other
resources (i.e. - images, javascript, etc) become broken because the
application is looking for these items relative to the template.jsp file.
Here's what my directory structure looks like:

root
   template.jsp
   header.jsp
   footer.html
   images
   login
  login.jsp <-inserts template.jsp
  loginForm.jsp <---content for the login page
   .
   .
   .

Is there something really obvious that Im missing here? Shouldn't all
resources be relative to the login.jsp page rather than the template.jsp
page? Any ideas, suggestions, or donations of large amounts of money are
greatly appreciated.
  



RE: Re: Re: template tags

2001-08-24 Thread devon . bowen

> You mean something like this?
> 
> 
> 
> 
>
> I am not sure, whether this is possible in the 
> soon-to-be-deprecated template
> tags or in the tiles tags, but the idea is good.

No, I mean a caller like:


  
  
  


Then in the template itself:


  


So the  would recognize that name needs
to be a list and create the bean accordingly.

Devon




Variable substitution in template tags

2001-02-16 Thread Rose.Joshua
 BDY.RTF


Re: sub classing template tags

2001-02-26 Thread David Geary



Just a lack of foresight on the author's part. Those getter methods will
be in the next nightly build.
 
david
bram wrote:
I was trying to
subclass the template classes, and noticed that there were no get methods
for the variablesis this
done for a reason?  thanks Bram





Re: sub classing template tags

2001-02-26 Thread bram



Ok thanx


Re: Variable substitution in template tags

2001-02-16 Thread Craig Tataryn

Hey Rose, glad to see you joined the list!  There was just a posting
yesterday that addressed a similar problem where a person wanted to add a
Resource message as the value the "alt" attribute of the html:img but could
nest the  tag.

The answer I gave is below, try it out and see if it works:

==
How about this:






Craig T.

Peter Alfors wrote:

> scratch that.  You would need to have a bean that had access to the
messages.
>
> Peter Alfors wrote:
>
> > I think that   does what you want.
> >
> > 
> > 
> >
> > HTH,
> > Pete
> >
> > Howard Moore wrote:
> >
> > > Can anybody suggest how I can add internationalised alt text to the
> > >  tag?
> > >
> > > If it were legal I would like to do something like the following;
> > >
> > > 
> > >
> > > but you can't nest tags like this.
> > >
> > > If not does anybody think it would be useful to add an optional 'id'
> > > attribute to the  tag which, if set, causes the
translated
> > > message to be stored in a page context bean with the given name rather
than
> > > being written out? This would allow me to write something like;
> > >
> > > 
> > > 
> > >
> > > It would also allow translated strings to be cached in the page if
they are
> > > going to be used repeatedly (inside a  tag, for
example).
> > > This may improve performance considerably.
> > >
> > > Any comments?
> > >
> > > ---
> > > Howard Moore
> > > Senior Software Engineer
> > > Datapulse CTI
> > > Tel : +44 (0)1491 418000
> > > Fax : +44 (0)1491 411459
> > > E-mail: [EMAIL PROTECTED]

--
I've been trying to change the world for years, but they just won't give me
the
source code

[EMAIL PROTECTED] wrote:

> Hello Everyone,
>
> I am a brand new user; only subscribed about 15 minutes ago.
>
> My team is doing some preliminary investigations into the use of struts
> for rendering jsp-based browser pages.  I took a close look at the
> struts-template sample application, and we are okay with setting our
> template header and sections using put and get statements.  However, we
> have added an extra dimension to it in which we actually pick up
> different template headers depending on our user's locale, and then we
> define specific template file names in resource bundle properties files.
>
> Based on our structure, we need to do a VARIABLE (or properties key)
> SUBSTITUTION, as follows:
>
> 
>
> Or variable substitution as follows:
> 
>
> We do the same for puts and gets, etc, thereby nesting bean tags in
> template tags.  We have of course include the struts-bean.tld file in
> our taglib declarations, as well as defined our Resource Application
> parameter in web.xml. Tomcat squeaks when we perform this variable
> substitution or nested tags.
>
> Is this allowed?  Can anyone please give us directions, recommendations
> as to how to go about substitution in struts tags generally?
>
> Thanks a lot!
>
> Rose Joshua
> Information and Computing / eBusiness Unit
> Shell Canada Limited
> Calgary, Alberta.
> Telephone:  (403)-691-4527
> email: <[EMAIL PROTECTED]>

--
I've been trying to change the world for years, but they just won't give me
the source code



begin:vcard 
n:Tataryn;Craig
tel;home:952-884-6752
tel;work:952-842-5576
x-mozilla-html:TRUE
url:http://www.computer-programmer.org
org:Compuware;Professional Division
adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Staff Analyst
fn:Craig Tataryn
end:vcard



Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Beuck, Torsten

Hi, we like to use Struts with Bea WLS 6.0 for a B2B application. Currently
I am developing a prototype and the first tests under Tomcat worked fine. I
used the Struts template tags for a page design with header, navigation menu
and content. An example:

<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>


  
  
  
  


Now, when I deploy the web application to WLS I get the following:

<21.02.2001 13:21:12 GMT+01:00>  
<[WebAppServletContext(5574888,b2bweb)] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.struts.taglib.template.PutTag.hasBody(PutTag.java:198)
at
org.apache.struts.taglib.template.PutTag.getContent(PutTag.java:181)
at
org.apache.struts.taglib.template.PutTag.doEndTag(PutTag.java:152)
at jsp_servlet._loginpage._jspService(_loginpage.java:111)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

I tried to debug the application an it seems as if the setBodyContent()
method of class PutTag is not invoked, so that the bodyContent member
variable is null. This leads to a NullPointerException in the method
hasBody().
Is that right? Is there a workaround? I like the template tags, so i don't
want to give them up.

By the way: Is the problem described in msg01892 (PropertyResource problem
on WebLogic 6.0) fixed?

Thanks, Torsten
---
Torsten Beuck
OTTO Versand
Abteilung IT-SP-WQ
Wandsbeker Str. 3 - 7
22172 Hamburg

Tel.: ++49 40 6461 5351
Fax: ++49 40 6464 5351
eMail: [EMAIL PROTECTED]



Where did the template tags doc's go?

2003-10-27 Thread Greg Hess








Does anyone know where I can find the doc’s for the
template tags?

 


 
  
  Greg
   Hess
  
 
 
  
  Software
  Engineer
  
 
 
  
  Wrapped
  Apps Corporation
  
 
 
  
  275 Michael Cowpland Dr.
  
 
 
  
  Suite
   201
  
 
 
  
  Ottawa, Ontario
  
 
 
  
  K2M
  2G2
  
 
 
  
  Tel:
  (613) 591 -7552
  
 
 
  
  Fax:
  (613) 591-0523
  
 
 
  
  1 (877) 388-6742
  
 
 
  
  www.wrappedapps.com
  
 
 
  
  
  
 


 








RE: Re: Variable substitution in template tags

2001-02-16 Thread Rose.Joshua
 BDY.RTF


Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Beuck, Torsten

My fault: I used a build from late December. Thanks a lot Hal!



RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal

I am using the components add-on and I like it but it shouldn't go into the
1.0 release. It's too much code and has too much functionality to be merged
without some more review which will take time. One problem I have noticed is
that when a component is included the exceptions are caught which makes it
difficult to have any kind of global error handler. That's an easy fix but
merging the code will not be a trivial effort. 

Besides, there is no compelling reason to add it to struts now because there
is nothing to stop people using struts from also using the components
framework. When it is added to struts there will probably be some re-work
involved but it should be straightforward. 

Hal

-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:48 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts, WebLogic 6.0 and template tags


Hello, Torsen,

It is not an answer to your question. But I would like to use this email and
ask the struts development team about compatibility template library and
components library (http://www.lifl.fr/~dumoulin/components/). Components
allow
to define "instances" to reuse them with different parameter values. They
have
good examples how to use them for implementation. They do not have a "role"
attribute yet. Both components and templates have a lot of common. Why not
combine the best parts both of them and put under struts project before 1.0
release?

"Beuck, Torsten" wrote:

> Hi, we like to use Struts with Bea WLS 6.0 for a B2B application.
Currently
> I am developing a prototype and the first tests under Tomcat worked fine.
I
> used the Struts template tags for a page design with header, navigation
menu
> and content. An example:
>
> <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
>
> 
>   
>   
>   
>   
> 
>



Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Cedric Dumoulin


  When you have a lot of nested Components, and one is faulty, it is very hard
to discovered which one. It is why the actual implementation of insert catch the
exception, and show it in browser. We definitely need to find a better solution.

Cedric

"Deadman, Hal" wrote:

> I am not sure what you are looking for. The component library comes with
> examples including a struts-template example that uses the component
> library.
>
> The issue with components I was complaining about, albeit not clearly, was
> that if a jsp that is part of a component instance and the jsp throws an
> exception, the code surrounding the include will trap the exception and
> print it to the browser. I would prefer that the exception was not caught so
> that I could set up some global handler. Trapping the exception and printing
> it to the browser means that the site operator won't know users are
> experiencing trouble.
>
> Below is some of the offending code from
> s1.struts.taglib.component.IncludeTag.java. Fixing it would involve trapping
> the exceptions and throwing a JspException. Unfortunately that has its own
> problems because JspExceptions can't nest the root exception so you don't
> know exactly where the error occured. At least you know that something bad
> happened. I am not planning to fix this problem for the time being, I am
> just planning to write the jsps so they don't fail. :

>
> Hal
>
> ...
> pageContext.include(page);
> }
>catch (IOException ex)
> {
> processException( ex, "Can't include page '"+ page+ "' : " +
> ex.getMessage() );
> }
>catch (IllegalArgumentException ex)
> {
> // Can't resolve page uri
> processException( ex, "Tag 'include' can't include page '" + page +
> "'. Check if it exist.\n" + ex.getMessage() );
> }
>catch (ServletException ex)
> {
> Throwable realEx = ex;
> if( ex.getRootCause() != null )
>   {
>   realEx = ex.getRootCause();
>   }
> processException( realEx, "[ServletException in:"+ page+ "] " +
> realEx.getMessage()+ "'" );
> }
>   catch (Exception ex) {
>     processException( ex, "[Exception in:" + page + "] "+
> ex.getMessage());
> }
>
> -Original Message-
> From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts, WebLogic 6.0 and template tags
>
> Hal,
> Please give a code example with a component, when you cannot get an
> exception.
> And how it can be fix now.
> Maya
>
> "Deadman, Hal" wrote:
>
> > I am using the components add-on and I like it but it shouldn't go into
> the
> > 1.0 release. It's too much code and has too much functionality to be
> merged
> > without some more review which will take time. One problem I have noticed
> is
> > that when a component is included the exceptions are caught which makes it
> > difficult to have any kind of global error handler. That's an easy fix but
> > merging the code will not be a trivial effort.
> >
> > Besides, there is no compelling reason to add it to struts now because
> there
> > is nothing to stop people using struts from also using the components
> > framework. When it is added to struts there will probably be some re-work
> > involved but it should be straightforward.
> >
> > Hal
> >




Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Maya Muchnik

Hal,
Please give a code example with a component, when you cannot get an exception.
And how it can be fix now.
Maya

"Deadman, Hal" wrote:

> I am using the components add-on and I like it but it shouldn't go into the
> 1.0 release. It's too much code and has too much functionality to be merged
> without some more review which will take time. One problem I have noticed is
> that when a component is included the exceptions are caught which makes it
> difficult to have any kind of global error handler. That's an easy fix but
> merging the code will not be a trivial effort.
>
> Besides, there is no compelling reason to add it to struts now because there
> is nothing to stop people using struts from also using the components
> framework. When it is added to struts there will probably be some re-work
> involved but it should be straightforward.
>
> Hal
>




Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Craig R. McClanahan

Maya Muchnik wrote:

> Hello, Torsen,
>
> It is not an answer to your question. But I would like to use this email and
> ask the struts development team about compatibility template library and
> components library (http://www.lifl.fr/~dumoulin/components/). Components allow
> to define "instances" to reuse them with different parameter values. They have
> good examples how to use them for implementation. They do not have a "role"
> attribute yet. Both components and templates have a lot of common. Why not
> combine the best parts both of them and put under struts project before 1.0
> release?
>

There is no end to good ideas for improvements to Struts, and the components
library is one of them.  However, if we kept adding new functionality we'd never
have a 1.0 release, and that's not good either.

This is definitely high on my personal priority list to look at for 1.1.

Craig





Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Maya Muchnik

Thank you. OK, I understand, that if JSP is good, then no problem.

"Deadman, Hal" wrote:

> I am not sure what you are looking for. The component library comes with
> examples including a struts-template example that uses the component
> library.
>
> The issue with components I was complaining about, albeit not clearly, was
> that if a jsp that is part of a component instance and the jsp throws an
> exception, the code surrounding the include will trap the exception and
> print it to the browser. I would prefer that the exception was not caught so
> that I could set up some global handler. Trapping the exception and printing
> it to the browser means that the site operator won't know users are
> experiencing trouble.
>
> Below is some of the offending code from
> s1.struts.taglib.component.IncludeTag.java. Fixing it would involve trapping
> the exceptions and throwing a JspException. Unfortunately that has its own
> problems because JspExceptions can't nest the root exception so you don't
> know exactly where the error occured. At least you know that something bad
> happened. I am not planning to fix this problem for the time being, I am
> just planning to write the jsps so they don't fail. :)
>
> Hal
>
> ...
> pageContext.include(page);
> }
>catch (IOException ex)
> {
> processException( ex, "Can't include page '"+ page+ "' : " +
> ex.getMessage() );
> }
>catch (IllegalArgumentException ex)
> {
> // Can't resolve page uri
> processException( ex, "Tag 'include' can't include page '" + page +
> "'. Check if it exist.\n" + ex.getMessage() );
> }
>catch (ServletException ex)
> {
> Throwable realEx = ex;
> if( ex.getRootCause() != null )
>   {
>   realEx = ex.getRootCause();
>   }
> processException( realEx, "[ServletException in:"+ page+ "] " +
> realEx.getMessage()+ "'" );
> }
>   catch (Exception ex) {
> processException( ex, "[Exception in:" + page + "] "+
> ex.getMessage());
> }
>
>




RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal

My hasBody() method is like the following so it shouldn't have a null
pointer exception. Are you using a recent nightly build? I think I had this
problem a couple months ago but I think it has been fixed for awhile. 

   private boolean hasBody() {
  if (bodyContent == null)
 return (false);
  return ! bodyContent.getString().equals("");
   }

-Original Message-
From: Beuck, Torsten [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:26 AM
To: '[EMAIL PROTECTED]'
Subject: Struts, WebLogic 6.0 and template tags


Hi, we like to use Struts with Bea WLS 6.0 for a B2B application. Currently
I am developing a prototype and the first tests under Tomcat worked fine. I
used the Struts template tags for a page design with header, navigation menu
and content. An example:

<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>


  
  
  
  


Now, when I deploy the web application to WLS I get the following:

<21.02.2001 13:21:12 GMT+01:00>  
<[WebAppServletContext(5574888,b2bweb)] Servlet failed with Exception
java.lang.NullPointerException
at org.apache.struts.taglib.template.PutTag.hasBody(PutTag.java:198)
at
org.apache.struts.taglib.template.PutTag.getContent(PutTag.java:181)
at
org.apache.struts.taglib.template.PutTag.doEndTag(PutTag.java:152)
at jsp_servlet._loginpage._jspService(_loginpage.java:111)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:208)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1127)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1529)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>

I tried to debug the application an it seems as if the setBodyContent()
method of class PutTag is not invoked, so that the bodyContent member
variable is null. This leads to a NullPointerException in the method
hasBody().
Is that right? Is there a workaround? I like the template tags, so i don't
want to give them up.

By the way: Is the problem described in msg01892 (PropertyResource problem
on WebLogic 6.0) fixed?

Thanks, Torsten
---
Torsten Beuck
OTTO Versand
Abteilung IT-SP-WQ
Wandsbeker Str. 3 - 7
22172 Hamburg

Tel.: ++49 40 6461 5351
Fax: ++49 40 6464 5351
eMail: [EMAIL PROTECTED]



RE: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Deadman, Hal

I am not sure what you are looking for. The component library comes with
examples including a struts-template example that uses the component
library. 

The issue with components I was complaining about, albeit not clearly, was
that if a jsp that is part of a component instance and the jsp throws an
exception, the code surrounding the include will trap the exception and
print it to the browser. I would prefer that the exception was not caught so
that I could set up some global handler. Trapping the exception and printing
it to the browser means that the site operator won't know users are
experiencing trouble. 

Below is some of the offending code from
s1.struts.taglib.component.IncludeTag.java. Fixing it would involve trapping
the exceptions and throwing a JspException. Unfortunately that has its own
problems because JspExceptions can't nest the root exception so you don't
know exactly where the error occured. At least you know that something bad
happened. I am not planning to fix this problem for the time being, I am
just planning to write the jsps so they don't fail. :)

Hal

...
pageContext.include(page);
}
   catch (IOException ex)
{
processException( ex, "Can't include page '"+ page+ "' : " +
ex.getMessage() );
}
   catch (IllegalArgumentException ex)
{
// Can't resolve page uri
processException( ex, "Tag 'include' can't include page '" + page +
"'. Check if it exist.\n" + ex.getMessage() );
}
   catch (ServletException ex)
{
Throwable realEx = ex;
if( ex.getRootCause() != null )
  {
  realEx = ex.getRootCause();
  }
processException( realEx, "[ServletException in:"+ page+ "] " +
realEx.getMessage()+ "'" );
}
  catch (Exception ex) {
processException( ex, "[Exception in:" + page + "] "+
ex.getMessage());
}


-Original Message-
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 11:28 AM
To: [EMAIL PROTECTED]
Subject: Re: Struts, WebLogic 6.0 and template tags


Hal,
Please give a code example with a component, when you cannot get an
exception.
And how it can be fix now.
Maya

"Deadman, Hal" wrote:

> I am using the components add-on and I like it but it shouldn't go into
the
> 1.0 release. It's too much code and has too much functionality to be
merged
> without some more review which will take time. One problem I have noticed
is
> that when a component is included the exceptions are caught which makes it
> difficult to have any kind of global error handler. That's an easy fix but
> merging the code will not be a trivial effort.
>
> Besides, there is no compelling reason to add it to struts now because
there
> is nothing to stop people using struts from also using the components
> framework. When it is added to struts there will probably be some re-work
> involved but it should be straightforward.
>
> Hal
>



Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Maya Muchnik

Hello, Torsen,

It is not an answer to your question. But I would like to use this email and
ask the struts development team about compatibility template library and
components library (http://www.lifl.fr/~dumoulin/components/). Components allow
to define "instances" to reuse them with different parameter values. They have
good examples how to use them for implementation. They do not have a "role"
attribute yet. Both components and templates have a lot of common. Why not
combine the best parts both of them and put under struts project before 1.0
release?

"Beuck, Torsten" wrote:

> Hi, we like to use Struts with Bea WLS 6.0 for a B2B application. Currently
> I am developing a prototype and the first tests under Tomcat worked fine. I
> used the Struts template tags for a page design with header, navigation menu
> and content. An example:
>
> <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
>
> 
>   
>   
>   
>   
> 
>




Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread Cedric Dumoulin


  Thanks all for you comments on Components library.

  Unfortunately, I have less and less time for Components. So, if there is some
volunteers to improve them, let me know.  I will soon put Components project on
a CVS server. This will allows others people to participate ...

Cedric


"Deadman, Hal" wrote:

> I am using the components add-on and I like it but it shouldn't go into the
> 1.0 release. It's too much code and has too much functionality to be merged
> without some more review which will take time. One problem I have noticed is
> that when a component is included the exceptions are caught which makes it
> difficult to have any kind of global error handler. That's an easy fix but
> merging the code will not be a trivial effort.
>
> Besides, there is no compelling reason to add it to struts now because there
> is nothing to stop people using struts from also using the components
> framework. When it is added to struts there will probably be some re-work
> involved but it should be straightforward.
>
> Hal
>
> -Original Message-
> From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 21, 2001 10:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts, WebLogic 6.0 and template tags
>
> Hello, Torsen,
>
> It is not an answer to your question. But I would like to use this email and
> ask the struts development team about compatibility template library and
> components library (http://www.lifl.fr/~dumoulin/components/). Components
> allow
> to define "instances" to reuse them with different parameter values. They
> have
> good examples how to use them for implementation. They do not have a "role"
> attribute yet. Both components and templates have a lot of common. Why not
> combine the best parts both of them and put under struts project before 1.0
> release?
>
> "Beuck, Torsten" wrote:
>
> > Hi, we like to use Struts with Bea WLS 6.0 for a B2B application.
> Currently
> > I am developing a prototype and the first tests under Tomcat worked fine.
> I
> > used the Struts template tags for a page design with header, navigation
> menu
> > and content. An example:
> >
> > <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
> >
> > 
> >   
> >   
> >   
> >   
> > 
> >




Re: Struts, WebLogic 6.0 and template tags

2001-02-21 Thread David Geary

"Craig R. McClanahan" wrote:

> Maya Muchnik wrote:
>
> > Hello, Torsen,
> >
> > It is not an answer to your question. But I would like to use this email and
> > ask the struts development team about compatibility template library and
> > components library (http://www.lifl.fr/~dumoulin/components/). Components allow
> > to define "instances" to reuse them with different parameter values. They have
> > good examples how to use them for implementation. They do not have a "role"
> > attribute yet. Both components and templates have a lot of common. Why not
> > combine the best parts both of them and put under struts project before 1.0
> > release?
> >
>
> There is no end to good ideas for improvements to Struts, and the components
> library is one of them.  However, if we kept adding new functionality we'd never
> have a 1.0 release, and that's not good either.
>
> This is definitely high on my personal priority list to look at for 1.1.

Me too. As soon as I get my book out the door, I'll take a look at adding components
to Struts.


david (the Struts templates guy)




[Fwd: Struts, WebLogic 6.0 and template tags]

2001-11-21 Thread Alain Renaud



--- Begin Message ---

Hi!
I'm new to that Struts thing. I changed our Web site servlet to the
"ActionServlet with XML config" design in a day or so and it works fine
BUT there does not seem to be anyway to trap logical errors (I'm not
talking about errors in a JSP page here): like let's say you change an
action mapping from "myaction.do" to "myaction2.do"; if you refer to
that URL in 10 pages and you forget to update 1 of those links, the user
will get a very ugly stack trace message in the browser, coming from the
ActionServlet and printed by the Web container. Obviously, you could
trap those errors by whatever Web container mechanism (we're using
WebSphere 4), but isn't Struts also a bit about encapsulating the Web
container?... Alain


begin:vcard 
n:Renaud;Alain
tel;fax:514-931-4818
tel;work:514-931-4433
x-mozilla-html:FALSE
url:www.logibro.com
org:Logibro Inc.;Re-engineering
version:2.1
email;internet:[EMAIL PROTECTED]
title:Analyst
adr;quoted-printable:;;3500 Maisonneuve W.=0D=0ASuite 1400;Montreal;QC;H3Z 3C1;Canada
fn:Alain Renaud
end:vcard

--- End Message ---

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Where did the template tags doc's go?

2003-10-27 Thread jbaker
http://www.lifl.fr/~dumoulin/tiles/

Joe Baker
Director of Internet Communications
Amnesty International USA





"Greg Hess" <[EMAIL PROTECTED]>
10/21/03 12:39 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts" <[EMAIL PROTECTED]>
cc: 
    Subject:Where did the template tags doc's go?


Does anyone know where I can find the doc's for the template tags?
 

Greg Hess
Software Engineer
Wrapped Apps Corporation
275 Michael Cowpland Dr.
Suite 201
Ottawa, Ontario
K2M 2G2
Tel: (613) 591 -7552
Fax: (613) 591-0523
1 (877) 388-6742
www.wrappedapps.com

 



problem using custom tags nested inside template tags

2001-09-07 Thread Venkatraman, Shanthi



> I am encountering a problem in using  template tag
> 
> Here is the samle jsp
> 
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/tlds/shan-taglib.tld" prefix="shan" %>
> <%@ taglib uri="/WEB-INF/tlds/struts-template.tld" prefix="template" %>
> 
> 
>  type="com.application.util.PageTemplate"/>
> 
> 
>   
>   
>   
>   
> 
> 
> 
> For putting the mainbody's content, it works with a scriplet.
> But when I do the above (i.e. let the taglib decide the page name,
> Tag lib does get executed and does print out the correct name)
> however in the html generated, It skips the mainbody block.
> 
> Can anyone help me out in this issue ?
> 
> Thanks
> Shanthi



Struts tags vs. bean, logic, form, and template tags

2000-12-01 Thread Mike Campbell

In http://jakarta.apache.org/struts/index.html, I see docs for the bean, form, logic, 
and template tag libraries, yet in the
distribution there's also a struts tag library.  Is this simply the conglomeration of 
those 4?

Thanks

--
Mike Campbell, R&D, Norcross, GA
mailto: [EMAIL PROTECTED]
+678.421.4641





Costs of Using Template Tags: When Not to Use?

2001-05-09 Thread Dustin Marx

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/template/package-summary.html#package_description

The URL above includes the following statement regarding the Struts Template 
Tags library: "These templates are best used when it is likely that a layout 
shared by several pages in your application will change."  Reading between 
the lines, it is implied (at least to me) that using the template tags might 
not be such a good idea if the developer believes that a particular layout 
shared by several pages in the application will seldom or *never* change.

I am wondering what the costs of using the template tags are and how serious 
they are.  If there is little actual impact, it would seem wise to use them 
even if the developer thought the common layout may not change very often.  
I would rather be prepared for the possibility of change of layout if such 
preparation was not costly in terms of performance or other areas.

I realize that templates would not apply in cases where there is little to 
no common layout shared by several pages, but that seems rare in these days 
of "common look and feel."

Any thoughts/opinions on this?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: Struts tags vs. bean, logic, form, and template tags

2000-12-01 Thread Pierre Métras

Hi Mike,


> In http://jakarta.apache.org/struts/index.html, I see docs for the bean,
form, logic, and template tag libraries, yet in the
> distribution there's also a struts tag library.  Is this simply the
conglomeration of those 4?

The struts tag library is the incompatible version 0.5. It's here to ease
transition to version 1.0. Tags are similar in functionalities, but with
incompatible names.
In fact, from my experience, you should remove it after you have updated all
your forms, to be sure that no 0.5 tag remains.

Pierre Métras




Re: Struts tags vs. bean, logic, form, and template tags

2000-12-01 Thread Craig R. McClanahan

Mike Campbell wrote:

> In http://jakarta.apache.org/struts/index.html, I see docs for the bean, form, 
>logic, and template tag libraries, yet in the
> distribution there's also a struts tag library.  Is this simply the conglomeration 
>of those 4?
>

No, it is the Struts 0.5 versions of the tags, kept for backwards compatibility to 
ease conversions.  The new tag libraries have
substantial additional functionality that wasn't present in the old version.  The 
combined library is deprecated for future
development, and will eventually go away.

>
> Thanks
>
> --
> Mike Campbell, R&D, Norcross, GA
> mailto: [EMAIL PROTECTED]
> +678.421.4641

Craig