RE: JSP Include Vs. Struts Template Include

2004-02-10 Thread Andrew Hill
Not sure, but if you after a really good templating mechanism forget those
two and take a look at the struts Tiles extension.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 10 February 2004 17:04
To: [EMAIL PROTECTED]
Subject: JSP Include Vs. Struts Template Include


Hi guys,

Can anyone help me understand the diff. between the JSP include (say
including 2
to 3 .jsp pages in the main jsp) and Struts Template include tags.

My main doubt is  Why Struts template include tag is preferred over its
counterpart?

Confused with the pros. and cons. of both the approach.

Awaiting your powerful replies.

Friendly,
S.Srikanth



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



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



JSP Include Vs. Struts Template Include

2004-02-10 Thread ssrinivasrao
Hi guys,

Can anyone help me understand the diff. between the JSP include (say including 2
to 3 .jsp pages in the main jsp) and Struts Template include tags.

My main doubt is  Why Struts template include tag is preferred over its
counterpart?

Confused with the pros. and cons. of both the approach.

Awaiting your powerful replies.

Friendly,
S.Srikanth



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



Re: [Q] struts-template - I centralized the layout file, but am Imissing something?

2003-03-15 Thread James CE Johnson
Hi Jeff,

I generally use Tiles to handle these kinds of things.

In your struts-config.xml install the Tiles plugin:
   
   
   
   
In your tiles-definitions.xml define your layout and other tiles:
  


 
   
   
   
   
   
 
 
 
  
 
 



Back in struts-config your actions forward to tiles instead of jsps:

 
   
 
   
 
Finally, your layout.jsp
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>

 
   
   
   
   
 

Hope that helps a bit,
J
Jeff Smith wrote:

I have 3 different pages in my test app:
Greet Unauthenticated User, Login and Greet Authenticated User
There is a PageUnauthGreet.jsp, PageAuthGreet.jsp and PageLoginUser.jsp.
Each has an identical structure:
<%@ taglib uri='/tags/struts-template' prefix='template' %>






The only difference between the 3 files is the FOO.jsp which loads the
content tile specific for that particular page.
Each one loads a different tile: TileUnauth.jsp, TileAuth.jsp and
FormLogon.jsp
This structure works fine. But it started to bug me that whenever I create a
new page, I had to create the structure.jsp and then the tile.jsp
So then I implemented a MasterLayout.jsp page like this:

<%@ taglib uri='/tags/struts-template' prefix='template' %>
<%@ taglib uri='/tags/struts-bean' prefix='bean' %>








Now I've been able to get rid of all my structure.jsp files and replace it
with this single MasterLayout.jsp
I can invoke it from the struts-config.xml with an action reference like
this:

So essentially, I can now display any page that follows the standard
structure by writing a single tile for the "content" section of the page and
then invoking the MasterLayout with a tilePage= parameter to indicate which
tile should be thrown into the content section.
I have two questions:

1) Am I overlooking something that is likely to bite me?

2) Is there a more elegant way to control the filler tile?

In particular, I'm not crazy about the resulting URL line displayed in the
browser location. When I forwarded to the logon success page, I had a nice
url that just said:
http://localhost/MyAppName/LogonSubmit.do
But now that I am redirecting (instead of forwarding - to break the
back-button stomping issue) it shows a much icky-er
http://localhost:/MyAppName/MasterLayout.jsp?tilePage=/TileWelcome.jsp
I can live with it the way it is, but I want to be sure I'm exploiting all
the power there is to be had from the templates and tiles system, the action
forwarding syntax and all of that stuff.
Thanks,
Jefficus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: [Q] struts-template - I centralized the layout file, but am I missing something?

2003-03-15 Thread Dan Allen

Jeff Smith ([EMAIL PROTECTED]) wrote:

> I have 3 different pages in my test app:
> Greet Unauthenticated User, Login and Greet Authenticated User
> 
> There is a PageUnauthGreet.jsp, PageAuthGreet.jsp and PageLoginUser.jsp.
> Each has an identical structure:
> 
> <%@ taglib uri='/tags/struts-template' prefix='template' %>
> 
>  
>  
>  
>  
> 
> 
> The only difference between the 3 files is the FOO.jsp which loads the
> content tile specific for that particular page.
> Each one loads a different tile: TileUnauth.jsp, TileAuth.jsp and
> FormLogon.jsp
> 
> This structure works fine. But it started to bug me that whenever I create a
> new page, I had to create the structure.jsp and then the tile.jsp
> 
> So then I implemented a MasterLayout.jsp page like this:
> 
> <%@ taglib uri='/tags/struts-template' prefix='template' %>
> <%@ taglib uri='/tags/struts-bean' prefix='bean' %>
> 
> 
> 
>  
>  
>  
>  
> 
> 
> Now I've been able to get rid of all my structure.jsp files and replace it
> with this single MasterLayout.jsp
> 
> I can invoke it from the struts-config.xml with an action reference like
> this:
> 
>type="org.apache.struts.actions.ForwardAction"
>  parameter="/MasterLayout.jsp?tilePage=FormLogon.jsp"/>
> 
> So essentially, I can now display any page that follows the standard
> structure by writing a single tile for the "content" section of the page and
> then invoking the MasterLayout with a tilePage= parameter to indicate which
> tile should be thrown into the content section.
> 
> I have two questions:
> 
> 1) Am I overlooking something that is likely to bite me?
> 
> 2) Is there a more elegant way to control the filler tile?
> 
> In particular, I'm not crazy about the resulting URL line displayed in the
> browser location. When I forwarded to the logon success page, I had a nice
> url that just said:
> http://localhost/MyAppName/LogonSubmit.do
> 
> But now that I am redirecting (instead of forwarding - to break the
> back-button stomping issue) it shows a much icky-er
> http://localhost:/MyAppName/MasterLayout.jsp?tilePage=/TileWelcome.jsp
> 
> I can live with it the way it is, but I want to be sure I'm exploiting all
> the power there is to be had from the templates and tiles system, the action
> forwarding syntax and all of that stuff.

You are on the verge of using tiles, go for it.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"While they're pumping, you're soaking them" 
 -- Speed Loader TV Advert
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



[Q] struts-template - I centralized the layout file, but am I missing something?

2003-03-15 Thread Jeff Smith
I have 3 different pages in my test app:
Greet Unauthenticated User, Login and Greet Authenticated User

There is a PageUnauthGreet.jsp, PageAuthGreet.jsp and PageLoginUser.jsp.
Each has an identical structure:

<%@ taglib uri='/tags/struts-template' prefix='template' %>

 
 
 
 


The only difference between the 3 files is the FOO.jsp which loads the
content tile specific for that particular page.
Each one loads a different tile: TileUnauth.jsp, TileAuth.jsp and
FormLogon.jsp

This structure works fine. But it started to bug me that whenever I create a
new page, I had to create the structure.jsp and then the tile.jsp

So then I implemented a MasterLayout.jsp page like this:

<%@ taglib uri='/tags/struts-template' prefix='template' %>
<%@ taglib uri='/tags/struts-bean' prefix='bean' %>



 
 
 
 


Now I've been able to get rid of all my structure.jsp files and replace it
with this single MasterLayout.jsp

I can invoke it from the struts-config.xml with an action reference like
this:

 

So essentially, I can now display any page that follows the standard
structure by writing a single tile for the "content" section of the page and
then invoking the MasterLayout with a tilePage= parameter to indicate which
tile should be thrown into the content section.

I have two questions:

1) Am I overlooking something that is likely to bite me?

2) Is there a more elegant way to control the filler tile?

In particular, I'm not crazy about the resulting URL line displayed in the
browser location. When I forwarded to the logon success page, I had a nice
url that just said:
http://localhost/MyAppName/LogonSubmit.do

But now that I am redirecting (instead of forwarding - to break the
back-button stomping issue) it shows a much icky-er
http://localhost:/MyAppName/MasterLayout.jsp?tilePage=/TileWelcome.jsp

I can live with it the way it is, but I want to be sure I'm exploiting all
the power there is to be had from the templates and tiles system, the action
forwarding syntax and all of that stuff.

Thanks,
Jefficus


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



Re: Problem with Struts Template and proxy caching

2002-12-17 Thread Cedric Dumoulin

 Hi,

 I think that once the response is committed, you can't change the 
response's header (check the spec).
 So, if you set the header after the template is inserted, the change 
has no effect because the insert commit the response.

  Cedric

dumps wrote:

Hi everyone,

we are facing a problem with Struts templates (Struts 1.02) and proxy
caching :

The response headers we are setting in jsp files are not being sent back to
the browser whenever a template:insert tag is used :

...
  



  
...
 

<%
   response.addHeader("Cache-Control","no-cache"); 
   response.addHeader("Pragma","no-cache"); 
   response.setDateHeader ("Expires", 0);
   response.setHeader("Hello", "hello123");
%>


If we remove the template tags, everything's ok with the headers... (we are
checking the http headers using a local proxy server). We also tried to set
nocache to
'true' in web.xml and/or add the response headers inside the Template.jsp
file,
but neither solved the problem. That's why we assume the templating
mechanism is messing with the headers.


Thanks for your time,
Christof

 



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




Problem with Struts Template and proxy caching

2002-12-17 Thread dumps
Hi everyone,

we are facing a problem with Struts templates (Struts 1.02) and proxy
caching :

The response headers we are setting in jsp files are not being sent back to
the browser whenever a template:insert tag is used :

...
   
 
 
 
   
...
  

 <%
response.addHeader("Cache-Control","no-cache"); 
response.addHeader("Pragma","no-cache"); 
response.setDateHeader ("Expires", 0);
response.setHeader("Hello", "hello123");
 %>


If we remove the template tags, everything's ok with the headers... (we are
checking the http headers using a local proxy server). We also tried to set
nocache to
'true' in web.xml and/or add the response headers inside the Template.jsp
file,
but neither solved the problem. That's why we assume the templating
mechanism is messing with the headers.


Thanks for your time,
Christof

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!


--
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: 




Pros and Cons of Hard coding a JSP page in a Struts template vs using a parameter?

2002-10-18 Thread Smith, Johnathan M.
I would like to know the pros and cons of hard coding a JSP page in a struts
template.

Which struts template is better on speed and memory?

EXAMPLE1
<%@ page language="java" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="javax.servlet.jsp.*" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/cdd.tld" prefix="cdd"  %>






EXAMPLE2:
<%@ page language="java" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="javax.servlet.jsp.*" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/cdd.tld" prefix="cdd"  %>



"/>


I would think that example number 1 is better and faster??  From looking at
the source code example 1 is bigger do to a include inline?


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




Re: Pros and Cons of Hard coding a JSP page in a Struts template vs using aparameter?

2002-10-18 Thread David Graham
You won't notice any difference in speed or memory between the two.  Looks 
like the second one is more flexible though.  Why are you importing 
javax.servlet and javax.servlet.jsp?

David






From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Pros and Cons of Hard coding a JSP page in a Struts template vs 
using a parameter?
Date: Thu, 17 Oct 2002 08:26:42 -0400

I would like to know the pros and cons of hard coding a JSP page in a 
struts
template.

Which struts template is better on speed and memory?

EXAMPLE1
<%@ page language="java" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="javax.servlet.jsp.*" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/cdd.tld" prefix="cdd"  %>






EXAMPLE2:
<%@ page language="java" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="javax.servlet.jsp.*" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/cdd.tld" prefix="cdd"  %>



"/>


I would think that example number 1 is better and faster??  From looking at
the source code example 1 is bigger do to a include inline?


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


_
Broadband? Dial-up? Get reliable MSN Internet Access. 
http://resourcecenter.msn.com/access/plans/default.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: anyone using struts template ??

2002-10-16 Thread David Graham

Not that I know of.

David






>From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'David Graham'" <[EMAIL PROTECTED]>, 
>[EMAIL PROTECTED]
>Subject: RE: anyone using struts template ??
>Date: Wed, 16 Oct 2002 17:32:15 -0400
>
>Is template going to be removed?
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 16, 2002 3:37 PM
>To: [EMAIL PROTECTED]
>Subject: Re: anyone using struts template ??
>
>
>You'd probably be better off using tiles as it's the more popular/developed
>feature.  I haven't seen too much interest in template since tiles was 
>added
>
>to 1.1.
>
>David
>
>
>
>
>
>
> >From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: anyone using struts template ??
> >Date: Wed, 16 Oct 2002 15:29:55 -0400
> >
> >Please email me I have a number of questions and I am looking for a good
> >sample
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
>
>
>_
>Get a speedy connection with MSN Broadband.  Join now!
>http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


_
Surf the Web without missing calls! Get MSN Broadband. 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


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




RE: anyone using struts template ??

2002-10-16 Thread Smith, Johnathan M.

Is template going to be removed?

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: anyone using struts template ??


You'd probably be better off using tiles as it's the more popular/developed 
feature.  I haven't seen too much interest in template since tiles was added

to 1.1.

David






>From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: anyone using struts template ??
>Date: Wed, 16 Oct 2002 15:29:55 -0400
>
>Please email me I have a number of questions and I am looking for a good
>sample
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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


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




Re: anyone using struts template ??

2002-10-16 Thread David Graham

You'd probably be better off using tiles as it's the more popular/developed 
feature.  I haven't seen too much interest in template since tiles was added 
to 1.1.

David






>From: "Smith, Johnathan M." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: anyone using struts template ??
>Date: Wed, 16 Oct 2002 15:29:55 -0400
>
>Please email me I have a number of questions and I am looking for a good
>sample
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


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


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




anyone using struts template ??

2002-10-16 Thread Smith, Johnathan M.

Please email me I have a number of questions and I am looking for a good
sample


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




Re: global forward and Struts template--(error)can't forward responseafter it's commited

2002-09-09 Thread Cedric Dumoulin


Hello Keven,

The error message you got says exactly what is wrong: you can't do a
forward once the response is committed.

Checking your code, it appears that you do a forward in a page inserted
by the template. This is not possible due to jsp specification.
Templates use "include" to do the insert. A side effect is that the
output stream is flushed, and response committed. So, once you have done
an include, you can't do a forward ...

Cedric

Keven wrote:

>Hi, all:
>
>I appreciate any/all helps from you.
>
>The senario:
>There is a "JoinUs" link on the top menu of a page. When I click on the link, I want 
>the registration form displayed in the body area.
>
>The Problem:
>When I click on "JoinUs" link, I got nothing on the body area. on the log, I got the 
>error message saying:" can't forward response after it is commited."
>
>My Related Jsps:
>-
>...
>joinUs(this link is on the top menu)
>-
>
>join.jsp
>-
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
>
>  
>  
>   
> 
>   
>
>
>joinUs_body.jsp
>--
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
>  
>
>---
>Struts-config.xml
>--
>
>  
>
>
> type="com.ces.p2pbet.client.registration.EditRegistrationAction"
>name="registrationForm"
>scope="request"
>validate="false">
>  
>  
>
>--
>It complains that the response has commited when it excute "name="joinus"/> " in the joinUs_body.jsp.
>
>I tried but I can't figure out what is wrong here. I appreciate your help.
>Thank you very much
>
>Regards,
>Keven
>
>
>
>
>
>
>
>
>  
>



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




Re: global forward and Struts template--(error)can't forward responseafter it's commited

2002-09-09 Thread Cedric Dumoulin


Hello Keven,

The error message you got says exactly what is wrong: you can't do a
forward once the response is committed.

Checking your code, it appears that you do a forward in a page inserted
by the template. This is not possible due to jsp specification.
Templates use "include" to do the insert. A side effect is that the
output stream is flushed, and response committed. So, once you have done
an include, you can't do a forward ...

Cedric

Keven wrote:

>Hi, all:
>
>I appreciate any/all helps from you.
>
>The senario:
>There is a "JoinUs" link on the top menu of a page. When I click on the
link, I want the registration form displayed in the body area.
>
>The Problem:
>When I click on "JoinUs" link, I got nothing on the body area. on the
log, I got the error message saying:" can't forward response after it is
commited."
>
>My Related Jsps:
>-
>...
>joinUs(this link is on the top menu)
>-
>
>join.jsp
>-
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
>
>
>  
>  
>
> 
>
>
>joinUs_body.jsp
>--
><%@ page language="java" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> 
>
>---
>Struts-config.xml
>--
>
>  
>
>
> 
type="com.ces.p2pbet.client.registration.EditRegistrationAction"
>name="registrationForm"
>scope="request"
>validate="false">
>  
>  
>
>--
>It complains that the response has commited when it excute
" " in the joinUs_body.jsp.
>
>I tried but I can't figure out what is wrong here. I appreciate your help.
>Thank you very much
>
>Regards,
>Keven
>
>
>
>
>
>
>
>
>
>




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




