RE: Use of Struts 1.0.2 template tag doesn't display jsp errors in included files

2002-12-13 Thread mech
Solved the problem myself by migrating to Struts 1.1b2 and using the
 instead. Now I get an jsp error message in each tile and can
debug more easily.

Also solved some other difficulties with pathes to resources that can
now be context relative instead of template relative...

> -Original 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 to use templates with the -Tags.
> 
> I already set  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 error is either empty or the 
> template is not processed any further which is quite 
> difficult to debug.
> 
> Testing each inserted file separately also doesn't help me in 
> every case, because some included files require beans that 
> had been stored into the request scope by an earlier included 
> file for example. So the bean cannot be found if I don't 
> include everything in the correct order.
> 
> Is there any better solution for debugging jsp pages that are 
> template generated? What is the closest I can get to have a 
> jsp page using any kind of includes to only one page which 
> contains all the content? Is that  + no error 
> display problem solved if I use the  tags instead or 
> will I have the same difficulties for jsp debugging?
> 
> I would like to separate design from content without 
> considering for debugging so much that I don't have "just one 
> large page". What is a better practice for that?
> 
> Thanks a lot.
> Michael
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


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




Use of Struts 1.0.2 template tag doesn't display jsp errors in included files

2002-12-13 Thread Michael Echerer
Hi all,

I'm using Tomcat 4.1.15 with Struts 1.0.2 and set up a framework to use templates with 
the -Tags.

I already set  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 error is either empty or the template is not processed 
any further which is quite difficult to debug.

Testing each inserted file separately also doesn't help me in every case, because some 
included files require beans that had been stored into the request scope by an earlier 
included file for example. So the bean cannot be found if I don't include everything 
in the correct order.

Is there any better solution for debugging jsp pages that are template generated?
What is the closest I can get to have a jsp page using any kind of includes to only 
one page which contains all the content?
Is that  + no error display problem solved if I use the  tags instead 
or will I have the same difficulties for jsp debugging?

I would like to separate design from content without considering for debugging so much 
that I don't have "just one large page". What is a better practice for that?

Thanks a lot.
Michael





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




Re: Struts template tag

2002-11-18 Thread Jean-Baptiste Onofré
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, e-mail:   
For additional commands, e-mail: 




Re: Struts template tag

2002-11-18 Thread David Graham
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 template tags.

For exemple, i will define a JSP template like this :

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










In the using JSP, can i use bean in ApplicationResource or in request
scope in put of the template ? like this :

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


	
	
	
	
	
	


Blablabla






Must i define a template with all html page or can i use two template in
one page like this :


	...


Blablablabla


	...





Actualy, i use , one for the beginning of the JSP and one
for the end of the JSP.

If someone can mail me a sample or help for me :)

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, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



Struts template tag

2002-11-18 Thread Jean-Baptiste Onofré
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" %>










In the using JSP, can i use bean in ApplicationResource or in request
scope in put of the template ? like this :

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










Blablabla






Must i define a template with all html page or can i use two template in
one page like this :


...


Blablablabla


...





Actualy, i use , one for the beginning of the JSP and one
for the end of the JSP.

If someone can mail me a sample or help for me :)

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, e-mail:   
For additional commands, e-mail: 




Re: Using the template tag library with parameters like jsp:param

2002-08-31 Thread jw

Hi All

Sorry for the bother - but, who knew - i.e., The issue was apparently
related to the struts "version" I was using (i.e.,
"jakarta-struts-1.0.2")...

Apparently, the examples will work only with jakarta-struts-1.1-b2.At
least in my current environment (winXP/j2sdk1.4.0_01/jakarta-tomcat-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 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" application.

I have not seen a solution/ explanation, thus far, as to why this occurs.

Any help or insight as to why this happens, would be much appreciated.
Once again, I'm cutting and pasting a code example - that theoretically
should work "out-of-the-box", and once again its not working (whaddya gonna
do?)..

Here is the information/example code that I'm trying to get working when
this error occurs... (NOTE: I'm using jakarta-tomcat-4.0.4,
j2sdk1.4.0_01,jakarta-struts-1.0.2)

*** SubmitForm.java***
package hansen.playground;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class SubmitForm extends ActionForm {

  /* Last Name */
  private String lastName = "Hansen"; // default value
  public String getLastName() {
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }

  /* Address */
  private String address = null;
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }

  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }

  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }

  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }

}


*** SubmitAction.java ***
package hansen.playground;

import javax.servlet.http.*;
import org.apache.struts.action.*;

public final class SubmitAction extends Action {

  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {

SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName();
// Translate the name to upper case
//and save it in the request object
request.setAttribute("lastName", lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward("success"));
  }
}

*** submit.jsp***
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


Submit example


Example Submit Page




Last Name: 
Address:   
Sex:   Male
   Female
Married:   
Age:   
 0-19
 20-49
 50-
   
   






*** struts-config.xml ***

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




  
  


  


  
  
  


  
  







  



*** ***

jw


*** error that I receive ***

javax.servlet.ServletException: Exception creating bean of class
hansen.playground.SubmitForm: java.lang.ClassNotFoundException:
hansen.playground.SubmitForm
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:471)
at org.apache.jsp.submit$jsp._jspService(submit$jsp.java:485)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catal

Re: Using the template tag library with parameters like jsp:param

2002-08-31 Thread jw

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" application.

I have not seen a solution/ explanation, thus far, as to why this occurs.

Any help or insight as to why this happens, would be much appreciated.   Once again, 
I'm cutting and pasting a code example - that theoretically should work 
"out-of-the-box", and once again its not working (whaddya gonna do?)..

Here is the information/example code that I'm trying to get working when this error 
occurs... (NOTE: I'm using jakarta-tomcat-4.0.4,j2sdk1.4.0_01,
jakarta-struts-1.0.2)