Re: global forward and Struts template--(error)can't forward response after it's commited

2002-09-07 Thread Keven

Please help me on the following issue.
Thank you very much.

Keven
- Original Message -
From: "Keven" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 10:55 PM
Subject: global forward and Struts template--(error)can't forward response
after it's commited


Hi, all:

I appreciate any/all helps from you.

The senario:
There is a "JoinUs" link on the top menu of a page. When I click on the
link, I want the registration form displayed in the body area.

The Problem:
When I click on "JoinUs" link, I got nothing on the body area. on the log, I
got the error message saying:" can't forward response after it is commited."

My Related Jsps:

-
...
joinUs(this link is on the top menu)

-

join.jsp
-
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>



  
  

 



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

 


---
Struts-config.xml
--

  


 
  
  


--
It complains that the response has commited when it excute " " in the joinUs_body.jsp.

I tried but I can't figure out what is wrong here. I appreciate your help.
Thank you very much

Regards,
Keven









__ 
Post your ad for free now! http://personals.yahoo.ca

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




global forward and Struts template--(error)can't forward response after it's commited

2002-09-06 Thread Keven

Hi, all:

I appreciate any/all helps from you.

The senario:
There is a "JoinUs" link on the top menu of a page. When I click on the link, I want 
the registration form displayed in the body area.

The Problem:
When I click on "JoinUs" link, I got nothing on the body area. on the log, I got the 
error message saying:" can't forward response after it is commited."

My Related Jsps:
-
...
joinUs(this link is on the top menu)
-

join.jsp
-
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>


  
  
   
 
   


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

  

---
Struts-config.xml
--

  


 
  
  

--
It complains that the response has commited when it excute " " in the joinUs_body.jsp.

I tried but I can't figure out what is wrong here. I appreciate your help.
Thank you very much

Regards,
Keven










struts template

2002-09-02 Thread Keven

Hi, All:

I would like to implement web pages using struts. the page layout consist of four 
parts: top menu, side bar, main content area, and footer. Depend on the role of users, 
the top menu will change accordingly--some button wii be disappeared, some buttons are 
added. I think this should be achieved by struts template. And for every page, there 
are two jsps, one is template jsp, and one is the jsp that uses the template jsp. I 
haven't actually implement it yet. Does anyone know the best way to achieve it? Thank 
you for your time and help.

Keven




struts template

2002-09-02 Thread Keven

 
Hi, All:

I would like to implement web pages using struts. the page layout consist of four 
parts: top menu, side bar, main content area, and footer. Depend on the role of users, 
the top menu will change accordingly--some button wii be disappeared, some buttons are 
added. I think this should be achieved by struts template. And for every page, there 
are two jsps, one is template jsp, and one is the jsp that uses the template jsp. I 
haven't actually implement it yet. Does anyone know the best way to achieve it? Thank 
you for your time and help.

Keven



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




Re: struts template opinion

2002-07-25 Thread Eddie Bush

Yes - that's the key:  doing.  You may have to gain some insight on how 
to "plug-in" tiles to your application.  It just occurred to me that 
1.0.2 doesn't (I don't think) have the plug-in architecture.  Therefore 
... I'm not quite sure what you need to do - probably use the servlet 
included in Tiles.  Cedric is probably around somewhere and will be glad 
to clearify.  So far as the rest of the Tiles behavior (in Struts 
1.0.2), I believe it is accurately depicted by what Chuck's chapter has 
to say about it.

You'll get it!  Heck, if I can do this stuff, anyone can ;-)

Regards,

Eddie

Michelle Popovits wrote:

> ok, I guess once I read more, it'll make more sense.
>
> Thanks for your help!
> Michelle 




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




Re: struts template opinion

2002-07-25 Thread Michelle Popovits

ok, I guess once I read more, it'll make more sense.

Thanks for your help!
Michelle


>From: Eddie Bush <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: struts template opinion
>Date: Thu, 25 Jul 2002 17:49:29 -0500
>
>You only need to use the tiles actions if you forward DIRECTLY to a tile 
>though - ie. there is no physical page and you want to forward to it. Look 
>at Chuck's chapter and try it out - and then post here if you have 
>questions ;-)  Playing with it is the _best_ way to learn it.
>
>Good Luck!
>
>Eddie
>
>Eddie Bush wrote:
>
>>You will certainly want to visit that :-)  Chuck does a  pretty good job 
>>of "laying it all out".  One tip:  remember when ti comes to tiles - if 
>>you want to forward to them the action you use must come from 
>>org.apache.struts.tiles.actions.* - not org.apache.struts.actions.*! 
>>Hopefully that will save you the frustration I initially had :-)
>>
>>Regards,
>>
>>Eddie
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: struts template opinion

2002-07-25 Thread Eddie Bush

You only need to use the tiles actions if you forward DIRECTLY to a tile 
though - ie. there is no physical page and you want to forward to it. 
 Look at Chuck's chapter and try it out - and then post here if you have 
questions ;-)  Playing with it is the _best_ way to learn it.

Good Luck!

Eddie

Eddie Bush wrote:

> You will certainly want to visit that :-)  Chuck does a  pretty good 
> job of "laying it all out".  One tip:  remember when ti comes to tiles 
> - if you want to forward to them the action you use must come from 
> org.apache.struts.tiles.actions.* - not org.apache.struts.actions.*! 
> Hopefully that will save you the frustration I initially had :-)
>
> Regards,
>
> Eddie 




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




Re: struts template opinion

2002-07-25 Thread Eddie Bush

You will certainly want to visit that :-)  Chuck does a  pretty good job 
of "laying it all out".  One tip:  remember when ti comes to tiles - if 
you want to forward to them the action you use must come from 
org.apache.struts.tiles.actions.* - not org.apache.struts.actions.*! 
 Hopefully that will save you the frustration I initially had :-)

Regards,

Eddie

Michelle Popovits wrote:

> ok, Thanks for the info.
> Can anyone tell me the best source of information on how to develop 
> with Tiles?  I know there a chapter in the ServerSide struts book, is 
> that considered the best source?
>
> Thanks,
> Michelle 




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




RE: struts template opinion

2002-07-25 Thread Michelle Popovits

ok, Thanks for the info.
Can anyone tell me the best source of information on how to develop with 
Tiles?  I know there a chapter in the ServerSide struts book, is that 
considered the best source?

Thanks,
Michelle


>From: "Bartley, Chris P" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: struts template opinion
>Date: Thu, 25 Jul 2002 17:08:42 -0500
>
>No, Tiles works great with 1.0.2.
>
> > -Original Message-
> > From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 25, 2002 5:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: struts template opinion
> >
> >
> > [snip]
> >
> > I am currently limited to using the Struts 1.0.2 so I think
> > that Tiles is out for the time being.
> >
> > [snip]
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: struts template opinion

2002-07-25 Thread Bartley, Chris P

No, Tiles works great with 1.0.2.

> -Original Message-
> From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: struts template opinion
> 
> 
> [snip]
>
> I am currently limited to using the Struts 1.0.2 so I think 
> that Tiles is out for the time being.
>
> [snip]

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




Re: struts template opinion

2002-07-25 Thread Eddie Bush

I looked at the Struts templating mechanism ages ago but I don't 
remember anything about it now.  I do believe that you can use Tiles 
with 1.0.2.  Search the list.  Cedric just posted a reply to someone 
either today or yesterday on this very topic.

Good Luck!

Eddie

Michelle Popovits wrote:

> What is the difference between Template and Tiles?
>
> I am currently limited to using the Struts 1.0.2 so I think that Tiles 
> is out for the time being.
>
> Is there a migration path from Templates to Tiles?
>
> So i'm looking at jsp includes vs. templates??
>
> Thanks,
> Michelle 




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




RE: struts template opinion

2002-07-25 Thread Michelle Popovits

What is the difference between Template and Tiles?

I am currently limited to using the Struts 1.0.2 so I think that Tiles is 
out for the time being.

Is there a migration path from Templates to Tiles?

So i'm looking at jsp includes vs. templates??

Thanks,
Michelle


>From: "Bartley, Chris P" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: struts template opinion
>Date: Thu, 25 Jul 2002 16:58:27 -0500
>
>Take a look at Tiles:
>
>http://www.lifl.fr/~dumoulin/tiles/
>
>Mmmm mmm good.  Definitely worth the effort (and you'll sing the "Cedric is
>my hero!" song every time your client calls wanting to change a header
>color, menus, page layout style, etc.).  In addition to breaking up your
>pages into reusable components, it also makes presenting different views 
>for
>different roles and/or user-agents (e.g. phone, PC browser, etc) a snap.
>
> > -Original Message-
> > From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 25, 2002 4:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts template opinion
> >
> >
> > Hi,
> >
> > I am considering using Struts templating tag library.
> > Can anyone tell me what you think of it and what it's benefit
> > is over not
> > using it (is it worth the extra effort??).
> >
> > Thanks,
> > Michelle
> >
> >
> >
> > _
> > Join the world's largest e-mail service with MSN Hotmail.
> > http://www.hotmail.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]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: struts template opinion

2002-07-25 Thread Eddie Bush

Extra effort?  How is it extra effort to use a template scheme?  You 
reduce the number of places you have to maintain information down to 
(ideally) just one.  Tiles is even better, by the way.  It takes things 
one step further and lets you seperate your layout definition from it's 
actual presentation.  This is very powerful - not only do you gain the 
ability to inherit definitions (layouts) and only modify what you really 
need to, you also gain the ability to write you definitions in the XML 
config file and do away with any JSP files that were once dedicated just 
to specifying layouts.  It is a bit more "work" (learning - brain-work - 
phew! hard brain work at first too, but it pays off!) initially, but ... 
you have to try it and use it to come to a genuine realization of the 
power it has.  Once you have, you won't want to use anything else!

Regards,

Eddie

Michelle Popovits wrote:

> Hi,
>
> I am considering using Struts templating tag library.
> Can anyone tell me what you think of it and what it's benefit is over 
> not using it (is it worth the extra effort??).
>
> Thanks,
> Michelle 




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




RE: struts template opinion

2002-07-25 Thread Bartley, Chris P

Take a look at Tiles:

   http://www.lifl.fr/~dumoulin/tiles/

Mmmm mmm good.  Definitely worth the effort (and you'll sing the "Cedric is
my hero!" song every time your client calls wanting to change a header
color, menus, page layout style, etc.).  In addition to breaking up your
pages into reusable components, it also makes presenting different views for
different roles and/or user-agents (e.g. phone, PC browser, etc) a snap.

> -Original Message-
> From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 4:51 PM
> To: [EMAIL PROTECTED]
> Subject: struts template opinion
> 
> 
> Hi,
> 
> I am considering using Struts templating tag library.
> Can anyone tell me what you think of it and what it's benefit 
> is over not 
> using it (is it worth the extra effort??).
> 
> Thanks,
> Michelle
> 
> 
> 
> _
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.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]>




Re: struts template opinion

2002-07-25 Thread @Basebeans.com

Subject: Re: struts template opinion
From: "Vic C." <[EMAIL PROTECTED]>
 ===
Use tiles instead.
V.

Michelle Popovits wrote:
> Hi,
> 
> I am considering using Struts templating tag library.
> Can anyone tell me what you think of it and what it's benefit is over 
> not using it (is it worth the extra effort??).
> 
> Thanks,
> Michelle
> 
> 
> 
> _
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.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]>




struts template opinion

2002-07-25 Thread Michelle Popovits

Hi,

I am considering using Struts templating tag library.
Can anyone tell me what you think of it and what it's benefit is over not 
using it (is it worth the extra effort??).

Thanks,
Michelle



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: [Struts / Template] Problems including a "*.do".

2002-03-21 Thread Cedric Dumoulin


  I think that you can't call an action (* .do) from inside a template' insert. This is
because templates do an include(), and then action do a forward(). This result in a
'error : response already committed' because jsp forbids a forward() after an
include().
  Try to use Tiles instead of templates.

Cedric


Sam Chia wrote:

> Hi,
>
>   I am driven crazy using Struts Template and trying to include a path to a
> "*.do" instead of
> "*.jsp". Please help me as I am stuck in this issue for so long. Really
> drives me cuckoo!!
>
> A template file 
> --
> <%@ page contentType="text/html"%>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
> 
> 
> DisplayForm Template
> 
> 
> 
>   
>   
>   
>
> 
> 
> 
> -
>
> The file that calls the template:
> -
> <%@ page contentType="text/html"%>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
> <%@ page buffer="100k" autoFlush="true" %>
>
> 
> Form Display
> 
> 
>   
> 
> 
> 
> -
>
> Error
> ---
> javax.servlet.jsp.JspException: Error in servlet
> at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
> at
> _pages._template._displayformtemplate._jspService(displayformtemplate.jsp:12
> )
> [/pages/template/displayformtemplate.jsp]
> at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
> at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:192)
> at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
> ava:667)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.
> java:108)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.EvermindPageContext.include(EvermindPageContext.java:284)
> at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:145)
> at _pages._displayform._jspService(displayform.jsp:14)
> [SRC:/pages/displayform.jsp]
> at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
> at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:192)
> at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
> at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
> ava:667)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
> patcher.java:269)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
> 704)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
> at com.evermind[Oracle9iAS (2.0.0.0) Containers for
> J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
> 
>
> --
> 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]>




[Struts / Template] Problems including a "*.do".

2002-03-17 Thread Sam Chia

Hi,

  I am driven crazy using Struts Template and trying to include a path to a
"*.do" instead of
"*.jsp". Please help me as I am stuck in this issue for so long. Really
drives me cuckoo!!


A template file 
--
<%@ page contentType="text/html"%>
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>



DisplayForm Template



  
  
  




-

The file that calls the template:
-
<%@ page contentType="text/html"%>
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ page buffer="100k" autoFlush="true" %>


Form Display


  



-

Error
---
javax.servlet.jsp.JspException: Error in servlet
at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
at
_pages._template._displayformtemplate._jspService(displayformtemplate.jsp:12
)
[/pages/template/displayformtemplate.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:192)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:667)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.
java:108)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.EvermindPageContext.include(EvermindPageContext.java:284)
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:145)
at _pages._displayform._jspService(displayform.jsp:14)
[SRC:/pages/displayform.jsp]
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:192)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:356)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:306)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:667)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:269)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
704)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind[Oracle9iAS (2.0.0.0) Containers for
J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)




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




Re: struts template

2002-02-28 Thread @Basebeans.com

Subject: Re: struts template
From: "zb cong" <[EMAIL PROTECTED]>
 ===
another example is built in your struts download-bundle,under
"/webapps/" directory,file name is "struts-template.war".

"Luis M. Rosso" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Hi, Henry !
>
> I think the problem is a confusion on which file is the template.
>
> In the sample, the template should be 'main.jsp', and not 'header.jsp';
the
> latter file is just an element that should be inserted inside the
template.
>
> Hence, I would change the names used for almost all of the files. But, for
> the sake of simplicity, I will keep them in the suggestions given below.
>
> In 'main.jsp', which is the template, I would use:
>
> <%@ taglib uri="/tags/struts-template.tld" prefix="g_template" %>
>
> instead of:
>
> <%@ taglib uri="mytemplate.jsp" prefix="g_template" %>
>
> and would place this directive at the top of the page, among the other
ones.
>
> Then, I would create the following JSP page, which is an 'instance' of the
> template, and will be the page exposed to the users of the application:
>
> <%@ taglib uri="/tags/struts-template.tld" prefix="template"%>
> 
>   
> 
>
> Hope this helps
>
> Cheers
>
> Luis
>
> - Original Message -
> From: "Henry Lu" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, February 18, 2002 10:13 AM
> Subject: RE: struts template
>
>
> > I got the following error:
> > javax.servlet.ServletException: Exception forwarding for name welcome:
> > org.apache.jasper.JasperException: XML parsing error on file
> > /WEB-INF/jsp/reg/mytemplate.jsp: (line 1, col 2): The markup in the
> > document preceding the root element must be well-formed.
> >
> > the main jsp file:
> > <%@ page language="java" %>
> > <%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/tags/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/tags/struts-logic.tld" prefix="logic" %>
> > 
> > 
> > 
> > 
> > 
> > <%@ taglib uri="mytemplate.jsp" prefix="g_template" %>
> > 
> >
> > Hello, STRUTS!
> > 
> > 
> > ---
> > the mytemplate.jsp file:
> >
> > <%@ taglib uri="/template" prefix="template" %>
> > 
> >  
> > 
> > ---
> > header.jsp file
> > 
> > 
> > University of Michigan
> > 
> > 
> >
> >
>
> --
> -
> > Henry Lu
> > MCITphone: (734) 936-2063
> > University of Michigan Medical Center   fax:   (734) 763-4372
> >
> > On Mon, 18 Feb 2002, Arik  Levin ( Tikal ) wrote:
> >
> > > What is the problem shoot.
> > >
> > > -Original Message-
> > > From: Henry Lu [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, February 18, 2002 2:39 PM
> > > To: Struts Users Mailing List
> > > Subject: struts template
> > >
> > > Is there any examples with struts template tag? I have had
difficulties
> to
> > > use it.
> > >
> > > Thanks,
> > >
> > >
> >
>
> --
> -
> > > 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: struts template

2002-02-18 Thread Luis M. Rosso

Hi, Henry !

I think the problem is a confusion on which file is the template.

In the sample, the template should be 'main.jsp', and not 'header.jsp'; the
latter file is just an element that should be inserted inside the template.

Hence, I would change the names used for almost all of the files. But, for
the sake of simplicity, I will keep them in the suggestions given below.

In 'main.jsp', which is the template, I would use:

<%@ taglib uri="/tags/struts-template.tld" prefix="g_template" %>

instead of:

<%@ taglib uri="mytemplate.jsp" prefix="g_template" %>

and would place this directive at the top of the page, among the other ones.

Then, I would create the following JSP page, which is an 'instance' of the
template, and will be the page exposed to the users of the application:

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

  


Hope this helps

Cheers

Luis

- Original Message -
From: "Henry Lu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 10:13 AM
Subject: RE: struts template


> I got the following error:
> javax.servlet.ServletException: Exception forwarding for name welcome:
> org.apache.jasper.JasperException: XML parsing error on file
> /WEB-INF/jsp/reg/mytemplate.jsp: (line 1, col 2): The markup in the
> document preceding the root element must be well-formed.
>
> the main jsp file:
> <%@ page language="java" %>
> <%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/tags/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/tags/struts-logic.tld" prefix="logic" %>
> 
> 
> 
> 
> 
> <%@ taglib uri="mytemplate.jsp" prefix="g_template" %>
> 
>
> Hello, STRUTS!
> 
> 
> ---
> the mytemplate.jsp file:
>
> <%@ taglib uri="/template" prefix="template" %>
> 
>  
> 
> ---
> header.jsp file
> 
> 
> University of Michigan
> 
> 
>
>
> --
-
> Henry Lu
> MCIT    phone: (734) 936-2063
> University of Michigan Medical Center   fax:   (734) 763-4372
>
> On Mon, 18 Feb 2002, Arik  Levin ( Tikal ) wrote:
>
> > What is the problem shoot.
> >
> > -Original Message-
> > From: Henry Lu [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 18, 2002 2:39 PM
> > To: Struts Users Mailing List
> > Subject: struts template
> >
> > Is there any examples with struts template tag? I have had difficulties
to
> > use it.
> >
> > Thanks,
> >
> >
>
> --
-
> > 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: struts template

2002-02-18 Thread Arik Levin ( Tikal )

Here is an example:


This is a xtestTemplate.jsp:

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






  




  
  
   





this is how u use it:

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



make your JSP's and just put them wherever u want them.


-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 18, 2002 3:14 PM
To: Struts Users Mailing List
Subject: RE: struts template

I got the following error:
javax.servlet.ServletException: Exception forwarding for name welcome:
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/jsp/reg/mytemplate.jsp: (line 1, col 2): The markup in the
document preceding the root element must be well-formed.

the main jsp file:
<%@ page language="java" %>
<%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/tags/struts-html.tld" prefix="html" %>
<%@ taglib uri="/tags/struts-logic.tld" prefix="logic" %>





<%@ taglib uri="mytemplate.jsp" prefix="g_template" %>


Hello, STRUTS!


---
the mytemplate.jsp file:

<%@ taglib uri="/template" prefix="template" %>

 

---
header.jsp file


University of Michigan




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

On Mon, 18 Feb 2002, Arik  Levin ( Tikal ) wrote:

> What is the problem shoot.
>
> -Original Message-
> From: Henry Lu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 2:39 PM
> To: Struts Users Mailing List
> Subject: struts template
>
> Is there any examples with struts template tag? I have had difficulties to
> use it.
>
> Thanks,
>
>
>
---
> 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]>



RE: struts template

2002-02-18 Thread Henry Lu

I got the following error:
javax.servlet.ServletException: Exception forwarding for name welcome:
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/jsp/reg/mytemplate.jsp: (line 1, col 2): The markup in the
document preceding the root element must be well-formed.

the main jsp file:
<%@ page language="java" %>
<%@ taglib uri="/tags/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/tags/struts-html.tld" prefix="html" %>
<%@ taglib uri="/tags/struts-logic.tld" prefix="logic" %>





<%@ taglib uri="mytemplate.jsp" prefix="g_template" %>


Hello, STRUTS!


---
the mytemplate.jsp file:

<%@ taglib uri="/template" prefix="template" %>

 

---
header.jsp file


University of Michigan




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

On Mon, 18 Feb 2002, Arik  Levin ( Tikal ) wrote:

> What is the problem shoot.
>
> -Original Message-
> From: Henry Lu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 2:39 PM
> To: Struts Users Mailing List
> Subject: struts template
>
> Is there any examples with struts template tag? I have had difficulties to
> use it.
>
> Thanks,
>
>
> ---
> 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]>




RE: struts template

2002-02-18 Thread Arik Levin ( Tikal )

What is the problem shoot.

-Original Message-
From: Henry Lu [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 18, 2002 2:39 PM
To: Struts Users Mailing List
Subject: struts template

Is there any examples with struts template tag? I have had difficulties to
use it.

Thanks,


---
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]>



struts template

2002-02-18 Thread Henry Lu

Is there any examples with struts template tag? I have had difficulties to
use it.

Thanks,


---
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]>




Re: logic:iterate with Struts template

2002-01-28 Thread Bryan Field-Elliot

Consider double-checking that "productArrayList" is in fact a
session-scope object (or request-scope), and not a page-scope object. If
it's page-scope, then it won't be visible to included pages.



On Mon, 2002-01-28 at 13:43, Brian M. Zhang wrote:

Hi,

I have a jsp page which contains the following logic:iterate:


  


  


productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it as
part of another page using Struts template, the  doesn't
work any more.  The template setting is ok as everything works just fine
when the  part is removed.  Any ideas?

Thanks.

Brian

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






RE: logic:iterate with Struts template

2002-01-28 Thread Simon Thompson

I just had this exact same problem, and it was because I forgot to put
the 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> tag into
the template page.

Simon

-Original Message-
From: Brian M. Zhang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 29 January 2002 9:43 a.m.
To: 'Struts Users Mailing List'
Subject: logic:iterate with Struts template


Hi,

I have a jsp page which contains the following logic:iterate:


  


  


productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it
as
part of another page using Struts template, the 
doesn't
work any more.  The template setting is ok as everything works just fine
when the  part is removed.  Any ideas?

Thanks.

Brian

--
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]>




logic:iterate with Struts template

2002-01-28 Thread Brian M. Zhang

Hi,

I have a jsp page which contains the following logic:iterate:


  


  


productArrayList is a session variable holding an ArrayList object for
com.myCompany.myPackage.Product classs.

This page works just fine when it is by itself.  However, when I use it as
part of another page using Struts template, the  doesn't
work any more.  The template setting is ok as everything works just fine
when the  part is removed.  Any ideas?

Thanks.

Brian

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




Re: Using struts-template as taglib

2002-01-23 Thread Robin Meade

David Geary discusses his Template taglib successor, Regions,
in this JavaWorld article:

http://www.javaworld.com/javaworld/jw-12-2001/jw-1228-jsptemplate_p.html

An alternative approach to layout is to use the
Servlet 2.3 filter mechanism.