*** SubmitForm.java***
package hansen.playground;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public final class SubmitForm extends ActionForm {

  /* Last Name */
  private String lastName = "Hansen"; // default value
  public String getLastName() {
return (this.lastName);
  }
  public void setLastName(String lastName) {
this.lastName = lastName;
  }

  /* Address */
  private String address = null;
  public String getAddress() {
return (this.address);
  }
  public void setAddress(String address) {
this.address = address;
  }

  /* Sex */
  private String sex = null;
  public String getSex() {
return (this.sex);
  }
  public void setSex(String sex) {
this.sex = sex;
  }

  /* Married status */
  private String married = null;
  public String getMarried() {
return (this.married);
  }
  public void setMarried(String married) {
this.married = married;
  }

  /* Age */
  private String age = null;
  public String getAge() {
return (this.age);
  }
  public void setAge(String age) {
this.age = age;
  }

}


*** SubmitAction.java ***
package hansen.playground;

import javax.servlet.http.*;
import org.apache.struts.action.*;

public final class SubmitAction extends Action {

  public ActionForward perform(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response) {

SubmitForm f = (SubmitForm) form; // get the form bean
// and take the last name value
String lastName = f.getLastName();
// Translate the name to upper case
//and save it in the request object
request.setAttribute("lastName", lastName.toUpperCase());

// Forward control to the specified success target
return (mapping.findForward("success"));
  }
}

*** submit.jsp***
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


Submit example


Example Submit Page




Last Name: 
Address:   
Sex:   Male
   Female
Married:   
Age:   
 0-19
 20-49
 50-
   
   






*** struts-config.xml ***

http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>




  
  


  


  
  
  


  
  


  
  



  



*** ***

jw


*** error that I receive ***

javax.servlet.ServletException: Exception creating bean of class 
hansen.playground.SubmitForm: java.lang.ClassNotFoundException: 
hansen.playground.SubmitForm
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at org.apache.jsp.submit$jsp._jspService(submit$jsp.java:485)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

Re: Using the template tag library with parameters like jsp:param

2002-08-31 Thread Eddie Bush

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 is a more feature-rich version of the template mechanism in 
Struts.  It supports this as well.

> 
>
> Then in your template, you can access that value; for example, like this:
>
> ...
>
> Normally, the  tag will include content associated with 
> the named parameter, but if you
> specify direct='true' with , the  tag will 
> just retrieve the value.
>
> See 
> http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html 
> for more information about templates and the direct attribute.
>
> btw, if at all possible, I suggest that you use Tiles instead of 
> templates. The former, which is an extension of the latter, has more 
> functionality.
>
>>   If so, can I use request.getParameter to retrieve values in the 
>> included page? 
>
> No, but you can use  as illustrated above.
>
> david 

Regards,

Eddie



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




Re: Using the template tag library with parameters like jsp:param

2002-08-31 Thread David Geary

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:



Then in your template, you can access that value; for example, like this:

...

Normally, the  tag will include content associated with 
the named parameter, but if you
specify direct='true' with , the  tag will 
just retrieve the value.

See http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html 
for more information about templates and the direct attribute.

btw, if at all possible, I suggest that you use Tiles instead of 
templates. The former, which is an extension of the latter, has more 
functionality.

>   If so, can I use request.getParameter to retrieve values in the 
> included page? 

No, but you can use  as illustrated above.


david

>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> -- 
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
>
>



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




Using the template tag library with parameters like jsp:param

2002-08-31 Thread CB Thomas

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?

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Problem using nested struts template tag

2002-08-15 Thread Ying Gao

I use nested template tag as the following:



  

  
 
 
 
 
  

  



template.jsp is a template that contains header, content and footer.
contentTemplate.jsp is a template that contains a title image and a detail
content jsp to which I pass myContent.jsp. It works fine except that the
browser (both IE and Netscape) keeps busy for a while after the page header,
content and footer are loaded. It seems that the browser tries to load
something else.
JavaScript won't work until the browser finish loading. I have no idea what
it is loading.
It only happens when I use template:put tag to pass a content
(myContent.jsp) to the nested
template (contentTemplate.jsp) without using 'direct="true"'. If I use
'direct="true"'
the browser returns immediately but that is not what I want. I want the
content to be
included instead of printed directly.
Does anyone know what the problem is? Is there any solution or workaround?
Thanks.

Iris


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




Re: template tag

2002-02-19 Thread Cedric Dumoulin


  Tiles examples come with the Tiles distribution. Tiles are available with Struts
nightly build, or from following sites :
(main)   : http://www.lifl.fr/~dumoulin/tiles/
(mirror) : http://www.geocities.com/cedricdumoulin//tiles/

Cedric

Henry Lu wrote:

> No. Where do I find one?
>
> ---
> Henry Lu
> MCITphone: (734) 936-2063
> University of Michigan Medical Center   fax:   (734) 763-4372
>
> On Mon, 18 Feb 2002, Henry Lu wrote:
>
> > Do you have an example of Tiles?
> >
> > Thanks,
> >
> >
> > ---
> > Henry Lu
> > MCITphone: (734) 936-2063
> > University of Michigan Medical Center   fax:   (734) 763-4372
> >
> > On Mon, 18 Feb 2002, Cedric 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:
> > > >
> > > > Invalid directive
> > > >
> > > > Any idea?
> > > >
> > > > ---
> > > > Henry Lu
> > > > MCITphone: (734) 936-2063
> > > > University of Michigan Medical Center   fax:   (734) 763-4372
> > > >
> > > > --
> > > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




Re: template tag

2002-02-18 Thread Henry Lu

No. Where do I find one?


---
Henry Lu
MCITphone: (734) 936-2063
University of Michigan Medical Center   fax:   (734) 763-4372

On Mon, 18 Feb 2002, Henry Lu wrote:

> Do you have an example of Tiles?
>
> Thanks,
>
>
> ---
> Henry Lu
> MCITphone: (734) 936-2063
> University of Michigan Medical Center   fax:   (734) 763-4372
>
> On Mon, 18 Feb 2002, Cedric 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:
> > >
> > > Invalid directive
> > >
> > > Any idea?
> > >
> > > ---
> > > Henry Lu
> > > MCITphone: (734) 936-2063
> > > University of Michigan Medical Center   fax:   (734) 763-4372
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


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




Re: template tag

2002-02-18 Thread Henry Lu

Do you have an example of Tiles?

Thanks,


---
Henry Lu
MCITphone: (734) 936-2063
University of Michigan Medical Center   fax:   (734) 763-4372

On Mon, 18 Feb 2002, Cedric 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:
> >
> > Invalid directive
> >
> > Any idea?
> >
> > ---
> > Henry Lu
> > MCITphone: (734) 936-2063
> > University of Michigan Medical Center   fax:   (734) 763-4372
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


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




Re: template tag

2002-02-18 Thread Cedric Dumoulin


  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 idea?
>
> ---
> Henry Lu
> MCITphone: (734) 936-2063
> University of Michigan Medical Center   fax:   (734) 763-4372
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


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




template tag

2002-02-15 Thread Henry Lu

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 of Michigan Medical Center   fax:   (734) 763-4372


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




Template tag and html pages

2002-01-25 Thread Fuller, Wayne

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 file, why doesn't the following work.

<%@ page language="java" %>
<%@ taglib uri="/web-inf/struts-template.tld" prefix="template" %>


  
  
  


The problem is it puts "/server1" at the front of the content properties.
Is there a way to specify another alias like this without it putting the
"/server1" in the front of the uri.

Thanks,
Wayne

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




template tag and session

2001-10-05 Thread c tang

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" %> 
the templage content is display fine.

Did I missing something?

thanks!

ct

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Re: Template Tag

2001-09-25 Thread Cedric Dumoulin


  Looks like you got a flush problem. You can try to use flush="true" in
. 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 written to the screen the content in the JSP file is
> written above the template content.
> So everything is being written to the screen,
> but not in the correct spot.
>
> I used my code with bea weblogic application server and it worked fine.
>
> But upon using my code with
> IBM Visual Age for Java 4.0 integrated
> Websphere 3.5.3 test environment and Struts 1.0 i get the above
> mentioned error.
> As well,
> The same error occurs with Apache Tomcat Test Environment integrated
> with
> Visual Age for Java.
>
> Does anybody know if this is an error related to Visual Age?
> Can anybody give me some information.
>
> Bryan Mallinson
>
> Software Developer
> Toronto Global Development Centre
> Infosys Technologies Ltd.
>
> Tel:  (416) 224-7469
> Fax: (416) 224-7449
> Email: [EMAIL PROTECTED]




Template Tag

2001-09-24 Thread Bryan Mallinson

I am using template tags.
I place content in another JSP file and insert it in a template file.
When the output is written to the screen the content in the JSP file is
written above the template content.
So everything is being written to the screen,
but not in the correct spot.

I used my code with bea weblogic application server and it worked fine.

But upon using my code with 
IBM Visual Age for Java 4.0 integrated 
Websphere 3.5.3 test environment and Struts 1.0 i get the above
mentioned error.
As well,
The same error occurs with Apache Tomcat Test Environment integrated
with 
Visual Age for Java.

Does anybody know if this is an error related to Visual Age?
Can anybody give me some information.

Bryan Mallinson

Software Developer
Toronto Global Development Centre
Infosys Technologies Ltd.

Tel:  (416) 224-7469
Fax: (416) 224-7449
Email: [EMAIL PROTECTED]




Re: dynamic template tag parameter values

2001-09-04 Thread Cedric Dumoulin



  Struts 1.1 is available from
http://jakarta.apache.org/builds/jakarta-struts/nightly/ .
  Pick up the most recent files, usually at bottom of list.
  Check if Struts1.1 example work. If not, check if you haven't multiple
instances of jaxp in your classpath. Especially, check tomcat/lib.
  There is no known problems running Tiles and Struts1.0 or 1.1, so it certainly
comes from your configuration.

Cedric

David Boardman wrote:

> I have only run the struts 1.0 example, and have not yet downloaded struts
> 1.1(I could not find it at the Struts site). I downloaded the JAXP reference
> implementation and placed jaxp.jar, crimson.jar and xalan.jar in my
> classpath.  After restarting Tomcat I got the same error message as before.
>
> 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 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 ? Does Struts1.1 example runs with
> your
> configuration ?
>
>   Cedric
>
> David Boardman wrote:
>
> > A couple of questions about Tiles,
> >
> > When I downloaded the binary distribution I did not see the
> > tiles-tutorial.war file and was therefore missing some of the files
> > necessary to go through your tutorial.  Am I missing something in the
> > distribution, or was the tutorial removed.
> >
> > Secondly, when I attempt to run both the tiles-docs application and the
> > tiles-channel application I got an exception with the following message:
> >
> > "Tag Insert : Can't get component definition 'mainLayout'. Check if this
> > name exist in component definitions."
> >
> > I simply placed the war files in the webapps directory 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 do something like :
> > 
> >   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 channels example to fit your client names.
> >
> > Cedric
> >
> > Tiles sites :
> >   http://www.lifl.fr/~dumoulin/tiles/
> >   (mirror) : http://www.geocities.com/cedricdumoulin/tiles/
> >
> > David Boardman wrote:
> >
> > > 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
> > > client parameter in the query string
> > > (http://oursite.com/login.jsp?client=Xxx) and then use that to
> dynamically
> > > set the value of the content parameter within a  tag to
> load
> > > the appropriate jsp.
> > >
> > > I believe I can retrieve the query string parameter using
>  > > id="clientName" name="client">.  However, I am not sure how to
> dynamically
> > > include this value in the content parameter of the  tag.
> > >
> > > For example, my default template currently looks like this:
> > >
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > for Cisco I would like it to look like:
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > and for client=Xxx I would like it to look like:
> > > **
> > > <%@ page language="java" %>
> > > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> > >
> > > 
> > >  > > key="candidate.detail.title"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > **
> > >
> > > Any help would be greatly apprecitated.
> > >
> > > Thanks,
> > >
> > > David Boardman
> > > Integral7




RE: dynamic template tag parameter values

2001-09-04 Thread David Boardman

I have only run the struts 1.0 example, and have not yet downloaded struts
1.1(I could not find it at the Struts site). I downloaded the JAXP reference
implementation and placed jaxp.jar, crimson.jar and xalan.jar in my
classpath.  After restarting Tomcat I got the same error message as before.


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 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 ? Does Struts1.1 example runs with
your
configuration ?

  Cedric

David Boardman wrote:

> A couple of questions about Tiles,
>
> When I downloaded the binary distribution I did not see the
> tiles-tutorial.war file and was therefore missing some of the files
> necessary to go through your tutorial.  Am I missing something in the
> distribution, or was the tutorial removed.
>
> Secondly, when I attempt to run both the tiles-docs application and the
> tiles-channel application I got an exception with the following message:
>
> "Tag Insert : Can't get component definition 'mainLayout'. Check if this
> name exist in component definitions."
>
> I simply placed the war files in the webapps directory 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 do something like :
> 
>   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 channels example to fit your client names.
>
> Cedric
>
> Tiles sites :
>   http://www.lifl.fr/~dumoulin/tiles/
>   (mirror) : http://www.geocities.com/cedricdumoulin/tiles/
>
> David Boardman wrote:
>
> > 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
> > client parameter in the query string
> > (http://oursite.com/login.jsp?client=Xxx) and then use that to
dynamically
> > set the value of the content parameter within a  tag to
load
> > the appropriate jsp.
> >
> > I believe I can retrieve the query string parameter using
 > id="clientName" name="client">.  However, I am not sure how to
dynamically
> > include this value in the content parameter of the  tag.
> >
> > For example, my default template currently looks like this:
> >
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > for Cisco I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > and for client=Xxx I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > Any help would be greatly apprecitated.
> >
> > Thanks,
> >
> > David Boardman
> > Integral7





Re: dynamic template tag parameter values

2001-09-03 Thread Cedric Dumoulin


  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 ? Does Struts1.1 example runs with your
configuration ?

  Cedric

David Boardman wrote:

> A couple of questions about Tiles,
>
> When I downloaded the binary distribution I did not see the
> tiles-tutorial.war file and was therefore missing some of the files
> necessary to go through your tutorial.  Am I missing something in the
> distribution, or was the tutorial removed.
>
> Secondly, when I attempt to run both the tiles-docs application and the
> tiles-channel application I got an exception with the following message:
>
> "Tag Insert : Can't get component definition 'mainLayout'. Check if this
> name exist in component definitions."
>
> I simply placed the war files in the webapps directory 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 do something like :
> 
>   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 channels example to fit your client names.
>
> Cedric
>
> Tiles sites :
>   http://www.lifl.fr/~dumoulin/tiles/
>   (mirror) : http://www.geocities.com/cedricdumoulin/tiles/
>
> David Boardman wrote:
>
> > 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
> > client parameter in the query string
> > (http://oursite.com/login.jsp?client=Xxx) and then use that to dynamically
> > set the value of the content parameter within a  tag to load
> > the appropriate jsp.
> >
> > I believe I can retrieve the query string parameter using  > id="clientName" name="client">.  However, I am not sure how to dynamically
> > include this value in the content parameter of the  tag.
> >
> > For example, my default template currently looks like this:
> >
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > for Cisco I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > and for client=Xxx I would like it to look like:
> > **
> > <%@ page language="java" %>
> > <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> > <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
> >
> > 
> >  > key="candidate.detail.title"/>
> > 
> > 
> > 
> > 
> > 
> > **
> >
> > Any help would be greatly apprecitated.
> >
> > Thanks,
> >
> > David Boardman
> > Integral7




RE: dynamic template tag parameter values

2001-08-31 Thread David Boardman

A couple of questions about Tiles,

When I downloaded the binary distribution I did not see the
tiles-tutorial.war file and was therefore missing some of the files
necessary to go through your tutorial.  Am I missing something in the
distribution, or was the tutorial removed.

Secondly, when I attempt to run both the tiles-docs application and the
tiles-channel application I got an exception with the following message:

"Tag Insert : Can't get component definition 'mainLayout'. Check if this
name exist in component definitions."

I simply placed the war files in the webapps directory 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 do something like :

  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 channels example to fit your client names.

Cedric

Tiles sites :
  http://www.lifl.fr/~dumoulin/tiles/
  (mirror) : http://www.geocities.com/cedricdumoulin/tiles/



David Boardman wrote:

> 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
> client parameter in the query string
> (http://oursite.com/login.jsp?client=Xxx) and then use that to dynamically
> set the value of the content parameter within a  tag to load
> the appropriate jsp.
>
> I believe I can retrieve the query string parameter using  id="clientName" name="client">.  However, I am not sure how to dynamically
> include this value in the content parameter of the  tag.
>
> For example, my default template currently looks like this:
>
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> for Cisco I would like it to look like:
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> and for client=Xxx I would like it to look like:
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> Any help would be greatly apprecitated.
>
> Thanks,
>
> David Boardman
> Integral7





Re: dynamic template tag parameter values

2001-08-31 Thread Cedric Dumoulin


  You can do something like :

  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 channels example to fit your client names.

Cedric

Tiles sites :
  http://www.lifl.fr/~dumoulin/tiles/
  (mirror) : http://www.geocities.com/cedricdumoulin/tiles/



David Boardman wrote:

> 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
> client parameter in the query string
> (http://oursite.com/login.jsp?client=Xxx) and then use that to dynamically
> set the value of the content parameter within a  tag to load
> the appropriate jsp.
>
> I believe I can retrieve the query string parameter using  id="clientName" name="client">.  However, I am not sure how to dynamically
> include this value in the content parameter of the  tag.
>
> For example, my default template currently looks like this:
>
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> for Cisco I would like it to look like:
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> and for client=Xxx I would like it to look like:
> **
> <%@ page language="java" %>
> <%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
> <%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>
>
> 
>  key="candidate.detail.title"/>
> 
> 
> 
> 
> 
> **
>
> Any help would be greatly apprecitated.
>
> Thanks,
>
> David Boardman
> Integral7




dynamic template tag parameter values

2001-08-30 Thread David Boardman

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
client parameter in the query string
(http://oursite.com/login.jsp?client=Xxx) and then use that to dynamically
set the value of the content parameter within a  tag to load
the appropriate jsp.

I believe I can retrieve the query string parameter using .  However, I am not sure how to dynamically
include this value in the content parameter of the  tag.

For example, my default template currently looks like this:

**
<%@ page language="java" %>
<%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
<%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>








**

for Cisco I would like it to look like:
**
<%@ page language="java" %>
<%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
<%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>








**


and for client=Xxx I would like it to look like:
**
<%@ page language="java" %>
<%@ taglib uri="/taglibs/struts-template.tld" prefix="template" %>
<%@ taglib uri="/taglibs/struts-bean.tld" prefix="bean" %>








**

Any help would be greatly apprecitated.

Thanks,

David Boardman
Integral7




RE: What is Titles? and what gonna happens to template tag in thefurture?

2001-08-20 Thread Trieu, Danny
java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:215)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1000)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093
)
at java.lang.Thread.run(Thread.java:484)

-Original 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 the template: prefix if you want.
All the changes can be made in the web.xml, and existing JSPs would not
need to be changed. At some point, the template taglib would be moved to
the contrib area and not bundled with the distribution. Whether packages
like Tiles and ValidatorForm will be part of the core Struts download,
or available as seperate downloads, hasn't been decided. We are trying
to balance keeping the framework light against making more functionality
available.

-- Ted Husted, 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?
> 
> danny
> 
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: RE: What is Titles? and what gonna happens to template tag in
> the furture?
> 
> 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 more about Titles?
> 
> Thanks,
> 
> danny




Re: What is Titles? and what gonna happens to template tag in thefurture?

2001-08-19 Thread Ted Husted

The Tiles tablib can be used as a drop-in replace for the template
taglib. You can even continue to use the template: prefix if you want.
All the changes can be made in the web.xml, and existing JSPs would not
need to be changed. At some point, the template taglib would be moved to
the contrib area and not bundled with the distribution. Whether packages
like Tiles and ValidatorForm will be part of the core Struts download,
or available as seperate downloads, hasn't been decided. We are trying
to balance keeping the framework light against making more functionality
available.

-- Ted Husted, 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?
> 
> danny
> 
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 11:05 AM
> To: [EMAIL PROTECTED]
> Subject: RE: What is Titles? and what gonna happens to template tag in
> the furture?
> 
> 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 more about Titles?
> 
> Thanks,
> 
> danny



RE: What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Robert Taylor

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 [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: RE: What is Titles? and what gonna happens to template tag in
the furture?


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 is Titles? and what gonna happens to template tag in
the furture?


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 more about Titles?

Thanks,

danny







RE: What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Trieu, Danny

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 is Titles? and what gonna happens to template tag in
the furture?


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 more about Titles?

Thanks,

danny





RE: What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Robert Taylor

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 more about Titles?

Thanks,

danny






What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Trieu, Danny

any link where I can read more about Titles?

Thanks,

danny




Re: template tag hides custom taglib exceptions

2001-07-17 Thread Mark Takacs

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 store the actual exception in the request object
>under the key org.apache.struts.action.Action.EXCEPTION_KEY, which you can
>retrieve using the call:
>   ... (Throwable)
>request.getAttribute(org.apache.struts.action.Action.EXCEPTION_KEY);
>




RE: Problem in template tag

2001-07-17 Thread DHarty

I'm not sure if I understand your question entirely, but I know that
templates have funny and inconsitent ways of dealing with paths.

For example, you cannot use multiple relative path iterators if your
template is runing in the container (../templates/../page/pagehead.jsp".
This happens if you put a relative path to a template tat is specified by a
relative path.

Also paths specified within the template are relative to the putting JSP,
while paths specified withing the putting file are relative to the template.

Essientiall check the paths sent to the template.  They need to be either
absolute, or relative to the template, NOT the "put"ting 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 to other same page
> it is not showing header, footer, menu it only showing content
>
>
> please help me
> Thanks
> Jayapal




RE: template tag hides custom taglib exceptions

2001-07-16 Thread Jason Te Whau

Yeah this is a problem with WebLogic, it doesn't propogate tag exceptions.
Fortunately the struts tags store the actual exception in the request object
under the key org.apache.struts.action.Action.EXCEPTION_KEY, which you can
retrieve using the call:
... (Throwable)
request.getAttribute(org.apache.struts.action.Action.EXCEPTION_KEY);

Generally you do this call on a common error page, that all of your JSPs
redirect to via the errorPage directive.

HTH

-Original Message-
From: Mark Takacs [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:51 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: template tag hides custom taglib exceptions


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 now and are reasonably
pleased with it. However, using the template tags masks the exceptions
thrown by our custom taglibs. It's not a big problem for our developers,
since we can look at the server logs to get the full stack traces.
However, the error handlers we show via our web GUI are useless for our
QA to base bug reports on.

For instance, we have a mapping in struts-config.xml like

http://jakarta.apache.org/struts/template";
<http://jakarta.apache.org/struts/template> %>







Basic.jsp is also straightforward, simply placing the template elements
on the page. Here's a snippet.





and then we've got your typical login.jsp page with a few custom taglibs
of our own design. The problem occurs when we get an exception in our
taglibs. The Expection is thrown within our taglibs , but the JSP
ErrorPages show

Exception found onErrorPage

javax.servlet.ServletException: runtime failure in custom tag 'get'
at jsp_servlet._templates._basic._jspService(_basic.java:196)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 

RootCause() is

javax.servlet.jsp.JspException
at
org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
at jsp_servlet._templates._basic._jspService(_basic.java:18)
 .

The Offending line in basic.jsp is the insertion of the "login.jsp" page
with our custom taglib which has thrown an exception. Yet JspException
doesn't define a getRootCause() call, so our tablib exception (usually a
runtime one) is completely masked from our QA team via the GUI. The
server logging we have in place clearly shows the Exception (in this
case a SQL connection problem), but we can't get that information up to
our exception page..

Is there a solution to this problem? I've heard that future JSP specs
allow for nested/hierachical Exceptions in JspException. Until then,
does anyone have suggestions or current practices of how you handle
expections that are masked by other taglibs?


-tak





template tag hides custom taglib exceptions

2001-07-16 Thread Mark Takacs

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 now and are reasonably
pleased with it. However, using the template tags masks the exceptions
thrown by our custom taglibs. It's not a big problem for our developers,
since we can look at the server logs to get the full stack traces.
However, the error handlers we show via our web GUI are useless for our
QA to base bug reports on.

For instance, we have a mapping in struts-config.xml like

http://jakarta.apache.org/struts/template";
 %>







Basic.jsp is also straightforward, simply placing the template elements
on the page. Here's a snippet.





and then we've got your typical login.jsp page with a few custom taglibs
of our own design. The problem occurs when we get an exception in our
taglibs. The Expection is thrown within our taglibs , but the JSP
ErrorPages show

Exception found onErrorPage

javax.servlet.ServletException: runtime failure in custom tag 'get'
at jsp_servlet._templates._basic._jspService(_basic.java:196)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 

RootCause() is

javax.servlet.jsp.JspException
at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
at jsp_servlet._templates._basic._jspService(_basic.java:18)
 .

The Offending line in basic.jsp is the insertion of the "login.jsp" page
with our custom taglib which has thrown an exception. Yet JspException
doesn't define a getRootCause() call, so our tablib exception (usually a
runtime one) is completely masked from our QA team via the GUI. The
server logging we have in place clearly shows the Exception (in this
case a SQL connection problem), but we can't get that information up to
our exception page..

Is there a solution to this problem? I've heard that future JSP specs
allow for nested/hierachical Exceptions in JspException. Until then,
does anyone have suggestions or current practices of how you handle
expections that are masked by other taglibs?


-tak







Problem in template tag

2001-07-16 Thread Boompally, Jayapal

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



RE: struts-template tag library vs.

2001-03-19 Thread Troy Hart

The template custom actions (including "insert", "put", and "get") are
absolutely distinct from the JSP "include" action. I would recommend that
you review the code for the struts-template web application that comes with
struts1.0 beta 1. In a nutshell, the template allows you to define a single
template page that lays out a set of components by referencing the
components by name.

Let's say the following is the contents of a file called
"/somePageLayoutSetup.jsp":
---
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>






---

Now then, here is the template, "/myTemplate.jsp":
---
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>










I can also put any static stuff that I desire directly on this layout
template...

---

This is obviously a simple example but it illustrates the point. Namely, you
have a page that references a layout template and "put"s named components
into a context such that the referenced template can "get" at them.
Obviously, the power here is that for any given page on your site you only
need to know what the components of the layout are, not how they are laid
out. When you want to change the way they are laid out you only need to
change the layout JSP (assuming components don't change). The mechanism that
is used by the  action is (as I understand) functionally
equivalent to, if not exactly the same as, that used by the  (when the named element was "put" with "direct='false'", which is
the default).

Like I said initially, a review of the "struts-template" 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. 



Thank you for your reply, but this didn't really answer my question.  Let me
rephrase.  I am talking about , which is a dynamic templating
mechanism, as opposed to <%@ include %>, which is static.  As I understand
it:

 and  are both dynamic templating
mechanisms
-- they are re-evaluated at runtime whenever referenced.  They allow you to
create a template with placeholders for dynamic values which you will supply
at
runtime.  This is where they are similar.  What I'm interested in hearing is
how they differ.

I assume that struts-template offers some improvement over jsp:include,
otherwise it serves no purpose.  So my question is, what does
struts-template
offer as an improvement over jsp:include?  The answer may be as simple as
"it
provides a consistent and readable syntax", or it may be more substantial.

Thank you,

Jim Newsham


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/blueprints/sample_application/view/index.html
>
> HTH,
>
> Robert
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Jim Newsham
> > Sent: Friday, March 16, 2001 9:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts-template tag library vs. 
> >
> >
> >
> > 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
> >
> >
> >
> >
> >




RE: struts-template tag library vs.

2001-03-19 Thread Troy Hart

the biggest thing for me is that you limit the potential layout bugs, and
you make it possible to change the layout, site wide, with the editing of a
single file. The alternative (just using ) forces you to
replicate the layout framework (typically this includes a set of nested
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. 



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






Re: struts-template tag library vs.

2001-03-19 Thread Jim Newsham


Thank you for your reply, but this didn't really answer my question.  Let me
rephrase.  I am talking about , which is a dynamic templating
mechanism, as opposed to <%@ include %>, which is static.  As I understand it:

 and  are both dynamic templating mechanisms
-- they are re-evaluated at runtime whenever referenced.  They allow you to
create a template with placeholders for dynamic values which you will supply at
runtime.  This is where they are similar.  What I'm interested in hearing is
how they differ.

I assume that struts-template offers some improvement over jsp:include,
otherwise it serves no purpose.  So my question is, what does struts-template
offer as an improvement over jsp:include?  The answer may be as simple as "it
provides a consistent and readable syntax", or it may be more substantial.

Thank you,

Jim Newsham


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/blueprints/sample_application/view/index.html
>
> HTH,
>
> Robert
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Jim Newsham
> > Sent: Friday, March 16, 2001 9:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts-template tag library vs. 
> >
> >
> >
> > 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
> >
> >
> >
> >
> >




RE: struts-template tag library vs.

2001-03-17 Thread Robert Taylor

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/blueprints/sample_application/view/index.html

HTH,

Robert

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jim Newsham
> Sent: Friday, March 16, 2001 9:20 PM
> To: [EMAIL PROTECTED]
> Subject: struts-template tag library vs. 
>
>
>
> 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
>
>
>
>
>




struts-template tag library vs.

2001-03-16 Thread Jim Newsham


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






Re: new template tag framework

2001-02-07 Thread Cedric dumoulin


  Sorry for this late answer, I was far away from a computer for near three weeks
(somewhere in the tropics ...).

  Sure, I do not object to integrate part or whole of Components proposal, and I am
open to any discussion to improve it.

 I have designed Components to be able to build pages by assembling "independent"
and "reusable" pieces of jsp code. Later I have unified Components syntax with
David's Template in order to not provide another tool, and because David’s Template
has already been adopted. Now, components can be seen as an extended template
proposal. It is an additional taglib that you can use if you need provided features.

  It uses some Struts utilities, but doesn't rely on Struts. The provided servlet
extends the Struts one, in order to be able to "catch" include calls from Struts,
and reroute them if needed. Provided servlet could be simplified if Struts servlet
provide such a hook. May be one day ... It is the only intrusion in Struts.

  Cedric


David Geary wrote:

> I think this is a good idea. In a couple of weeks, I'll have some time to
> integrate it, unless someone objects.
>
> david
>
> "Craig R. McClanahan" wrote:
>
> > "Deadman, Hal" wrote:
> >
> > > I just tried out this Components extension to Struts and I like how it
> > > allows you centralize the template component definitions in an xml file and
> > > that it allows you to extend a template component and just override the
> > > parts that are different. Are there any plans for adopting this as part of
> > > Struts? It appears the authors would like it to be part of struts. Has it
> > > been voted down or is it being put off until after the 1.0 release?
> > >
> >
> > 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.
> >
> > >
> > > 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
> > >
> > > 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 requires 2 jsp/html files.  (One jsp to use the template
> > > > jsp and another html/jsp file to hold the content - options.jsp
> > > > and options.html for example).
> > > >
> > > > It would be nice if there were a way to have variable content
> > > > inside the C-Frame without having to create 2 new pages
> > > > for each new page.
> > > >
> > > > Does anyone know of an easy way to do this?
> > > >
> > > > Thanks,
> > > > Quoc Le




Re: new template tag framework

2001-01-29 Thread Nathan Eric Probst

I certainly do NOT object.  I've been using Cedric's Components for several weeks
now and am hooked!  I find that they greatly extend the utility and "admin-ability"
of the Struts Framework.

I would also like to offer my assistance in integrating Components into Struts.  I
am a junior Java programmer working as a Java/Web Consultant.  I have not
contributed to an Open Source project before.  I would like to help, but under the
direction of a more experienced hand.  David, when you begin work on the
integration, please let me know where and how I can help you.

nathan

David Geary wrote:

> I think this is a good idea. In a couple of weeks, I'll have some time to
> integrate it, unless someone objects.
>
> david
>
> "Craig R. McClanahan" wrote:
>
> > "Deadman, Hal" wrote:
> >
> > > I just tried out this Components extension to Struts and I like how it
> > > allows you centralize the template component definitions in an xml file and
> > > that it allows you to extend a template component and just override the
> > > parts that are different. Are there any plans for adopting this as part of
> > > Struts? It appears the authors would like it to be part of struts. Has it
> > > been voted down or is it being put off until after the 1.0 release?
> > >
> >
> > 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.
> >
> > >
> > > 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
> > >
> > > 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 requires 2 jsp/html files.  (One jsp to use the template
> > > > jsp and another html/jsp file to hold the content - options.jsp
> > > > and options.html for example).
> > > >
> > > > It would be nice if there were a way to have variable content
> > > > inside the C-Frame without having to create 2 new pages
> > > > for each new page.
> > > >
> > > > Does anyone know of an easy way to do this?
> > > >
> > > > Thanks,
> > > > Quoc Le




Re: new template tag framework

2001-01-25 Thread David Geary

I think this is a good idea. In a couple of weeks, I'll have some time to
integrate it, unless someone objects.


david

"Craig R. McClanahan" wrote:

> "Deadman, Hal" wrote:
>
> > I just tried out this Components extension to Struts and I like how it
> > allows you centralize the template component definitions in an xml file and
> > that it allows you to extend a template component and just override the
> > parts that are different. Are there any plans for adopting this as part of
> > Struts? It appears the authors would like it to be part of struts. Has it
> > been voted down or is it being put off until after the 1.0 release?
> >
>
> 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.
>
> >
> > 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
> >
> > 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 requires 2 jsp/html files.  (One jsp to use the template
> > > jsp and another html/jsp file to hold the content - options.jsp
> > > and options.html for example).
> > >
> > > It would be nice if there were a way to have variable content
> > > inside the C-Frame without having to create 2 new pages
> > > for each new page.
> > >
> > > Does anyone know of an easy way to do this?
> > >
> > > Thanks,
> > > Quoc Le




Re: new template tag framework

2001-01-25 Thread Wong Kok Wai

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 certainly open
> to cool additions, and will be looking at this one
> closely.
> 
> 
> Craig
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/



RE: new template tag framework

2001-01-25 Thread Deadman, Hal

Doesn't this Components extension leverage the struts framework? It
basically just extends the struts ActionServlet. It then provides a
component tag library that is backwardly compatible with struts template
tags. I just modified a few files in my rather small web application to use
the components tld instead of struts-template.tld and it seemed to work fine
with the latest Struts build. Going back to the current template library
would be fairly easy but I would lose central administration of the
component/page definitions.

Hal

-Original Message-
From: Ted Husted [mailto:[EMAIL 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.

The coolest addition would be one that actually leveraged the Struts
framework, the way some of the custom tags do.

The current template library is generic, and any other could be easily
used in its place. (Which is the beauty Struts. It is firmly based on
standards, so it is easy to plug-in whatever other standard library you
may need to use!)


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/



Re: new template tag framework

2001-01-25 Thread Ted Husted

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 custom tags do. 

The current template library is generic, and any other could be easily
used in its place. (Which is the beauty Struts. It is firmly based on
standards, so it is easy to plug-in whatever other standard library you
may need to use!)


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/





Re: new template tag framework

2001-01-25 Thread Craig R. McClanahan

"Deadman, Hal" wrote:

> I just tried out this Components extension to Struts and I like how it
> allows you centralize the template component definitions in an xml file and
> that it allows you to extend a template component and just override the
> parts that are different. Are there any plans for adopting this as part of
> Struts? It appears the authors would like it to be part of struts. Has it
> been voted down or is it being put off until after the 1.0 release?
>

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.

>
> 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
>
> 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 requires 2 jsp/html files.  (One jsp to use the template
> > jsp and another html/jsp file to hold the content - options.jsp
> > and options.html for example).
> >
> > It would be nice if there were a way to have variable content
> > inside the C-Frame without having to create 2 new pages
> > for each new page.
> >
> > Does anyone know of an easy way to do this?
> >
> > Thanks,
> > Quoc Le




RE: new template tag framework

2001-01-25 Thread Deadman, Hal

I just tried out this Components extension to Struts and I like how it
allows you centralize the template component definitions in an xml file and
that it allows you to extend a template component and just override the
parts that are different. Are there any plans for adopting this as part of
Struts? It appears the authors would like it to be part of struts. Has it
been voted down or is it being put off until after the 1.0 release?

Hal

-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


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 requires 2 jsp/html files.  (One jsp to use the template
> jsp and another html/jsp file to hold the content - options.jsp
> and options.html for example).
>
> It would be nice if there were a way to have variable content
> inside the C-Frame without having to create 2 new pages
> for each new page.
>
> Does anyone know of an easy way to do this?
>
> Thanks,
> Quoc Le



Re: new template tag framework

2001-01-24 Thread Nathan Eric Probst

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 requires 2 jsp/html files.  (One jsp to use the template
> jsp and another html/jsp file to hold the content - options.jsp
> and options.html for example).
>
> It would be nice if there were a way to have variable content
> inside the C-Frame without having to create 2 new pages
> for each new page.
>
> Does anyone know of an easy way to do this?
>
> Thanks,
> Quoc Le




new template tag framework

2001-01-24 Thread Quoc Le


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 requires 2 jsp/html files.  (One jsp to use the template
jsp and another html/jsp file to hold the content - options.jsp
and options.html for example).

It would be nice if there were a way to have variable content 
inside the C-Frame without having to create 2 new pages
for each new page.

Does anyone know of an easy way to do this?

Thanks,
Quoc Le




Re: How can I use a java variable that was defined in the enclosing template tag?

2000-12-21 Thread Hay Tran

Thanks Cedric for your help.

Does template:put can actually put an object other than String?
That is:
<% AClass aObject = new AClass(); %>
...

...

And, then, how are we going to get the boject back?

I guess that's where your proposal 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 the moment.

Again, many thanks for your help.

-Hay


- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 6:13 AM
Subject: Re: How can I use a java variable that was defined in the enclosing
template tag?


>
>   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 application).
> >   An alternative to your problem could also be :
> >   <%String strToBeUsedByPageA = "Hello";%>  > template='aTemplate.jsp'> > value='<%=strToBeUsedByPageA%>' direct="true" >
> >
> >   and use 
> >
> >   You can also have a look to my "extended template proposal" at
> > http=//gauss.ficsgrp.com/cdm. You will find more solutions to pass
> > values to
> >   an included template.
> >
> >  Cedric
> >
> >   As an example, another solution to your problem is (with extended
> > templates) :
> > <%String strToBeUsedByPageA = "Hello";%>  > template='aTemplate.jsp'> > value='<%=strToBeUsedByPageA%>' >
> >
> >   and use
> > 
> >
> >   value = <%="strToBeUsedByPageA" />
> >
> > Hay Tran wrote:
> >
> > > Here is an example:// Here is the code segment for the enclosing tag,
> > > the template:insert <%String strToBeUsedByPageA =
> > > "Hello";%>  > > name='PageA.jsp'>  // Here is the code segment for
> > > the enclosed file, PageAThe enclosing tag defined the
> > > strToBeUsedByPageA variable that is being displayed
> > > here:<%=strToBeUsedByPageA %>...  // I get the error msg saying
> > > strToBeUsedByPageA  is not define. Thanks for any help I can
> > > get. -Hay
>
>




Re: How can I use a java variable that was defined in the enclosing template tag?

2000-12-21 Thread Cedric Dumoulin


  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 application).
>   An alternative to your problem could also be :
>   <%String strToBeUsedByPageA = "Hello";%>  template='aTemplate.jsp'> value='<%=strToBeUsedByPageA%>' direct="true" >
>
>   and use 
>
>   You can also have a look to my "extended template proposal" at
> http=//gauss.ficsgrp.com/cdm. You will find more solutions to pass
> values to
>   an included template.
>
>  Cedric
>
>   As an example, another solution to your problem is (with extended
> templates) :
> <%String strToBeUsedByPageA = "Hello";%>  template='aTemplate.jsp'> value='<%=strToBeUsedByPageA%>' >
>
>   and use
> 
>
>   value = <%="strToBeUsedByPageA" />
>
> Hay Tran wrote:
>
> > Here is an example:// Here is the code segment for the enclosing tag,
> > the template:insert <%String strToBeUsedByPageA =
> > "Hello";%>  > name='PageA.jsp'>  // Here is the code segment for
> > the enclosed file, PageAThe enclosing tag defined the
> > strToBeUsedByPageA variable that is being displayed
> > here:<%=strToBeUsedByPageA %>...  // I get the error msg saying
> > strToBeUsedByPageA  is not define. Thanks for any help I can
> > get. -Hay




Re: How can I use a java variable that was defined in the enclosing template tag?

2000-12-21 Thread Cedric Dumoulin

  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";%> 

  and use 

  You can also have a look to my "extended template proposal" at
http=//gauss.ficsgrp.com/cdm. You will find more solutions to pass
values to
  an included template.


 Cedric

  As an example, another solution to your problem is (with extended
templates) :
<%String strToBeUsedByPageA = "Hello";%> 

  and use


  value = <%="strToBeUsedByPageA" />


Hay Tran wrote:

> Here is an example:// Here is the code segment for the enclosing tag,
> the template:insert <%String strToBeUsedByPageA =
> "Hello";%>  name='PageA.jsp'>  // Here is the code segment for
> the enclosed file, PageAThe enclosing tag defined the
> strToBeUsedByPageA variable that is being displayed
> here:<%=strToBeUsedByPageA %>...  // I get the error msg saying
> strToBeUsedByPageA  is not define. Thanks for any help I can
> get. -Hay




How can I use a java variable that was defined in the enclosing template tag?

2000-12-20 Thread Hay Tran



Here is an example:
// Here is the code segment for the enclosing tag, 
the template:insert ...
.
<%
    String strToBeUsedByPageA = 
"Hello";
%>
 

    

 
 
// Here is the code segment for the enclosed file, 
PageA

The enclosing tag defined the strToBeUsedByPageA 
variable that is being displayed here:<%=strToBeUsedByPageA 
%>
...
 
 
// I get the error msg saying 
strToBeUsedByPageA  is not define.
 
Thanks for any help I can get.
 
-Hay