The SiteMesh taglib
(http://www.opensymphony.com/sitemesh/decorators.html)
and the Maverick MVC framework
(http://mav.sourceforge.net) use filters for
implementing layout.

Robin Meade

 > Yes, you should be able to use the template taglib outside of Struts, or
 > Tiles.
 >
 > Tiles is in the contrib folder of hte nightly build, and also available
 > here:
 >
 > http://www.lifl.fr/~dumoulin/tiles/
 >
 > As mentioned, Cedric and I are getting ready to propose Tiles to
 > Taglibs. The template taglib should really live there too, but David
 > doesn't come around much anymore :(
 >
 > Cedric, do you think we could join the codebases in some way. People
 > mention the simplicity of the template taglib. Could we propose
 > something to taglibs that carried both packages?
 >
 > I know David has talked about a successor to templates, but that doesn't
 > seem to be materializing. And if it did, he could just join us in
 > Taglibs.
 >
 > -- Ted Husted, Husted dot Com, Fairport NY USA.
 > -- Building Java web applications with Struts.
 > -- Tel +1 585 737-3463.
 > -- Web http://www.husted.com/struts/
 >


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




Re: Using struts-template as taglib

2002-01-20 Thread Ted Husted

Yes, you should be able to use the template taglib outside of Struts, or
Tiles. 

Tiles is in the contrib folder of hte nightly build, and also available
here:

http://www.lifl.fr/~dumoulin/tiles/

As mentioned, Cedric and I are getting ready to propose Tiles to
Taglibs. The template taglib should really live there too, but David
doesn't come around much anymore :(

Cedric, do you think we could join the codebases in some way. People
mention the simplicity of the template taglib. Could we propose
something to taglibs that carried both packages? 

I know David has talked about a successor to templates, but that doesn't
seem to be materializing. And if it did, he could just join us in
Taglibs.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Andras Balogh wrote:
> 
> Hi all,
> 
> I want to ask you about the posibility to using the struts-template
> taglib in a project that is not using struts at all.
> Initally i searched for a template taglib at
> http://jakarta.apache.org/taglibs/
> but i couldn't find any.
> I then thought about using the struts-template taglib.
> So i took struts.jar and removed anything not related to
> struts-template. This is legal to do?
> I wonder if will be available the struts-template as taglib?
> 
> Sorry for being off-topic a little bit ..
> 
> Andras.
> 
> 
> 
> --
> 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: Using struts-template as taglib

2002-01-16 Thread Ryan

Advanced Javaserver Pages is a great book but I have run into problems with
his tags, as they were compiled with Xalan1 ( now deprecated ) I had to hack
some of his source to work with Xalan 2 to use any xslt related
functionality.

just a note


- Original Message -
From: Vaughan Jackson <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 12:53 PM
Subject: RE: Using struts-template as taglib


> Andras,
>
> I believe you can download a jar file containing a
> templates taglib from http://www.phptr.com/advjsp/.
>
> The author of this taglib is David Geary, the same author
> as that of the template tags in Struts. I think this
> version is just an improved version of that in Struts
> (although some of the tag attribute names have been
> changed).
>
> HTH,
> Vaughan.
>
> > -Original Message-
> > From: Andras Balogh [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 15, 2002 8:26 AM
> > To: [EMAIL PROTECTED]
> > Subject: Using struts-template as taglib
> >
> >
> >
> > Hi all,
> >
> > I want to ask you about the posibility to using the struts-template
> > taglib in a project that is not using struts at all.
> > Initally i searched for a template taglib at
> > http://jakarta.apache.org/taglibs/
> > but i couldn't find any.
> > I then thought about using the struts-template taglib.
> > So i took struts.jar and removed anything not related to
> > struts-template. This is legal to do?
> > I wonder if will be available the struts-template as taglib?
> >
> > Sorry for being off-topic a little bit ..
> >
> > Andras.
> >
> >
> >
> >
> >
> > --
> > 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: Using struts-template as taglib

2002-01-15 Thread Cedric Dumoulin


  You can use Tiles, which is compatible with Templates and can be used without
Struts. If you just need template tags, you don't need to use Tile's servlet.

  It is planned to move Tiles to the taglib project.

Cedric

Andras Balogh wrote:

> Hi all,
>
> I want to ask you about the posibility to using the struts-template
> taglib in a project that is not using struts at all.
> Initally i searched for a template taglib at
> http://jakarta.apache.org/taglibs/
> but i couldn't find any.
> I then thought about using the struts-template taglib.
> So i took struts.jar and removed anything not related to
> struts-template. This is legal to do?
> I wonder if will be available the struts-template as taglib?
>
> Sorry for being off-topic a little bit ..
>
> Andras.
>
>
>
> --
> 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: Using struts-template as taglib

2002-01-15 Thread Vaughan Jackson

Andras,

I believe you can download a jar file containing a 
templates taglib from http://www.phptr.com/advjsp/.

The author of this taglib is David Geary, the same author 
as that of the template tags in Struts. I think this
version is just an improved version of that in Struts
(although some of the tag attribute names have been 
changed).

HTH,
Vaughan.

> -Original Message-
> From: Andras Balogh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 8:26 AM
> To: [EMAIL PROTECTED]
> Subject: Using struts-template as taglib
> 
> 
> 
> Hi all,
> 
> I want to ask you about the posibility to using the struts-template
> taglib in a project that is not using struts at all.
> Initally i searched for a template taglib at
> http://jakarta.apache.org/taglibs/
> but i couldn't find any.
> I then thought about using the struts-template taglib.
> So i took struts.jar and removed anything not related to
> struts-template. This is legal to do?
> I wonder if will be available the struts-template as taglib?
> 
> Sorry for being off-topic a little bit ..
> 
> Andras.
> 
>  
> 
> 
> 
> --
> 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 struts-template as taglib

2002-01-15 Thread Andras Balogh


Hi all,

I want to ask you about the posibility to using the struts-template
taglib in a project that is not using struts at all.
Initally i searched for a template taglib at
http://jakarta.apache.org/taglibs/
but i couldn't find any.
I then thought about using the struts-template taglib.
So i took struts.jar and removed anything not related to
struts-template. This is legal to do?
I wonder if will be available the struts-template as taglib?

Sorry for being off-topic a little bit ..

Andras.

 



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




Re: Struts' Template

2001-11-13 Thread Harden ZHU

My error page is constructed same way. But in viewcart.jsp (), when I do forward I got follow
error message:

Tue Nov 13 10:31:48 EST 2001:  Root cause
of ServletException javax.servlet.jsp.JspException: Cannot forward a
response that is already committed

So where people put their error checking? In the main page jsp or subpage
jsp? I am sure it is not template.jsp.

Harden


- Original Message -
From: "Marcel Andres" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 4:41 AM
Subject: RE: Struts' Template


> Isn't it possible for you, to create the error page in the same way? You
could include title.jsp, header.jsp etc. on the error page, too, and so it
would not be a problem to forward to this page.
>
> Marcel
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 10:17 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Struts' Template
>
>
> Hi,
>
> I am using the template as follow. And viewcart.jsp is the content. In
> viewcart.jsp, I have error checking. If found errors, will be forward to
> another page. But I can't do forward, beacuse title.jsp, header.jsp etc
are
> included first. JSP will flush the code when do include. I don't want to
put
> error checking at follow instead of viewcard.jsp. So what I should do? Any
> suggestion or good pattern for this kind situation?
>
> Thanks
>
> Harden
>
> 
>  <%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> --
> 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: Struts' Template

2001-11-13 Thread Marcel Andres

Isn't it possible for you, to create the error page in the same way? You could include 
title.jsp, header.jsp etc. on the error page, too, and so it would not be a problem to 
forward to this page.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 10:17 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Struts' Template


Hi,

I am using the template as follow. And viewcart.jsp is the content. In
viewcart.jsp, I have error checking. If found errors, will be forward to
another page. But I can't do forward, beacuse title.jsp, header.jsp etc are
included first. JSP will flush the code when do include. I don't want to put
error checking at follow instead of viewcard.jsp. So what I should do? Any
suggestion or good pattern for this kind situation?

Thanks

Harden


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












--
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]>




Struts' Template

2001-11-13 Thread Harden ZHU

Hi,

I am using the template as follow. And viewcart.jsp is the content. In
viewcart.jsp, I have error checking. If found errors, will be forward to
another page. But I can't do forward, beacuse title.jsp, header.jsp etc are
included first. JSP will flush the code when do include. I don't want to put
error checking at follow instead of viewcard.jsp. So what I should do? Any
suggestion or good pattern for this kind situation?

Thanks

Harden


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












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




HowTo: Struts Template containing JSP with Action and ActionForms associated

2001-10-26 Thread storck

Hi,

I have a template build with struts and I have a JSP wich uses that template
and looks like the following:

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







AND I have a struts-config:



















If I use "" I get a exception wich says that
the bean "showBoxesBean" could not be found in session so I thought I must
use "" in my
JSP. But than I get a "javax.servlet.jsp.JspException: Servlet Exception"
throwen in the template-insert-tag.

The Action associated with my ShowSelectionBoxes.jsp has the duty to fill
some selectboxes.
What I want to do is to have a JSP build with template wich has on the left
side a sidebar containing 3 selectboxes and in the middle showing some
content wich is although a jsp with a Action and a ActionForm

PLEASE can anyone help me how to achieve that ??
THANKS!




RE: Bug in Struts Template

2001-10-03 Thread Assenza, Chris

In WebSphere you *must* use the flush attr. :)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Minh Tran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 1:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Bug in Struts Template


I am using Websphere Application Server 4.0

Let met try the flush.. hopefully it will work..

thanks,
Minh

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 1:17 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Bug in Struts Template
> 
>   Hi,
> 
>   It is a bug from your web container, not from Templates lib.
>   Which web Container do you use ?
>   You can bypass this problem by adding flush="true" in all your 
> tags
> (i.e. : )
> 
> Cedric
> 
> 
> Minh Tran wrote:
> 
> > Hi,
> >
> > can someone please let me know if there is a known bug with the struts
> > template libs.. on how it produces html code...  notice in the html
> output
> > below has the  structure defined in the template at the end with
> all
> > of the dynamic data printed ahead of it...  there is definitely
> something
> > wrong.. the data should be within the template structure defined..
> >
> > I know this has to be a known bug.. since it's too big of a bug to not
> be
> > known...
> >
> > also.. could you please let me know how to fix it..
> >
> > Thanks,
> > Minh
> >
> > Topics
> >   
> > 
> > Introduction 
> >
> > 
> > Using Templates 
> >
> > 
> > Optional Content 
> > 
> > ... and more ...
> >   
> >
> > 
> >
> >   
> >   
> >
> > 
> > This example application is based on  >
> href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";
> >U
> > sing JSP templates to encapsulate Webpage layout and encourage modular
> > design by David Geary. Follow that link for the full article, which
> also
> > covers using role-based and nested templates. The template classes
> described
> > in the Java World article were the basis for those included with Struts
> > 1.0.
> > Introduction
> > Window toolkits typically provide a layout
> mechanism
> > that positions widgets in a container; for example, AWT and Swing have
> > layout managers, whereas VisualWorks Smalltalk has wrappers.
> > Because layout undergoes many changes over the
> course
> > of development, it's important to encapsulate that functionality so
> layout
> > can be modified with minimal impact to the rest of the application. In
> fact,
> > layout managers are an example of one of the tenets of object-oriented
> > design: encapsulate the concept that varies, which is also a fundamental
> > theme for many design patterns.
> > JSP does not provide direct support for
> encapsulating
> > layout, so web pages with identical formats usually replicate layout
> code;
> > for example, A Web Page Layout shows a web page containing
> sections
> > for a header, footer, sidebar, and main content.
> > The layout of the page shown in A Web Page
> > Layout is implemented with HTML table tags, as listed in Including
> > Content.
> > 
> > Including Content
> > 
> > <html><head><title>Templates</title></head>
> > <body background='graphics/blueAndWhiteBackground.gif'>
> > 
> > <table width='610'>
> > <tr valign='top'><td><jsp:include
> page='sidebar.jsp'/></td>
> > <td><table>
> > <tr><td><jsp:include page='header.html'/></td></tr>
> > <tr><td><jsp:include page='chapter.jsp'/></td></tr>
> > <tr><td><jsp:include page='footer.jsp'/></td></tr>
> > </table>
> > </td>
> > </tr> 
> > </table>
> > </body></html>
> > In Including Content, content is included with
> > <jsp:include> which allows content to vary without modifying HTML;
> > however, because the layout is hardcoded, layout changes require
> > modifications to the page. If a website has many pages with identical
> > formats, even simple layout changes require modifications to all of the
> &g

RE: Bug in Struts Template

2001-10-03 Thread Minh Tran

I am using Websphere Application Server 4.0

Let met try the flush.. hopefully it will work..

thanks,
Minh

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 03, 2001 1:17 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Bug in Struts Template
> 
>   Hi,
> 
>   It is a bug from your web container, not from Templates lib.
>   Which web Container do you use ?
>   You can bypass this problem by adding flush="true" in all your 
> tags
> (i.e. : )
> 
> Cedric
> 
> 
> Minh Tran wrote:
> 
> > Hi,
> >
> > can someone please let me know if there is a known bug with the struts
> > template libs.. on how it produces html code...  notice in the html
> output
> > below has the  structure defined in the template at the end with
> all
> > of the dynamic data printed ahead of it...  there is definitely
> something
> > wrong.. the data should be within the template structure defined..
> >
> > I know this has to be a known bug.. since it's too big of a bug to not
> be
> > known...
> >
> > also.. could you please let me know how to fix it..
> >
> > Thanks,
> > Minh
> >
> > Topics
> >   
> > 
> > Introduction 
> >
> > 
> > Using Templates 
> >
> > 
> > Optional Content 
> > 
> > ... and more ...
> >   
> >
> > 
> >
> >   
> >   
> >
> > 
> > This example application is based on  >
> href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";
> >U
> > sing JSP templates to encapsulate Webpage layout and encourage modular
> > design by David Geary. Follow that link for the full article, which
> also
> > covers using role-based and nested templates. The template classes
> described
> > in the Java World article were the basis for those included with Struts
> > 1.0.
> > Introduction
> > Window toolkits typically provide a layout
> mechanism
> > that positions widgets in a container; for example, AWT and Swing have
> > layout managers, whereas VisualWorks Smalltalk has wrappers.
> > Because layout undergoes many changes over the
> course
> > of development, it's important to encapsulate that functionality so
> layout
> > can be modified with minimal impact to the rest of the application. In
> fact,
> > layout managers are an example of one of the tenets of object-oriented
> > design: encapsulate the concept that varies, which is also a fundamental
> > theme for many design patterns.
> > JSP does not provide direct support for
> encapsulating
> > layout, so web pages with identical formats usually replicate layout
> code;
> > for example, A Web Page Layout shows a web page containing
> sections
> > for a header, footer, sidebar, and main content.
> > The layout of the page shown in A Web Page
> > Layout is implemented with HTML table tags, as listed in Including
> > Content.
> > 
> > Including Content
> > 
> > <html><head><title>Templates</title></head>
> > <body background='graphics/blueAndWhiteBackground.gif'>
> > 
> > <table width='610'>
> > <tr valign='top'><td><jsp:include
> page='sidebar.jsp'/></td>
> > <td><table>
> > <tr><td><jsp:include page='header.html'/></td></tr>
> > <tr><td><jsp:include page='chapter.jsp'/></td></tr>
> > <tr><td><jsp:include page='footer.jsp'/></td></tr>
> > </table>
> > </td>
> > </tr> 
> > </table>
> > </body></html>
> > In Including Content, content is included with
> > <jsp:include> which allows content to vary without modifying HTML;
> > however, because the layout is hardcoded, layout changes require
> > modifications to the page. If a website has many pages with identical
> > formats, even simple layout changes require modifications to all of the
> > pages.
> > Using A Template
> > 
> > 
> > <%@ taglib URI='/WEB-INF/struts-template.tld' prefix='template'
> %>
> > 
> > <template:insert template='/chapterTemplate.jsp'>
> ><template:put name='title' content='Templates' direct='true'/>
> ><template:put name='header' content='/header.html'/>
> ><template:put name='sidebar' content='/sidebar.jsp'/>
> ><template:put name='content' content='/introduction.html'/>
> ><template:put name='footer' content='/footer.html'/>
> > </template:insert>
> >
> > To minimize the impact of layout changes, a
> mechanism
> > is needed for dynamically including layout in addition to content. That
> way,
> > both layout and content can be changed without modifying files that use
> > them. For large websites that have many pages with identical formats,
> such a
> > mechanism is valuable because it localizes changes to layout. That
> mechanism
> > is JSP templates.
> > TOP
> >
> > 
> > 
> > Templates
> >  >   charset="ISO-8859-1" type="text/css">
> > 
> > 
> >
> > 
> >
> >   
> >   
> > 
> > 
> > 
> >   
> >   
> >
> > 
> > 
> > 



Re: Bug in Struts Template

2001-10-03 Thread Cedric Dumoulin

  Hi,

  It is a bug from your web container, not from Templates lib.
  Which web Container do you use ?
  You can bypass this problem by adding flush="true" in all your  tags
(i.e. : )

Cedric


Minh Tran wrote:

> Hi,
>
> can someone please let me know if there is a known bug with the struts
> template libs.. on how it produces html code...  notice in the html output
> below has the  structure defined in the template at the end with all
> of the dynamic data printed ahead of it...  there is definitely something
> wrong.. the data should be within the template structure defined..
>
> I know this has to be a known bug.. since it's too big of a bug to not be
> known...
>
> also.. could you please let me know how to fix it..
>
> Thanks,
> Minh
>
> Topics
>   
> 
> Introduction 
>
> 
> Using Templates 
>
> 
> Optional Content 
> 
> ... and more ...
>   
>
> 
>
>   
>   
>
> 
> This example application is based on  href="http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";>U
> sing JSP templates to encapsulate Webpage layout and encourage modular
> design by David Geary. Follow that link for the full article, which also
> covers using role-based and nested templates. The template classes described
> in the Java World article were the basis for those included with Struts
> 1.0.
> Introduction
> Window toolkits typically provide a layout mechanism
> that positions widgets in a container; for example, AWT and Swing have
> layout managers, whereas VisualWorks Smalltalk has wrappers.
> Because layout undergoes many changes over the course
> of development, it's important to encapsulate that functionality so layout
> can be modified with minimal impact to the rest of the application. In fact,
> layout managers are an example of one of the tenets of object-oriented
> design: encapsulate the concept that varies, which is also a fundamental
> theme for many design patterns.
> JSP does not provide direct support for encapsulating
> layout, so web pages with identical formats usually replicate layout code;
> for example, A Web Page Layout shows a web page containing sections
> for a header, footer, sidebar, and main content.
> The layout of the page shown in A Web Page
> Layout is implemented with HTML table tags, as listed in Including
> Content.
> 
> Including Content
> 
> <html><head><title>Templates</title></head>
> <body background='graphics/blueAndWhiteBackground.gif'>
> 
> <table width='610'>
> <tr valign='top'><td><jsp:include page='sidebar.jsp'/></td>
> <td><table>
> <tr><td><jsp:include page='header.html'/></td></tr>
> <tr><td><jsp:include page='chapter.jsp'/></td></tr>
> <tr><td><jsp:include page='footer.jsp'/></td></tr>
> </table>
> </td>
> </tr> 
> </table>
> </body></html>
> In Including Content, content is included with
> <jsp:include> which allows content to vary without modifying HTML;
> however, because the layout is hardcoded, layout changes require
> modifications to the page. If a website has many pages with identical
> formats, even simple layout changes require modifications to all of the
> pages.
> Using A Template
> 
> 
> <%@ taglib URI='/WEB-INF/struts-template.tld' prefix='template' %>
> 
> <template:insert template='/chapterTemplate.jsp'>
><template:put name='title' content='Templates' direct='true'/>
><template:put name='header' content='/header.html'/>
><template:put name='sidebar' content='/sidebar.jsp'/>
><template:put name='content' content='/introduction.html'/>
><template:put name='footer' content='/footer.html'/>
> </template:insert>
>
> To minimize the impact of layout changes, a mechanism
> is needed for dynamically including layout in addition to content. That way,
> both layout and content can be changed without modifying files that use
> them. For large websites that have many pages with identical formats, such a
> mechanism is valuable because it localizes changes to layout. That mechanism
> is JSP templates.
> TOP
>
> 
> 
> Templates
>charset="ISO-8859-1" type="text/css">
> 
> 
>
> 
>
>   
>   
> 
> 
> 
>   
>   
>
> 
> 
> 




Bug in Struts Template

2001-10-02 Thread Minh Tran

Hi,

can someone please let me know if there is a known bug with the struts
template libs.. on how it produces html code...  notice in the html output
below has the  structure defined in the template at the end with all
of the dynamic data printed ahead of it...  there is definitely something
wrong.. the data should be within the template structure defined..

I know this has to be a known bug.. since it's too big of a bug to not be
known...

also.. could you please let me know how to fix it..

Thanks,
Minh





Topics
  

Introduction 


Using Templates 


Optional Content 

... and more ...
  


   
  
  
   

This example application is based on http://www.javaworld.com/javaworld/jw-09-2000/jw-0915-jspweb_p.html";>U
sing JSP templates to encapsulate Webpage layout and encourage modular
design by David Geary. Follow that link for the full article, which also
covers using role-based and nested templates. The template classes described
in the Java World article were the basis for those included with Struts
1.0.
Introduction
Window toolkits typically provide a layout mechanism
that positions widgets in a container; for example, AWT and Swing have
layout managers, whereas VisualWorks Smalltalk has wrappers.
Because layout undergoes many changes over the course
of development, it's important to encapsulate that functionality so layout
can be modified with minimal impact to the rest of the application. In fact,
layout managers are an example of one of the tenets of object-oriented
design: encapsulate the concept that varies, which is also a fundamental
theme for many design patterns.
JSP does not provide direct support for encapsulating
layout, so web pages with identical formats usually replicate layout code;
for example, A Web Page Layout shows a web page containing sections
for a header, footer, sidebar, and main content.
The layout of the page shown in A Web Page
Layout is implemented with HTML table tags, as listed in Including
Content.

Including Content

<html><head><title>Templates</title></head>
<body background='graphics/blueAndWhiteBackground.gif'>

<table width='610'>
<tr valign='top'><td><jsp:include page='sidebar.jsp'/></td>
<td><table>
<tr><td><jsp:include page='header.html'/></td></tr>
<tr><td><jsp:include page='chapter.jsp'/></td></tr>
<tr><td><jsp:include page='footer.jsp'/></td></tr>
</table>
</td>
</tr> 
</table>
</body></html>
In Including Content, content is included with
<jsp:include> which allows content to vary without modifying HTML;
however, because the layout is hardcoded, layout changes require
modifications to the page. If a website has many pages with identical
formats, even simple layout changes require modifications to all of the
pages.
Using A Template


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

<template:insert template='/chapterTemplate.jsp'>
   <template:put name='title' content='Templates' direct='true'/>
   <template:put name='header' content='/header.html'/>
   <template:put name='sidebar' content='/sidebar.jsp'/>
   <template:put name='content' content='/introduction.html'/>
   <template:put name='footer' content='/footer.html'/>
</template:insert>

To minimize the impact of layout changes, a mechanism
is needed for dynamically including layout in addition to content. That way,
both layout and content can be changed without modifying files that use
them. For large websites that have many pages with identical formats, such a
mechanism is valuable because it localizes changes to layout. That mechanism
is JSP templates.
TOP




Templates





   
  
  



  
  








Re: error regarding invoking css from struts-template

2001-06-08 Thread Ted Husted

There is  a sample Web app that demonstrates how to use the
struts-template tags, but you don't need to deploy that with your
applicaton.

Struts-template is one of the custom tag libraries, like bean, html, and
logic. All you just need is the stuts-template.tld, same as any of the
others.

The struts-templage tags just run out and assemble your JSP from one or
more pieces. 

If the pieces reference a CSS, then the resulting JSP will too. But it
is the browser that applies the CSS, not the tags. The tags just
generate HTML, the rest is up to the browser (or other client). 

Have you tried deploying your CSS without the templates?

I believe this is just a CSS path issue, and doesn't have anything to do
with the template tags.

Chuck Amadi wrote:
> 
> Hi, am i correct that the struts- template is a webapp and can i
> physically move it's content to my struts-bbnpa thus move it up to where
> tomcat is looking.Thus if this correct must i then constantly only refer
> to content in my web app named struts-bbnpa.
> 
> Cheers chuck



error regarding invoking css from struts-template

2001-06-08 Thread Chuck Amadi

Hi, am i correct that the struts- template is a webapp and can i
physically move it's content to my struts-bbnpa thus move it up to where
tomcat is looking.Thus if this correct must i then constantly only refer
to content in my web app named struts-bbnpa.

Cheers chuck

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.



begin:vcard 
n:amadi;chuck
tel;cell:07970 972534
tel;fax:01874 622574
tel;home:[EMAIL PROTECTED]
tel;work:Brecon Beacons National Park
x-mozilla-html:FALSE
url:http://www.breconbeacons.org
org:Brecon Beacons National Park;I.T
version:2.1
email;internet:[EMAIL PROTECTED]
title:I.T Systems Programmer
adr;quoted-printable:;;7 Glamorgan Street=0D=0ABrecon=0D=0APowys;Brecon;Powys;LD3 7DP;Wales (United Kingdom)
fn:chuck amadi
end:vcard



Re: problem with invoking struts-template!!

2001-06-08 Thread Chuck Amadi

Hi, am i correct that the struts- template is a webapp and can i
physically move it's content to my struts-bbnpa thus move it up to where
tomcat is looking.Thus if this correct must i then constantly only refer
to content in my web app named struts-bbnpa.

Cheers chuck



Ted Husted wrote:

> I don't believe that the JSP templates and CSS files are strongly
> coupled. I believe the browser applies the CSS, not the template. You
> might just want to move the CSS up to where Tomcat is looking for it.
>
> Chuck Amadi wrote:
> >
> > I have created a index.jsp that has the content of our company
> > web-site, thus the index.jsp  is located
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
> >
> > Thus i have set up the tag libraries in the web.xml file and
> > referenced the taglib at the top of my index.jsp page as
> > below.Nevertheless i recieve a Not Found Error.My struts-template is
> > located
> >
> > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
> >
> > <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
> >
> >
> > Not Found (404)
> >
> > Original request: /struts-bbnpa/css/bbnpa.css
> >
> > Not found request: /struts-bbnpa/css/bbnpa.css
> >
> > Any suggestions please .
> >
> > --
> > The views expressed by the sender of this message don't
> > necessarily represent those of Brecon Beacons National Park
> > Authority. This message is intended for the addressee(s) only
> > and is sent in confidence; if you receive it in error, please can you
> > let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> > Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> > adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> > Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> > yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> > mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> > ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
> >
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.



begin:vcard 
n:amadi;chuck
tel;cell:07970 972534
tel;fax:01874 622574
tel;home:[EMAIL PROTECTED]
tel;work:Brecon Beacons National Park
x-mozilla-html:FALSE
url:http://www.breconbeacons.org
org:Brecon Beacons National Park;I.T
version:2.1
email;internet:[EMAIL PROTECTED]
title:I.T Systems Programmer
adr;quoted-printable:;;7 Glamorgan Street=0D=0ABrecon=0D=0APowys;Brecon;Powys;LD3 7DP;Wales (United Kingdom)
fn:chuck amadi
end:vcard



Re: problem with invoking struts-template!!

2001-06-08 Thread Chuck Amadi


Hi, the container is now throwing up -  http://localhost:8080/struts-template/css/bbnpa.css
even when i type struts-bbnpa as opposed struts-template.!!
Thus my bbnpa.css file appears in the browser as below.You mentioned
moving CSS up to tomcat where i.e to struts-bbnpa (my web application)
/* BBNP Site Style Sheet */
h1, h2, h3, h4, h5, h6  {color:green; font-family: arial, helvetica,
sans-serif}
h1 {font-size: 20pt}
h4 {font-size: 10pt}
h1.cymraeg {position:relative; left:20px; top:0px; z-index:2}
h1.english {position:relative; left:30px; top:-28px; z-index:1; font-weight:200}
div.pageIntro {color:green; font-family:arial, helvetica, sans-serif;
font-size:12pt; margin-left:50px; margin-right:100px; margin-top:10px}
div.index {color:green; font-family:arial, helvetica, sans-serif;
    font-size:12pt; margin-left:30px}
div.textNav { color:teal; font-family: arial, helvetica, sans-serif;
    font-size:10pt; margin-bottom:
10px; text-align: center
Cheers making steady progress.Chuck
Ted Husted wrote:
I don't believe that the JSP templates and CSS files
are strongly
coupled. I believe the browser applies the CSS, not the template. You
might just want to move the CSS up to where Tomcat is looking for it.
Chuck Amadi wrote:
>
> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
>
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template
is
> located
>
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
>
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template"
%>
>
>
> Not Found (404)
>
> Original request: /struts-bbnpa/css/bbnpa.css
>
> Not found request: /struts-bbnpa/css/bbnpa.css
>
> Any suggestions please .
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can
you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal  rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilwch bob copi.
>
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
 

begin:vcard 
n:amadi;chuck
tel;cell:07970 972534
tel;fax:01874 622574
tel;home:[EMAIL PROTECTED]
tel;work:Brecon Beacons National Park
x-mozilla-html:FALSE
url:http://www.breconbeacons.org
org:Brecon Beacons National Park;I.T
version:2.1
email;internet:[EMAIL PROTECTED]
title:I.T Systems Programmer
adr;quoted-printable:;;7 Glamorgan Street=0D=0ABrecon=0D=0APowys;Brecon;Powys;LD3 7DP;Wales (United Kingdom)
fn:chuck amadi
end:vcard



RE: problem with invoking struts-template!!

2001-06-07 Thread Thane Eisener
Title: RE: problem with invoking struts-template!!





I have style sheets in /css/*.css
My templates have the following tag in their  elements:
  


Thane


-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 12:18 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with invoking struts-template!!



I haven't done anything with templates, so this may not be correct.
However, if you are referencing a style sheet in your header (on a
regular page), the link:
    /struts-bbnpa/css/bbnpa.css
is a reference from the context, not the WEB-INF directory.
Therefore, you would want to change your link to:
    /WEB-INF/struts-template/css/bbnpa.css


However, Im not sure if the template stuff changes this.


HTH,
    Pete



Chuck Amadi wrote:


> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
>
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template is
> located
>
> C:\jaka
> ta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
>
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
>
>
> Not Found (404)
>
> Original request: /struts-bbnpa/css/bbnpa.css
>
> Not found request: /struts-bbnpa/css/bbnpa.css
>
> Any suggestions please .
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
>





Re: problem with invoking struts-template!!

2001-06-07 Thread Ted Husted

I don't believe that the JSP templates and CSS files are strongly
coupled. I believe the browser applies the CSS, not the template. You
might just want to move the CSS up to where Tomcat is looking for it.

Chuck Amadi wrote:
> 
> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
> 
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template is
> located
> 
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
> 
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
> 
> 
> Not Found (404)
> 
> Original request: /struts-bbnpa/css/bbnpa.css
> 
> Not found request: /struts-bbnpa/css/bbnpa.css
> 
> Any suggestions please .
> 
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
> 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/



Re: problem with invoking struts-template!!

2001-06-07 Thread Peter Alfors

I haven't done anything with templates, so this may not be correct.
However, if you are referencing a style sheet in your header (on a
regular page), the link:
/struts-bbnpa/css/bbnpa.css
is a reference from the context, not the WEB-INF directory.
Therefore, you would want to change your link to:
/WEB-INF/struts-template/css/bbnpa.css

However, Im not sure if the template stuff changes this.

HTH,
Pete


Chuck Amadi wrote:

> I have created a index.jsp that has the content of our company
> web-site, thus the index.jsp  is located
> C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
>
> Thus i have set up the tag libraries in the web.xml file and
> referenced the taglib at the top of my index.jsp page as
> below.Nevertheless i recieve a Not Found Error.My struts-template is
> located
>
> C:\jaka
> ta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
>
> <%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template" %>
>
>
> Not Found (404)
>
> Original request: /struts-bbnpa/css/bbnpa.css
>
> Not found request: /struts-bbnpa/css/bbnpa.css
>
> Any suggestions please .
>
> --
> The views expressed by the sender of this message don't
> necessarily represent those of Brecon Beacons National Park
> Authority. This message is intended for the addressee(s) only
> and is sent in confidence; if you receive it in error, please can you
> let us know (at [EMAIL PROTECTED]) and then destroy all copies.
> Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
> adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
> Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
> yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
> mewn camgymeriad, a fyddech gystal â rhoi gwybod i
> ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
>


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/logo/irista.gif";>Bringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



problem with invoking struts-template!!

2001-06-07 Thread Chuck Amadi


I have created a index.jsp that has the content of our company web-site,
thus the index.jsp  is located C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\index.jsp
Thus i have set up the tag libraries in the web.xml file and referenced
the taglib at the top of my index.jsp page as below.Nevertheless i recieve
a Not Found Error.My struts-template is located
C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\struts-template\css\bbnpa.css
<%@ taglib uri="/WEB-INF/struts-template.tld"  prefix="template"
%>
 
Not Found (404)
Original request: /struts-bbnpa/css/bbnpa.css
Not found request: /struts-bbnpa/css/bbnpa.css
Any suggestions please .
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
 

begin:vcard 
n:amadi;chuck
tel;cell:07970 972534
tel;fax:01874 622574
tel;home:[EMAIL PROTECTED]
tel;work:Brecon Beacons National Park
x-mozilla-html:FALSE
url:http://www.breconbeacons.org
org:Brecon Beacons National Park;I.T
version:2.1
email;internet:[EMAIL PROTECTED]
title:I.T Systems Programmer
adr;quoted-printable:;;7 Glamorgan Street=0D=0ABrecon=0D=0APowys;Brecon;Powys;LD3 7DP;Wales (United Kingdom)
fn:chuck amadi
end:vcard



Re: struts-template and MVC

2001-05-31 Thread Martin Cooper

BY LOOKING AT THIS PAGE http://jakarta.apache.org/site/mail2.html

- Original Message -
From: "Perez, Bill" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 10:40 AM
Subject: RE: struts-template and MVC


> HOW THE HELL DO I UNSUBSCRIBE FROM THIS LIST
>
> > -Original Message-
> > From: Mark Simms [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 15, 2001 6:50 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: struts-template and MVC
> >
> > Sounds greatgo for it Dan,
> > but try to get more info on the component specification.little seems
> > to
> > be known about it.
> >
> > - Original Message -
> > From: "Dan Miser" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, May 15, 2001 8:34 PM
> > Subject: struts-template and MVC
> >
> >
> > > I originally wrote a Struts app that acted much like the
struts-example.
> > I
> > > feel it's a good separation of business logic from presentation, and
> > that
> > it
> > > follows the principles of MVC pretty well.
> > >
> > > Now the GUI developers are looking to integrate all of my very ugly
HTML
> > > pages into a common look and feel. I thought that the struts-template
> > > mechanism would be perfect. I can define my header, sidebar, footer
and
> > > dynamic content using this library.
> > >
> > > However, I noticed that the struts-template mechanism seems to be
based
> > on
> > > JSP pages, as opposed to actions. For example, the InsertTag class'
> > doEndTag
> > > method calls pageContext.include, so I can't simply specify:
> > >> content='/displayRoles.do?type=external'/>
> > >
> > > When I do that, I get an exception (which makes sense).
> > >
> > > I'd like the best of both worlds by providing the templating
capability
> > and
> > > still keeping my action-based web site. I was thinking of extending
the
> > > template:put tag to accept something like this:
> > >   
> > >
> > > That way, the action class will execute and eventually forward itself
on
> > to
> > > the "success" page defined in struts-config.xml.
> > >
> > > So, did I miss something here? Is my analysis of this situation right?
> > Are
> > > people using struts-template in a capacity other than a
> > layout/presentation
> > > manager? Would the Components framework by Cedric solve this? Finally,
> > if
> > I
> > > got it all right, is there any interest in seeing this type of
> > extension?
> > >
> > > Thanks for your time.
> > > --
> > > Dan Miser
> > > http://www.distribucon.com
> > >
> > > _
> > > Get your FREE download of MSN Explorer at http://explorer.msn.com





RE: struts-template and MVC

2001-05-16 Thread Perez, Bill

HOW THE HELL DO I UNSUBSCRIBE FROM THIS LIST

> -Original Message-
> From: Mark Simms [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 6:50 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: struts-template and MVC
> 
> Sounds greatgo for it Dan,
> but try to get more info on the component specification.little seems
> to
> be known about it.
> 
> - Original Message -
> From: "Dan Miser" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 15, 2001 8:34 PM
> Subject: struts-template and MVC
> 
> 
> > I originally wrote a Struts app that acted much like the struts-example.
> I
> > feel it's a good separation of business logic from presentation, and
> that
> it
> > follows the principles of MVC pretty well.
> >
> > Now the GUI developers are looking to integrate all of my very ugly HTML
> > pages into a common look and feel. I thought that the struts-template
> > mechanism would be perfect. I can define my header, sidebar, footer and
> > dynamic content using this library.
> >
> > However, I noticed that the struts-template mechanism seems to be based
> on
> > JSP pages, as opposed to actions. For example, the InsertTag class'
> doEndTag
> > method calls pageContext.include, so I can't simply specify:
> >content='/displayRoles.do?type=external'/>
> >
> > When I do that, I get an exception (which makes sense).
> >
> > I'd like the best of both worlds by providing the templating capability
> and
> > still keeping my action-based web site. I was thinking of extending the
> > template:put tag to accept something like this:
> >   
> >
> > That way, the action class will execute and eventually forward itself on
> to
> > the "success" page defined in struts-config.xml.
> >
> > So, did I miss something here? Is my analysis of this situation right?
> Are
> > people using struts-template in a capacity other than a
> layout/presentation
> > manager? Would the Components framework by Cedric solve this? Finally,
> if
> I
> > got it all right, is there any interest in seeing this type of
> extension?
> >
> > Thanks for your time.
> > --
> > Dan Miser
> > http://www.distribucon.com
> >
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com



RE: struts-template and MVC

2001-05-16 Thread Danail Grigorov

h, that's very strange.

i'm using the following:








and i don't have any problems - the include works fine (acts as
)
if the above doesn't work for you, try the following:






<%= xout2 %>




i have tested this with Resin 1.2.5 and JRun Server 3.0 SP2a, Struts nightly
build from 12.May.2001


danail



-Original Message-
From: Dan Miser [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 8:35 PM
To: [EMAIL PROTECTED]
Subject: struts-template and MVC


I originally wrote a Struts app that acted much like the struts-example. I
feel it's a good separation of business logic from presentation, and that it
follows the principles of MVC pretty well.

Now the GUI developers are looking to integrate all of my very ugly HTML
pages into a common look and feel. I thought that the struts-template
mechanism would be perfect. I can define my header, sidebar, footer and
dynamic content using this library.

However, I noticed that the struts-template mechanism seems to be based on
JSP pages, as opposed to actions. For example, the InsertTag class' doEndTag
method calls pageContext.include, so I can't simply specify:
  

When I do that, I get an exception (which makes sense).

I'd like the best of both worlds by providing the templating capability and
still keeping my action-based web site. I was thinking of extending the
template:put tag to accept something like this:
  

That way, the action class will execute and eventually forward itself on to
the "success" page defined in struts-config.xml.

So, did I miss something here? Is my analysis of this situation right? Are
people using struts-template in a capacity other than a layout/presentation
manager? Would the Components framework by Cedric solve this? Finally, if I
got it all right, is there any interest in seeing this type of extension?

Thanks for your time.
--
Dan Miser
http://www.distribucon.com

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: struts-template and MVC

2001-05-16 Thread Cedric Dumoulin


  Hi Dan,

  Struts 'actions' do a forward at the end. This forbid to insert an action in a
template, because you can't do a forward once you have start to write the
request response.
  A solution to your problem is, using Components implementation, to replace tag
 with following :

   
   
   

  It may be interesting to be able to insert a page through an action, as you
propose. This is not very hard to implement with Components. Need to look at
this possible behavior more closely.

Cedric

P.S.: If you want to try immediately your solution with components, you can do
following quick and dirty code change in component.ComponentActionServlet.jsp :
  In method processForward(...), at the end of the class, change call to
"rd.forward(request, response);" in :
   try
 { // original behavior
 rd.forward(request, response);
 }
catch( IllegalStateException ex )
 { // Response already committed : do include
 rd.include( request, response);
 }

After that, you will be able to 'insert' an action from a template (but there
will be some problems if your 'action' forward to a definition name).

Dan Miser wrote:

> I originally wrote a Struts app that acted much like the struts-example. I
> feel it's a good separation of business logic from presentation, and that it
> follows the principles of MVC pretty well.
>
> Now the GUI developers are looking to integrate all of my very ugly HTML
> pages into a common look and feel. I thought that the struts-template
> mechanism would be perfect. I can define my header, sidebar, footer and
> dynamic content using this library.
>
> However, I noticed that the struts-template mechanism seems to be based on
> JSP pages, as opposed to actions. For example, the InsertTag class' doEndTag
> method calls pageContext.include, so I can't simply specify:
>   
>
> When I do that, I get an exception (which makes sense).
>
> I'd like the best of both worlds by providing the templating capability and
> still keeping my action-based web site. I was thinking of extending the
> template:put tag to accept something like this:
>   
>
> That way, the action class will execute and eventually forward itself on to
> the "success" page defined in struts-config.xml.
>
> So, did I miss something here? Is my analysis of this situation right? Are
> people using struts-template in a capacity other than a layout/presentation
> manager? Would the Components framework by Cedric solve this? Finally, if I
> got it all right, is there any interest in seeing this type of extension?
>
> Thanks for your time.
> --
> Dan Miser
> http://www.distribucon.com
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: struts-template and MVC

2001-05-15 Thread Dan Miser

Can you expand on this?

If you're saying that I should just change the name to 'action', then how
will Struts know which section of the template to place the data in?

And why direct='true'? That's been used when you want to display an actual
string - not when you want to execute an action.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: "John Chang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 1:28 AM
Subject: Re: struts-template and MVC


> should be:
>
>  direct='true' />





Re: struts-template and MVC

2001-05-15 Thread John Chang

should be:





- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:34 PM
Subject: struts-template and MVC


> I originally wrote a Struts app that acted much like the struts-example. I
> feel it's a good separation of business logic from presentation, and that
it
> follows the principles of MVC pretty well.
>
> Now the GUI developers are looking to integrate all of my very ugly HTML
> pages into a common look and feel. I thought that the struts-template
> mechanism would be perfect. I can define my header, sidebar, footer and
> dynamic content using this library.
>
> However, I noticed that the struts-template mechanism seems to be based on
> JSP pages, as opposed to actions. For example, the InsertTag class'
doEndTag
> method calls pageContext.include, so I can't simply specify:
>   
>
> When I do that, I get an exception (which makes sense).
>
> I'd like the best of both worlds by providing the templating capability
and
> still keeping my action-based web site. I was thinking of extending the
> template:put tag to accept something like this:
>   
>
> That way, the action class will execute and eventually forward itself on
to
> the "success" page defined in struts-config.xml.
>
> So, did I miss something here? Is my analysis of this situation right? Are
> people using struts-template in a capacity other than a
layout/presentation
> manager? Would the Components framework by Cedric solve this? Finally, if
I
> got it all right, is there any interest in seeing this type of extension?
>
> Thanks for your time.
> --
> Dan Miser
> http://www.distribucon.com
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: struts-template and MVC

2001-05-15 Thread Mark Simms

Sounds greatgo for it Dan,
but try to get more info on the component specification.little seems to
be known about it.

- Original Message -
From: "Dan Miser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 8:34 PM
Subject: struts-template and MVC


> I originally wrote a Struts app that acted much like the struts-example. I
> feel it's a good separation of business logic from presentation, and that
it
> follows the principles of MVC pretty well.
>
> Now the GUI developers are looking to integrate all of my very ugly HTML
> pages into a common look and feel. I thought that the struts-template
> mechanism would be perfect. I can define my header, sidebar, footer and
> dynamic content using this library.
>
> However, I noticed that the struts-template mechanism seems to be based on
> JSP pages, as opposed to actions. For example, the InsertTag class'
doEndTag
> method calls pageContext.include, so I can't simply specify:
>   
>
> When I do that, I get an exception (which makes sense).
>
> I'd like the best of both worlds by providing the templating capability
and
> still keeping my action-based web site. I was thinking of extending the
> template:put tag to accept something like this:
>   
>
> That way, the action class will execute and eventually forward itself on
to
> the "success" page defined in struts-config.xml.
>
> So, did I miss something here? Is my analysis of this situation right? Are
> people using struts-template in a capacity other than a
layout/presentation
> manager? Would the Components framework by Cedric solve this? Finally, if
I
> got it all right, is there any interest in seeing this type of extension?
>
> Thanks for your time.
> --
> Dan Miser
> http://www.distribucon.com
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com




struts-template and MVC

2001-05-15 Thread Dan Miser

I originally wrote a Struts app that acted much like the struts-example. I 
feel it's a good separation of business logic from presentation, and that it 
follows the principles of MVC pretty well.

Now the GUI developers are looking to integrate all of my very ugly HTML 
pages into a common look and feel. I thought that the struts-template 
mechanism would be perfect. I can define my header, sidebar, footer and 
dynamic content using this library.

However, I noticed that the struts-template mechanism seems to be based on 
JSP pages, as opposed to actions. For example, the InsertTag class' doEndTag 
method calls pageContext.include, so I can't simply specify:
  

When I do that, I get an exception (which makes sense).

I'd like the best of both worlds by providing the templating capability and 
still keeping my action-based web site. I was thinking of extending the 
template:put tag to accept something like this:
  

That way, the action class will execute and eventually forward itself on to 
the "success" page defined in struts-config.xml.

So, did I miss something here? Is my analysis of this situation right? Are 
people using struts-template in a capacity other than a layout/presentation 
manager? Would the Components framework by Cedric solve this? Finally, if I 
got it all right, is there any interest in seeing this type of extension?

Thanks for your time.
--
Dan Miser
http://www.distribucon.com

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




My struts-template - still broken

2001-04-12 Thread Vijaya Narasimha

I am having another problem with the template example. The layout is now
fine. It lays out the sidebar and the header allright. 
But it always returns with a "Error: 404 SC_NOT_FOUND null" for the content
and the footer pages. The html files for these are in the right directory (
same as the header.html, which is being picked up fine). In fact, if I put
header.html instead of introduction.html and footer.html (i.e. use
header.html for all the three contents, header, content and footer) header
is displayed fine, but for content and footer, I get "Error: 404
SC_NOT_FOUND null".

Did anyone else get this problem? Appreciate an thoughts on this problem.

Thanks



introduction.jsp 

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


  
  
  
  
  



chapter-template.jsp

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





   
  



  
  







> -Original Message-
> From: Vijaya Narasimha [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 7:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: My struts-template is broken - iPlanet Application Server
> 6.0 sp2 and Struts (newbie)
> 
> 
> Yes. This problem is solved after incorporating Bram's suggestion.
> Going through the archive worked out well!!!
> 
> Thanks
> 
> 
> > -Original Message-
> > From: Vijaya Narasimha [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, April 11, 2001 6:17 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Re: My struts-template is broken - repeat (newbie)
> > 
> > 
> > 
> > I am having this same problem with i-planet App server v6.0 
> > sp2 and struts
> > from the april 5th nightly build.
> > Did anyone else using struts on iAS face this problem? I had 
> > been playing
> > with just the binary distribution.
> > 
> > Does the change that Bram suggested still hold good? Or is 
> my problem
> > unrelated? Please let me know.
> > 
> > Thanks for youe help
> > 
> > Vijay
> > 
> > 
> > 
> > 
> > 
> > --
> > --
> > 
> > 
> > From: bram 
> > Subject: Re: My struts-template is broken 
> > Date: Mon, 05 Mar 2001 17:16:26 -0800 
> > 
> > --
> > --
> > 
> > 
> > we had the same problem over here(with ibm websphere), and 
> fixed it by
> > adding a
> > pageContext.getout.flush() before the pageContext.include in 
> > the Include and
> > get tags of the
> > template tags. If you go thrue the cvs reposetory, than you 
> > can see that
> > this line was in the source an month ago (or so)
> > but it has been removerd(for the reasons check the comments 
> > in the cvs)...
> > 
> > 
> > 
> > - Original Message -
> > From: "Tom Miller" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, March 05, 2001 5:13 PM
> > Subject: Re: My struts-template is broken
> > 
> > 
> > > Turned out the problem was using Tomcat 3.1, templates 
> seem to work
> > properly
> > > with Tomcat 3.2.1.
> > >
> > > Tom Miller wrote:
> > >
> > > > Whew! Somehow or other my 1.0b1 struts-template webapp is 
> > refusing to
> > > > place the header, sidebar, content and footer in their 
> > respective places
> > > > as per the template. Instead these components are 
> placed one after
> > > > another vertically down my browser page.
> > > >
> > > > I've redeployed the 1.0b1 struts-template.war, rebooted 
> > Tomcat, rebooted
> > > > the machine, started over. Tried Netscape and IE5. Even 
> > replicated the
> > > > process on another computer. Does anyone know why this 
> > might happen? It
> > > > may a cockpit error, but I'm at a loss. I think I saw it working
> > > > correctly the first time I looked at it today, but now 
> > I'm doubting that
> > > > memory.
> > > >
> > > > TIA
> > > > --
> > > > Tom Miller
> > > > Miller Associates, Inc.
> > > > [EMAIL PROTECTED]
> > > > 641.469.3535 Phone
> > > > 413.581.6326 FAX
> > >
> > > --
> > > Tom Miller
> > > Miller Associates, Inc.
> > > [EMAIL PROTECTED]
> > > 641.469.3535 Phone
> > > 413.581.6326 FAX
> > >
> > >
> > 
> 



RE: My struts-template is broken - iPlanet Application Server 6.0 sp2 and Struts (newbie)

2001-04-11 Thread Vijaya Narasimha

Yes. This problem is solved after incorporating Bram's suggestion.
Going through the archive worked out well!!!

Thanks


> -Original Message-
> From: Vijaya Narasimha [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 6:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: My struts-template is broken - repeat (newbie)
> 
> 
> 
> I am having this same problem with i-planet App server v6.0 
> sp2 and struts
> from the april 5th nightly build.
> Did anyone else using struts on iAS face this problem? I had 
> been playing
> with just the binary distribution.
> 
> Does the change that Bram suggested still hold good? Or is my problem
> unrelated? Please let me know.
> 
> Thanks for youe help
> 
> Vijay
> 
> 
> 
> 
> 
> ------
> --
> 
> 
> From: bram 
> Subject: Re: My struts-template is broken 
> Date: Mon, 05 Mar 2001 17:16:26 -0800 
> 
> --
> --
> 
> 
> we had the same problem over here(with ibm websphere), and fixed it by
> adding a
> pageContext.getout.flush() before the pageContext.include in 
> the Include and
> get tags of the
> template tags. If you go thrue the cvs reposetory, than you 
> can see that
> this line was in the source an month ago (or so)
> but it has been removerd(for the reasons check the comments 
> in the cvs)...
> 
> 
> 
> - Original Message -
> From: "Tom Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 05, 2001 5:13 PM
> Subject: Re: My struts-template is broken
> 
> 
> > Turned out the problem was using Tomcat 3.1, templates seem to work
> properly
> > with Tomcat 3.2.1.
> >
> > Tom Miller wrote:
> >
> > > Whew! Somehow or other my 1.0b1 struts-template webapp is 
> refusing to
> > > place the header, sidebar, content and footer in their 
> respective places
> > > as per the template. Instead these components are placed one after
> > > another vertically down my browser page.
> > >
> > > I've redeployed the 1.0b1 struts-template.war, rebooted 
> Tomcat, rebooted
> > > the machine, started over. Tried Netscape and IE5. Even 
> replicated the
> > > process on another computer. Does anyone know why this 
> might happen? It
> > > may a cockpit error, but I'm at a loss. I think I saw it working
> > > correctly the first time I looked at it today, but now 
> I'm doubting that
> > > memory.
> > >
> > > TIA
> > > --
> > > Tom Miller
> > > Miller Associates, Inc.
> > > [EMAIL PROTECTED]
> > > 641.469.3535 Phone
> > > 413.581.6326 FAX
> >
> > --
> > Tom Miller
> > Miller Associates, Inc.
> > [EMAIL PROTECTED]
> > 641.469.3535 Phone
> > 413.581.6326 FAX
> >
> >
> 



Re: My struts-template is broken - repeat (newbie)

2001-04-11 Thread Vijaya Narasimha


I am having this same problem with i-planet App server v6.0 sp2 and struts
from the april 5th nightly build.
Did anyone else using struts on iAS face this problem? I had been playing
with just the binary distribution.

Does the change that Bram suggested still hold good? Or is my problem
unrelated? Please let me know.

Thanks for youe help

Vijay








From: bram 
Subject: Re: My struts-template is broken 
Date: Mon, 05 Mar 2001 17:16:26 -0800 




we had the same problem over here(with ibm websphere), and fixed it by
adding a
pageContext.getout.flush() before the pageContext.include in the Include and
get tags of the
template tags. If you go thrue the cvs reposetory, than you can see that
this line was in the source an month ago (or so)
but it has been removerd(for the reasons check the comments in the cvs)...



- Original Message -
From: "Tom Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 2001 5:13 PM
Subject: Re: My struts-template is broken


> Turned out the problem was using Tomcat 3.1, templates seem to work
properly
> with Tomcat 3.2.1.
>
> Tom Miller wrote:
>
> > Whew! Somehow or other my 1.0b1 struts-template webapp is refusing to
> > place the header, sidebar, content and footer in their respective places
> > as per the template. Instead these components are placed one after
> > another vertically down my browser page.
> >
> > I've redeployed the 1.0b1 struts-template.war, rebooted Tomcat, rebooted
> > the machine, started over. Tried Netscape and IE5. Even replicated the
> > process on another computer. Does anyone know why this might happen? It
> > may a cockpit error, but I'm at a loss. I think I saw it working
> > correctly the first time I looked at it today, but now I'm doubting that
> > memory.
> >
> > TIA
> > --
> > Tom Miller
> > Miller Associates, Inc.
> > [EMAIL PROTECTED]
> > 641.469.3535 Phone
> > 413.581.6326 FAX
>
> --
> Tom Miller
> Miller Associates, Inc.
> [EMAIL PROTECTED]
> 641.469.3535 Phone
> 413.581.6326 FAX
>
>



RE: Help PLEASE!!!! How do you create struts template file usingframe instead of table

2001-04-03 Thread Hoang, Anh

Hi Cedric,

Thank you so much for helping me, it's worked!! Again, thanks a million.

anh

> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 11:55 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Help PLEASE  How do you create struts template file
> usingframe   instead of table
> 
> 
>   Hi Anh,
> 
>   Does your application is at your server root directory, or in a site
> directory
> (like struts-example) ?
>   In this later case, you need to prefix getted url ( name='header'/>) with your site url (<%=request.getContextPath()%>) like
> in the
> following  :
>  marginwidth="5" marginheight="5" scrolling="no" border="0"
> frameborder="no"
> noresize>
>   Do the same for each getted url.
> 
>   If this doesn't work, could you compare the url shown by your browser,
> and the
> url generated in the html file (browser->view->source ...) ?
>   Does the file exist for the generated url ?
> 
>  Cedric
> 
> 
> "Hoang, Anh" wrote:
> 
> > Hi Mr. DuMoulin,
> >
> > Thank you for answering my question in both component and template.
> Template
> > and Component are similar so I thought I try both.
> > Any way, I had tried using component and template the way you show me,
> but I
> > only see the frame display but nothing else but the following error:
> >  "Action canceled Internet Explorer was unable to link to the Web page
> you
> > requested. The page might be temporarily unavailable."
> > The reason I want to use Frame is that I find a javascript menu that
> works
> > for both IE and Netscape which I want to use for our web application,
> the
> > problem is that it works only for Frame.
> > Attached is the code that I have in my template and my setup page. If
> you
> > have time please take a look and tell me what did I do wrong. Thank you
> very
> > much for your help. I do really appreciated that.
> > anh
> >
> > below is the code in my template.jsp
> > **
> > <%@ taglib uri="/struts-template.tld" prefix="template" %>
> > <%-- Frameset Layout component
> >   parameters : title, header, menu, body, footer
> > --%>
> > 
> > 
> > 
> > 
> > 
> >  > marginheight="5" scrolling="no" border="0" frameborder="no" noresize>
> >  > marginwidth="5" marginheight="5" scrolling="no" border="0"
> frameborder="no"
> > noresize>
> >  > marginwidth="0" marginheight="5" scrolling="auto" border="0"
> > frameborder="no" noresize>
> > 
> >  > scrolling="auto" border="0" frameborder="no" noresize>
> >  > marginwidth="5" marginheight="5" scrolling="no" border="0"
> frameborder="no"
> > noresize>
> > 
> > 
> > 
> > *
> > And here is the code from my insert tag:
> >
> > <%@ taglib uri="/struts-template" prefix="template" %>
> > <%@ taglib uri="/app" prefix="app" %>
> >
> > 
> >
> > 
> >   
> >   
> >direct="true">
> >   
> > 
> >
> > ***
> > > -Original Message-
> > > From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> > > Sent: Friday, March 30, 2001 3:10 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  Re: Help PLEASE  How do you create struts template
> file
> > > using frame  instead of table
> > >
> > >
> > >   Hello Anh,
> > >
> > >   In the template page, you have to write something like :
> > > ---
> > > 
> > >/>"
> > > name="header" >
> > >/>"
> > > name="body" >
> > >/>"
> > > name="footer" >
> > > 
> > > --
> > > The scriplet <%=request.getContextPath()%> is not mandatory, but it
> allows
&

Re: Help PLEASE!!!! How do you create struts template file usingframe instead of table

2001-04-03 Thread Cedric Dumoulin


  Hi Anh,

  Does your application is at your server root directory, or in a site directory
(like struts-example) ?
  In this later case, you need to prefix getted url () with your site url (<%=request.getContextPath()%>) like in the
following  :

  Do the same for each getted url.

  If this doesn't work, could you compare the url shown by your browser, and the
url generated in the html file (browser->view->source ...) ?
  Does the file exist for the generated url ?

 Cedric


"Hoang, Anh" wrote:

> Hi Mr. DuMoulin,
>
> Thank you for answering my question in both component and template. Template
> and Component are similar so I thought I try both.
> Any way, I had tried using component and template the way you show me, but I
> only see the frame display but nothing else but the following error:
>  "Action canceled Internet Explorer was unable to link to the Web page you
> requested. The page might be temporarily unavailable."
> The reason I want to use Frame is that I find a javascript menu that works
> for both IE and Netscape which I want to use for our web application, the
> problem is that it works only for Frame.
> Attached is the code that I have in my template and my setup page. If you
> have time please take a look and tell me what did I do wrong. Thank you very
> much for your help. I do really appreciated that.
> anh
>
> below is the code in my template.jsp
> **
> <%@ taglib uri="/struts-template.tld" prefix="template" %>
> <%-- Frameset Layout component
>   parameters : title, header, menu, body, footer
> --%>
> 
> 
> 
> 
> 
>  marginheight="5" scrolling="no" border="0" frameborder="no" noresize>
>  marginwidth="5" marginheight="5" scrolling="no" border="0"  frameborder="no"
> noresize>
>  marginwidth="0" marginheight="5" scrolling="auto" border="0"
> frameborder="no" noresize>
> 
>  scrolling="auto" border="0" frameborder="no" noresize>
>  marginwidth="5" marginheight="5" scrolling="no" border="0" frameborder="no"
> noresize>
> 
> 
> 
> *
> And here is the code from my insert tag:
>
> <%@ taglib uri="/struts-template" prefix="template" %>
> <%@ taglib uri="/app" prefix="app" %>
>
> 
>
> 
>   
>   
>   
>   
> 
>
> ***
> > -Original Message-
> > From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, March 30, 2001 3:10 AM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: Help PLEASE  How do you create struts template file
> > using frame  instead of table
> >
> >
> >   Hello Anh,
> >
> >   In the template page, you have to write something like :
> > ---
> > 
> >   "
> > name="header" >
> >   "
> > name="body" >
> >   "
> > name="footer" >
> > 
> > --
> > The scriplet <%=request.getContextPath()%> is not mandatory, but it allows
> > to
> > put relative URL rather than absolute URL in the insert tag. Thus, your
> > page are
> > portable on different sites.
> >
> >   Your insert tag looks like :
> > --
> > 
> >> direct="true" />
> >   
> >> direct="true"/>
> >> direct="true"/>
> > 
> > -
> >   Don't forget direct="true" ! This instruct to output the string as is,
> > rather
> > than trying to include a jsp page.
> >
> >   Cedric
> >
> > "Hoang, Anh" wrote:
> >
> > > Hello all,
> > >
> > > In the template tag example, the template file used the table and table
> > row
> > > to indicate where in the layout to insert the content. Is there a way to
> > > build the template file using frame instead of table? How do you specify
> > the
> > > src so that it will take  to be the file
> > to
> > > be displayed in the frame? In other world, how do you change the
> > following
> > > code:
> > >
> > > <%@ taglib uri="/struts-template.tld" prefix="template" %>
> > >
> > > 

Re: problem running struts-template example

2001-04-03 Thread Cedric Dumoulin


  Hi Eric,

  It seems that your server doesn't flush out content while including the
template parts.

Cedric

Éric Chamberland wrote:

> Hi,
>
> i find a way to run struts-blank, struts-documentation and little part of
> struts-example. But, when i tried struts-template, i've got only the
> blue-white background?? The result html give me an empty table, why?
> It look like the result of template:get didn't find the values assign in the
> introduction.jsp
>
> (I'm running with EAServer-Jaguar 3.6.1c)
>
> thank's for helping
> Eric




RE: Help PLEASE!!!! How do you create struts template file using frame instead of table

2001-04-03 Thread Hoang, Anh

Hi Mr. DuMoulin,

Thank you for answering my question in both component and template. Template
and Component are similar so I thought I try both.
Any way, I had tried using component and template the way you show me, but I
only see the frame display but nothing else but the following error:
 "Action canceled Internet Explorer was unable to link to the Web page you
requested. The page might be temporarily unavailable."
The reason I want to use Frame is that I find a javascript menu that works
for both IE and Netscape which I want to use for our web application, the
problem is that it works only for Frame. 
Attached is the code that I have in my template and my setup page. If you
have time please take a look and tell me what did I do wrong. Thank you very
much for your help. I do really appreciated that.
anh

below is the code in my template.jsp
**
<%@ taglib uri="/struts-template.tld" prefix="template" %>
<%-- Frameset Layout component
  parameters : title, header, menu, body, footer
--%>














*
And here is the code from my insert tag:

<%@ taglib uri="/struts-template" prefix="template" %>
<%@ taglib uri="/app" prefix="app" %>




  
  
  
  


***
> -Original Message-
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 3:10 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Help PLEASE  How do you create struts template file
> using frame  instead of table
> 
> 
>   Hello Anh,
> 
>   In the template page, you have to write something like :
> ---
> 
>   "
> name="header" >
>   "
> name="body" >
>   "
> name="footer" >
> 
> --
> The scriplet <%=request.getContextPath()%> is not mandatory, but it allows
> to
> put relative URL rather than absolute URL in the insert tag. Thus, your
> page are
> portable on different sites.
> 
>   Your insert tag looks like :
> --
> 
>direct="true" />
>   
>direct="true"/>
>direct="true"/>
> 
> -
>   Don't forget direct="true" ! This instruct to output the string as is,
> rather
> than trying to include a jsp page.
> 
>   Cedric
> 
> "Hoang, Anh" wrote:
> 
> > Hello all,
> >
> > In the template tag example, the template file used the table and table
> row
> > to indicate where in the layout to insert the content. Is there a way to
> > build the template file using frame instead of table? How do you specify
> the
> > src so that it will take  to be the file
> to
> > be displayed in the frame? In other world, how do you change the
> following
> > code:
> >
> > <%@ taglib uri="/struts-template.tld" prefix="template" %>
> >
> > <%-- Layout component
> >   parameters : title, header, menu, body, footer
> > --%>
> >   
> > 
> >   
> >
> > 
> > 
> >   
> > 
> >   
> >   
> > 
> > 
> >   
> >
> >   
> >   
> > 
> >   
> > 
> > 
> > 
> >
> > To this code:
> >
> > <%@ taglib uri="/struts-template.tld" prefix="template" %>
> >
> > <%-- Frameset Layout component
> >   parameters : title, header, menu, body, footer
> > --%>
> >
> > 
> > 
> > 
> > 
> > 
> >  marginheight="5"
> > scrolling="no" border="0" frameborder="no" noresize>
> >  > scrolling="no" border="0"  frameborder="no" noresize>
> >  > scrolling="auto" border="0"  frameborder="no" noresize>
> > 
> >  > scrolling="auto" border="0" frameborder="no" noresize>
> >  marginheight="5"
> > scrolling="no" border="0" frameborder="no" noresize>
> > 
> > 
> >
> > 
> >
> > I tried to put src="" but it didn't work.
> >
> > Is it possible of using frame with template or table and row are the
> only
> > choices? Thank you very much for your help.



problem running struts-template example

2001-04-02 Thread Éric Chamberland

Hi,

i find a way to run struts-blank, struts-documentation and little part of
struts-example. But, when i tried struts-template, i've got only the
blue-white background?? The result html give me an empty table, why?
It look like the result of template:get didn't find the values assign in the
introduction.jsp

(I'm running with EAServer-Jaguar 3.6.1c)

thank's for helping
Eric




Re: Help PLEASE!!!! How do you create struts template file using frame instead of table

2001-03-29 Thread Cedric Dumoulin


  Hello Anh,

  In the template page, you have to write something like :
---

  "
name="header" >
  "
name="body" >
  "
name="footer" >

--
The scriplet <%=request.getContextPath()%> is not mandatory, but it allows to
put relative URL rather than absolute URL in the insert tag. Thus, your page are
portable on different sites.

  Your insert tag looks like :
--

  
  
  
  

-
  Don't forget direct="true" ! This instruct to output the string as is, rather
than trying to include a jsp page.

  Cedric

"Hoang, Anh" wrote:

> Hello all,
>
> In the template tag example, the template file used the table and table row
> to indicate where in the layout to insert the content. Is there a way to
> build the template file using frame instead of table? How do you specify the
> src so that it will take  to be the file to
> be displayed in the frame? In other world, how do you change the following
> code:
>
> <%@ taglib uri="/struts-template.tld" prefix="template" %>
>
> <%-- Layout component
>   parameters : title, header, menu, body, footer
> --%>
>   
> 
>   
>
> 
> 
>   
> 
>   
>   
> 
> 
>   
>
>   
>   
> 
>   
> 
> 
> 
>
> To this code:
>
> <%@ taglib uri="/struts-template.tld" prefix="template" %>
>
> <%-- Frameset Layout component
>   parameters : title, header, menu, body, footer
> --%>
>
> 
> 
> 
> 
> 
>  scrolling="no" border="0" frameborder="no" noresize>
>  scrolling="no" border="0"  frameborder="no" noresize>
>  scrolling="auto" border="0"  frameborder="no" noresize>
> 
>  scrolling="auto" border="0" frameborder="no" noresize>
>  scrolling="no" border="0" frameborder="no" noresize>
> 
> 
>
> 
>
> I tried to put src="" but it didn't work.
>
> Is it possible of using frame with template or table and row are the only
> choices? Thank you very much for your help.




Help PLEASE!!!! How do you create struts template file using frame instead of table

2001-03-29 Thread Hoang, Anh

Hello all,

In the template tag example, the template file used the table and table row
to indicate where in the layout to insert the content. Is there a way to
build the template file using frame instead of table? How do you specify the
src so that it will take  to be the file to
be displayed in the frame? In other world, how do you change the following
code:


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

<%-- Layout component
  parameters : title, header, menu, body, footer
--%>
  

  



  

  
  


  
   
  
  

  




To this code:

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

<%-- Frameset Layout component
  parameters : title, header, menu, body, footer
--%>

















I tried to put src="" but it didn't work.


Is it possible of using frame with template or table and row are the only
choices? Thank you very much for your help.





RE: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Vincent Harcq

Many Thanks.
It works OK now under Tomcat 3.2.1.
Is there a problem in "flush" under Tomcat 3.2.1; in this case this patch
would be appreciate for final Struts 1.0.
Or is it my Tomcat configuration ?
Vincent.

-Message d'origine-
De : Assenza, Chris [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 28 mars 2001 23:12
À : '[EMAIL PROTECTED]'
Objet : RE: Template -struts-template and generated HTML / templating
using PUSH model


Harcq,

I just ran into this problem myself with WebSphere.  The GetTag.java - the
source behind the template:get tag that actually does the include calls
pageContext and includes whatever content should go in.  By default, the
servlet engine should flush the buffer (that's what allows an include to go
somewhere within your page). However, apparently some servers don't do that
by default (WS 3.5.3 doesn't seem to).  The solution is an easy one, but
you'll need to recompile Struts.

Under struts/src/share/org/apache/struts/taglib/template you will see a file
called GetTag.java.  Open that file.  In the doStartTag() method you'll find
the following code:

pageContext.include(content.toString());

To fix your problem (hopefully, worked for me) add the following line above
it:

pageContext.getOut().flush();

So your end result will look like:

pageContext.getOut().flush();
pageContext.include(content.toString());

By hardcoding the flush your problems should be solved. Recompiling struts
is documented on the Struts installation web page. :)

HTH,

Chris Assenza


-Original Message-
From: Vincent Harcq [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 2:59 AM
To: User Struts
Subject: Template -struts-template and generated HTML / templating using
PUSH model


Hi,

1. I am beginning to look at Templating mechanism and so use the example
struts-template using version pre-beta-2 (23/03/01).
The result is a strange for me.  Can somebody explain me this.
On the first page, when I look at the generated code (look at the end of
message), I got something where the side-bar.jsp and header.jsp is included
BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
 should appear first.
Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
browser ?

2. I was also thinking about another mean of doing templating.  The fact
that I have two create each 2 files (introduction.jsp and introduction.html)
is not really needed if you consider you have a little number of different
templates to work with.
Say you have only two templates (side-bar header content footer) (left-bar
header content right-bar footer), it is too much for me to create each time
the page that will use template:put.
I have done that before I used Struts in a "request processor" by setting
the value of a "content" field, forwarding to one of two pages template1.jsp
and template2.jsp that uses jsp include tags.
My plan was to do that in the findForward() method of ActionForwards and
forward all the time to one of the 2 template pages that I have and setting
the "content" value before.
To speak "philosophically", but wishing to not re-open this debate, the PUSH
method is for me more convenient that the "PULL" one for Page Templating
Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
solve this templating problem.

Any ideas ?


HTML generated:
---

Topics
  

Introduction 


Using Templates 


Optional Content 

... and more ...
  


   
  
  
   


 . . .


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


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




RE: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Assenza, Chris

Harcq,

I just ran into this problem myself with WebSphere.  The GetTag.java - the
source behind the template:get tag that actually does the include calls
pageContext and includes whatever content should go in.  By default, the
servlet engine should flush the buffer (that's what allows an include to go
somewhere within your page). However, apparently some servers don't do that
by default (WS 3.5.3 doesn't seem to).  The solution is an easy one, but
you'll need to recompile Struts. 

Under struts/src/share/org/apache/struts/taglib/template you will see a file
called GetTag.java.  Open that file.  In the doStartTag() method you'll find
the following code: 

pageContext.include(content.toString());

To fix your problem (hopefully, worked for me) add the following line above
it:

pageContext.getOut().flush();

So your end result will look like:

pageContext.getOut().flush();
pageContext.include(content.toString());

By hardcoding the flush your problems should be solved. Recompiling struts
is documented on the Struts installation web page. :)

HTH, 

Chris Assenza


-Original Message-
From: Vincent Harcq [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 2:59 AM
To: User Struts
Subject: Template -struts-template and generated HTML / templating using
PUSH model


Hi,

1. I am beginning to look at Templating mechanism and so use the example
struts-template using version pre-beta-2 (23/03/01).
The result is a strange for me.  Can somebody explain me this.
On the first page, when I look at the generated code (look at the end of
message), I got something where the side-bar.jsp and header.jsp is included
BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
 should appear first.
Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
browser ?

2. I was also thinking about another mean of doing templating.  The fact
that I have two create each 2 files (introduction.jsp and introduction.html)
is not really needed if you consider you have a little number of different
templates to work with.
Say you have only two templates (side-bar header content footer) (left-bar
header content right-bar footer), it is too much for me to create each time
the page that will use template:put.
I have done that before I used Struts in a "request processor" by setting
the value of a "content" field, forwarding to one of two pages template1.jsp
and template2.jsp that uses jsp include tags.
My plan was to do that in the findForward() method of ActionForwards and
forward all the time to one of the 2 template pages that I have and setting
the "content" value before.
To speak "philosophically", but wishing to not re-open this debate, the PUSH
method is for me more convenient that the "PULL" one for Page Templating
Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
solve this templating problem.

Any ideas ?


HTML generated:
---

Topics
  

Introduction 


Using Templates 


Optional Content 

... and more ...
  


   
  
  
   


 . . .


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



Re: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Maya Muchnik

Hi, Christophe,

I understand that you prefer to talk in French. But we cannot read your email. If you
would like to talk only with Cedric, you can send email only to him, not all struts
users.

Thanks and sorry for any interruption.

Maya

Christophe Vigny wrote:

> J'espere, que cela prendra en compte l'internationnalisation. Les fichiers de
> resources, ne permettent pas de gerer des pages stylisées.
>
> Ce qui m'interesserait, dans un systeme de templates, ce sont des feuilles de style
> (pas xsl) qui s'appliqueraient sur des beans, et qui permettrait au graphiste de
> définir globalement comment s'affiche l'objet, puis de l'utiliser via des tags.
>
> a+
>
> Cedric Dumoulin a écrit :
>
> >   Hi Vincent,
> >
> >   Have a look to Components proposal. Components proposal can be seen as
> > "extended templates". With Components you can define your template's
> > contents/attributes in a separate file, and insert content by using its name. A
> > content, named a component, can also inherit from other definitions. Components
> > proposal also contains other features.
> >   See (main site) http://www.lifl.fr/~dumoulin/components
> >  (mirror) http://www.geocities.com/cedricdumoulin/components/
> >
> >   I am currently working on the possibility to define or modify the
> > template/component inside the action or inside the jsp. This will be available
> > soon (see a previous mail 'Re: PROPOSAL: Template Screens').
> >   Furthermore, useful Components features will be progressively introduce in
> > Struts version 1.1
> >
> >   For your first question, see intermixed.
> >
> >   Cedric
> >
> > Vincent Harcq wrote:
> >
> > > Hi,
> > >
> > > 1. I am beginning to look at Templating mechanism and so use the example
> > > struts-template using version pre-beta-2 (23/03/01).
> > > The result is a strange for me.  Can somebody explain me this.
> > > On the first page, when I look at the generated code (look at the end of
> > > message), I got something where the side-bar.jsp and header.jsp is included
> > > BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
> > >  should appear first.
> > > Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
> > > browser ?
> > >
> >
> >   What jsp server do you use ? This happens because your server doesn't flush
> > included page.
> >   You can try to use the components library instead of template one, it is fully
> > compatible.
> >
> > >
> > > 2. I was also thinking about another mean of doing templating.  The fact
> > > that I have two create each 2 files (introduction.jsp and introduction.html)
> > > is not really needed if you consider you have a little number of different
> > > templates to work with.
> > > Say you have only two templates (side-bar header content footer) (left-bar
> > > header content right-bar footer), it is too much for me to create each time
> > > the page that will use template:put.
> > > I have done that before I used Struts in a "request processor" by setting
> > > the value of a "content" field, forwarding to one of two pages template1.jsp
> > > and template2.jsp that uses jsp include tags.
> > > My plan was to do that in the findForward() method of ActionForwards and
> > > forward all the time to one of the 2 template pages that I have and setting
> > > the "content" value before.
> > > To speak "philosophically", but wishing to not re-open this debate, the PUSH
> > > method is for me more convenient that the "PULL" one for Page Templating
> > > Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
> > > solve this templating problem.
> > >
> >
> > >
> > > Any ideas ?
> > >
> > > HTML generated:
> > > ---
> > >
> > > Topics
> > >   
> > > 
> > > Introduction 
> > >
> > > 
> > > Using Templates 
> > >
> > > 
> > > Optional Content 
> > > 
> > > ... and more ...
> > >   
> > >
> > > 
> > >
> > >   
> > >   
> > >
> > > 
> > > 
> > >  . . .
> > >
> > > _
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com




RE: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Vincent Harcq

Merci.
I will have a look at it.

For my problem, I use . . . heuh, Tomcat 3.2.1 :(
I just tried with Catalina 4.0b1 and . . .  wow, it works fine :)

Does I need a special parameter in server.xml, something else ???


Vincent

-Message d'origine-
De : Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 28 mars 2001 11:06
A : [EMAIL PROTECTED]
Objet : Re: Template -struts-template and generated HTML / templating
using PUSH model



  Hi Vincent,

  Have a look to Components proposal. Components proposal can be seen as
"extended templates". With Components you can define your template's
contents/attributes in a separate file, and insert content by using its
name. A
content, named a component, can also inherit from other definitions.
Components
proposal also contains other features.
  See (main site) http://www.lifl.fr/~dumoulin/components
 (mirror) http://www.geocities.com/cedricdumoulin/components/

  I am currently working on the possibility to define or modify the
template/component inside the action or inside the jsp. This will be
available
soon (see a previous mail 'Re: PROPOSAL: Template Screens').
  Furthermore, useful Components features will be progressively introduce in
Struts version 1.1

  For your first question, see intermixed.

  Cedric

Vincent Harcq wrote:

> Hi,
>
> 1. I am beginning to look at Templating mechanism and so use the example
> struts-template using version pre-beta-2 (23/03/01).
> The result is a strange for me.  Can somebody explain me this.
> On the first page, when I look at the generated code (look at the end of
> message), I got something where the side-bar.jsp and header.jsp is
included
> BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
>  should appear first.
> Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
> browser ?
>

  What jsp server do you use ? This happens because your server doesn't
flush
included page.
  You can try to use the components library instead of template one, it is
fully
compatible.

>
> 2. I was also thinking about another mean of doing templating.  The fact
> that I have two create each 2 files (introduction.jsp and
introduction.html)
> is not really needed if you consider you have a little number of different
> templates to work with.
> Say you have only two templates (side-bar header content footer) (left-bar
> header content right-bar footer), it is too much for me to create each
time
> the page that will use template:put.
> I have done that before I used Struts in a "request processor" by setting
> the value of a "content" field, forwarding to one of two pages
template1.jsp
> and template2.jsp that uses jsp include tags.
> My plan was to do that in the findForward() method of ActionForwards and
> forward all the time to one of the 2 template pages that I have and
setting
> the "content" value before.
> To speak "philosophically", but wishing to not re-open this debate, the
PUSH
> method is for me more convenient that the "PULL" one for Page Templating
> Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
> solve this templating problem.
>

>
> Any ideas ?
>
> HTML generated:
> ---
>
> Topics
>   
> 
> Introduction 
>
> 
> Using Templates 
>
> 
> Optional Content 
> 
> ... and more ...
>   
>
> 
>
>   
>   
>
> 
> 
>  . . .
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



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




Re: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Christophe Vigny

J'espere, que cela prendra en compte l'internationnalisation. Les fichiers de
resources, ne permettent pas de gerer des pages stylisées.

Ce qui m'interesserait, dans un systeme de templates, ce sont des feuilles de style
(pas xsl) qui s'appliqueraient sur des beans, et qui permettrait au graphiste de
définir globalement comment s'affiche l'objet, puis de l'utiliser via des tags.

a+


Cedric Dumoulin a écrit :

>   Hi Vincent,
>
>   Have a look to Components proposal. Components proposal can be seen as
> "extended templates". With Components you can define your template's
> contents/attributes in a separate file, and insert content by using its name. A
> content, named a component, can also inherit from other definitions. Components
> proposal also contains other features.
>   See (main site) http://www.lifl.fr/~dumoulin/components
>  (mirror) http://www.geocities.com/cedricdumoulin/components/
>
>   I am currently working on the possibility to define or modify the
> template/component inside the action or inside the jsp. This will be available
> soon (see a previous mail 'Re: PROPOSAL: Template Screens').
>   Furthermore, useful Components features will be progressively introduce in
> Struts version 1.1
>
>   For your first question, see intermixed.
>
>   Cedric
>
> Vincent Harcq wrote:
>
> > Hi,
> >
> > 1. I am beginning to look at Templating mechanism and so use the example
> > struts-template using version pre-beta-2 (23/03/01).
> > The result is a strange for me.  Can somebody explain me this.
> > On the first page, when I look at the generated code (look at the end of
> > message), I got something where the side-bar.jsp and header.jsp is included
> > BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
> >  should appear first.
> > Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
> > browser ?
> >
>
>   What jsp server do you use ? This happens because your server doesn't flush
> included page.
>   You can try to use the components library instead of template one, it is fully
> compatible.
>
> >
> > 2. I was also thinking about another mean of doing templating.  The fact
> > that I have two create each 2 files (introduction.jsp and introduction.html)
> > is not really needed if you consider you have a little number of different
> > templates to work with.
> > Say you have only two templates (side-bar header content footer) (left-bar
> > header content right-bar footer), it is too much for me to create each time
> > the page that will use template:put.
> > I have done that before I used Struts in a "request processor" by setting
> > the value of a "content" field, forwarding to one of two pages template1.jsp
> > and template2.jsp that uses jsp include tags.
> > My plan was to do that in the findForward() method of ActionForwards and
> > forward all the time to one of the 2 template pages that I have and setting
> > the "content" value before.
> > To speak "philosophically", but wishing to not re-open this debate, the PUSH
> > method is for me more convenient that the "PULL" one for Page Templating
> > Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
> > solve this templating problem.
> >
>
> >
> > Any ideas ?
> >
> > HTML generated:
> > ---
> >
> > Topics
> >   
> > 
> > Introduction 
> >
> > 
> > Using Templates 
> >
> > 
> > Optional Content 
> > 
> > ... and more ...
> >   
> >
> > 
> >
> >   
> >   
> >
> > 
> > 
> >  . . .
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com




Re: Template -struts-template and generated HTML / templating using PUSH model

2001-03-28 Thread Cedric Dumoulin


  Hi Vincent,

  Have a look to Components proposal. Components proposal can be seen as
"extended templates". With Components you can define your template's
contents/attributes in a separate file, and insert content by using its name. A
content, named a component, can also inherit from other definitions. Components
proposal also contains other features.
  See (main site) http://www.lifl.fr/~dumoulin/components
 (mirror) http://www.geocities.com/cedricdumoulin/components/

  I am currently working on the possibility to define or modify the
template/component inside the action or inside the jsp. This will be available
soon (see a previous mail 'Re: PROPOSAL: Template Screens').
  Furthermore, useful Components features will be progressively introduce in
Struts version 1.1

  For your first question, see intermixed.

  Cedric

Vincent Harcq wrote:

> Hi,
>
> 1. I am beginning to look at Templating mechanism and so use the example
> struts-template using version pre-beta-2 (23/03/01).
> The result is a strange for me.  Can somebody explain me this.
> On the first page, when I look at the generated code (look at the end of
> message), I got something where the side-bar.jsp and header.jsp is included
> BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
>  should appear first.
> Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
> browser ?
>

  What jsp server do you use ? This happens because your server doesn't flush
included page.
  You can try to use the components library instead of template one, it is fully
compatible.

>
> 2. I was also thinking about another mean of doing templating.  The fact
> that I have two create each 2 files (introduction.jsp and introduction.html)
> is not really needed if you consider you have a little number of different
> templates to work with.
> Say you have only two templates (side-bar header content footer) (left-bar
> header content right-bar footer), it is too much for me to create each time
> the page that will use template:put.
> I have done that before I used Struts in a "request processor" by setting
> the value of a "content" field, forwarding to one of two pages template1.jsp
> and template2.jsp that uses jsp include tags.
> My plan was to do that in the findForward() method of ActionForwards and
> forward all the time to one of the 2 template pages that I have and setting
> the "content" value before.
> To speak "philosophically", but wishing to not re-open this debate, the PUSH
> method is for me more convenient that the "PULL" one for Page Templating
> Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
> solve this templating problem.
>

>
> Any ideas ?
>
> HTML generated:
> ---
>
> Topics
>   
> 
> Introduction 
>
> 
> Using Templates 
>
> 
> Optional Content 
> 
> ... and more ...
>   
>
> 
>
>   
>   
>
> 
> 
>  . . .
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com




Template -struts-template and generated HTML / templating using PUSH model

2001-03-27 Thread Vincent Harcq

Hi,

1. I am beginning to look at Templating mechanism and so use the example
struts-template using version pre-beta-2 (23/03/01).
The result is a strange for me.  Can somebody explain me this.
On the first page, when I look at the generated code (look at the end of
message), I got something where the side-bar.jsp and header.jsp is included
BEFORE the  tag; while from what I see in chapterTemplate.jsp, the
 should appear first.
Is there a problem somewhere ?  Does somebody is aware of that ?  Is it my
browser ?

2. I was also thinking about another mean of doing templating.  The fact
that I have two create each 2 files (introduction.jsp and introduction.html)
is not really needed if you consider you have a little number of different
templates to work with.
Say you have only two templates (side-bar header content footer) (left-bar
header content right-bar footer), it is too much for me to create each time
the page that will use template:put.
I have done that before I used Struts in a "request processor" by setting
the value of a "content" field, forwarding to one of two pages template1.jsp
and template2.jsp that uses jsp include tags.
My plan was to do that in the findForward() method of ActionForwards and
forward all the time to one of the 2 template pages that I have and setting
the "content" value before.
To speak "philosophically", but wishing to not re-open this debate, the PUSH
method is for me more convenient that the "PULL" one for Page Templating
Mechanism.  But I do not want to "mix" Velocity and Struts """"only""" to
solve this templating problem.

Any ideas ?


HTML generated:
---

Topics
  

Introduction 


Using Templates 


Optional Content 

... and more ...
  


   
  
  
   


 . . .


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




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: My struts-template is broken

2001-03-08 Thread Cedric Dumoulin


   Certainly because Components do the flush by default.

Cedric

Maya Muchnik wrote:

> Hi,
> I have the similar result for Tomcat 3.1. But I do not have the problem with
> the Cerdric's "Components". Why do they react different?
> Maya
>
> Tom Miller wrote:
>
> > Turned out the problem was using Tomcat 3.1, templates seem to work properly
> > with Tomcat 3.2.1.
> >
> > Tom Miller wrote:
> >
> > > Whew! Somehow or other my 1.0b1 struts-template webapp is refusing to
> > > place the header, sidebar, content and footer in their respective places
> > > as per the template. Instead these components are placed one after
> > > another vertically down my browser page.
> > >
> > > I've redeployed the 1.0b1 struts-template.war, rebooted Tomcat, rebooted
> > > the machine, started over. Tried Netscape and IE5. Even replicated the
> > > process on another computer. Does anyone know why this might happen? It
> > > may a cockpit error, but I'm at a loss. I think I saw it working
> > > correctly the first time I looked at it today, but now I'm doubting that
> > > memory.
> > >
> > > TIA
> > > --
> > > Tom Miller
> > > Miller Associates, Inc.
> > > [EMAIL PROTECTED]
> > > 641.469.3535 Phone
> > > 413.581.6326 FAX
> >
> > --
> > Tom Miller
> > Miller Associates, Inc.
> > [EMAIL PROTECTED]
> > 641.469.3535 Phone
> > 413.581.6326 FAX




Re: My struts-template is broken

2001-03-08 Thread Maya Muchnik

Hi,
I have the similar result for Tomcat 3.1. But I do not have the problem with
the Cerdric's "Components". Why do they react different?
Maya

Tom Miller wrote:

> Turned out the problem was using Tomcat 3.1, templates seem to work properly
> with Tomcat 3.2.1.
>
> Tom Miller wrote:
>
> > Whew! Somehow or other my 1.0b1 struts-template webapp is refusing to
> > place the header, sidebar, content and footer in their respective places
> > as per the template. Instead these components are placed one after
> > another vertically down my browser page.
> >
> > I've redeployed the 1.0b1 struts-template.war, rebooted Tomcat, rebooted
> > the machine, started over. Tried Netscape and IE5. Even replicated the
> > process on another computer. Does anyone know why this might happen? It
> > may a cockpit error, but I'm at a loss. I think I saw it working
> > correctly the first time I looked at it today, but now I'm doubting that
> > memory.
> >
> > TIA
> > --
> > Tom Miller
> > Miller Associates, Inc.
> > [EMAIL PROTECTED]
> > 641.469.3535 Phone
> > 413.581.6326 FAX
>
> --
> Tom Miller
> Miller Associates, Inc.
> [EMAIL PROTECTED]
> 641.469.3535 Phone
> 413.581.6326 FAX




  1   2   >