Quick template question

2003-09-10 Thread Stephane Grenier
Hello all.

I've got the following template file:

%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %
template:insert template='/tilesExample.jsp'
 template:put name='title' content='Templates' direct='true'/
 template:put name='header' content='/header.html' /
 template:put name='sidebar' content='/menu.html' /
 template:insert name='content' content='/content.html' /
 template:put name='footer' content='/footer.html' /
/template:insert

Is there a mechanism to have just one file rather than 2 seperate files for the 
content ? Is it possible to at least replace the line:

 template:insert name='content' content='/content.html' /

with just the html code for that page directly in this file ? And if so how would I do 
that ?

Thank you,
Stephane




Re: Template Question

2002-02-03 Thread Konstantina Stamopoulou

Thanx Cedric,

I realized that a few days later, so I used a .jsp with frames where one of
the frames loads the page.

Regards,
Konstantina

- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 01, 2002 6:39 PM
Subject: Re: Template Question



   Hi,

Content of put tag can only be a jsp local to current web
application. It
 can't be an url starting with http://...

 Cedric

 Konstantina Stamopoulou wrote:

  Hello,
  I'm a beginner to Struts, and I'm using its template tag library for my
web
  application.
   I would like to  load in one of the areas of the template a URL.
  To be more specific what I'm trying to do is the following:
 
  template:insert template='/infotemplate.jsp'
template:put name='title' content='Subscription information'
  direct='true'/
template:put name='sidebar' content='/details.jsp'/
template:put name='content' content='http://www.in.gr'/
template:put name='footer' content='/footer.html'/
 
  /template:insert
 
  The result of this is a big Exception:
 
  java.io.IOException: the filename, directory,or volume label syntax is
  incorrect.
 
  My template is the following:
 
  html
  head
  titletemplate:get name='title'//title
  /head
  body background='graphics/blueAndWhiteBackground.gif'
 
  table
 tr valign='top'
tdtemplate:get name='sidebar'//td
tdtable
  trtdtemplate:get name='header'//td/tr
  trtdtemplate:get name='content'//td/tr
  trtdtemplate:get name='footer'//td/tr
/table
/td
 /tr
  /table
  /body
  /html
 
  I'm I doing something wrong or the thing I'm trying to do is not
possible
  using templates? Can anyone give me any suggestion on what I should use
to
  overcome this problem?
 
  Thank U in advance,
  Konstantina
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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




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




Re: Template Question

2002-02-01 Thread Cedric Dumoulin


  Hi,

   Content of put tag can only be a jsp local to current web application. It
can't be an url starting with http://...

Cedric

Konstantina Stamopoulou wrote:

 Hello,
 I'm a beginner to Struts, and I'm using its template tag library for my web
 application.
  I would like to  load in one of the areas of the template a URL.
 To be more specific what I'm trying to do is the following:

 template:insert template='/infotemplate.jsp'
   template:put name='title' content='Subscription information'
 direct='true'/
   template:put name='sidebar' content='/details.jsp'/
   template:put name='content' content='http://www.in.gr'/
   template:put name='footer' content='/footer.html'/

 /template:insert

 The result of this is a big Exception:

 java.io.IOException: the filename, directory,or volume label syntax is
 incorrect.

 My template is the following:

 html
 head
 titletemplate:get name='title'//title
 /head
 body background='graphics/blueAndWhiteBackground.gif'

 table
tr valign='top'
   tdtemplate:get name='sidebar'//td
   tdtable
 trtdtemplate:get name='header'//td/tr
 trtdtemplate:get name='content'//td/tr
 trtdtemplate:get name='footer'//td/tr
   /table
   /td
/tr
 /table
 /body
 /html

 I'm I doing something wrong or the thing I'm trying to do is not possible
 using templates? Can anyone give me any suggestion on what I should use to
 overcome this problem?

 Thank U in advance,
 Konstantina

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


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




Template Question

2002-01-28 Thread Konstantina Stamopoulou

Hello,
I'm a beginner to Struts, and I'm using its template tag library for my web
application.
 I would like to  load in one of the areas of the template a URL.
To be more specific what I'm trying to do is the following:

template:insert template='/infotemplate.jsp'
  template:put name='title' content='Subscription information'
direct='true'/
  template:put name='sidebar' content='/details.jsp'/
  template:put name='content' content='http://www.in.gr'/
  template:put name='footer' content='/footer.html'/

/template:insert

The result of this is a big Exception:

java.io.IOException: the filename, directory,or volume label syntax is
incorrect.


My template is the following:

html
head
titletemplate:get name='title'//title
/head
body background='graphics/blueAndWhiteBackground.gif'

table
   tr valign='top'
  tdtemplate:get name='sidebar'//td
  tdtable
trtdtemplate:get name='header'//td/tr
trtdtemplate:get name='content'//td/tr
trtdtemplate:get name='footer'//td/tr
  /table
  /td
   /tr
/table
/body
/html


I'm I doing something wrong or the thing I'm trying to do is not possible
using templates? Can anyone give me any suggestion on what I should use to
overcome this problem?

Thank U in advance,
Konstantina





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




Template Question: does errorPage directive need to be placed in each page?

2001-08-01 Thread Bill Clinton

Hello,
 I have been using struts for a little while now, but I am just 
starting to try out the template tags.  So far, I have been very 
impressed.  But I have a question about the errorPage directive.  I was 
hoping that I would only need to use it once in the template I defined, 
but that does not seem to work when exceptions happen in one of the 
pages that make up the template.
 So, I tried placing the errorPage directive in each page in the 
template, but that had the undesireable effect of inserting the 
errorpage into the template in the place of the page with an exception. 
  For Example, if I have a template defined that has a side menubar, and 
there is an exception in the menubar, the error page would occupy the 
position of the menubar, instead of the diplaying the errorpage as its 
own page.
Does anyone have any input on this? I searched the archive and did 
not find anything on this, so I am guessing (hoping) that I am missing 
something.

Thanks in advance for any replies,
Bill




Template Question

2001-06-21 Thread Klaus Thiele

Hi,

is there a chance, to set the title via a bean:message ... /
within a template?

template:insert template='pageTemplate.jsp'
   template:put name='title' content='how_to_dobean:message...'
  direct='true'/
   [...]
/template:insert

thanks a lot
  klaus

--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

 Your mouse has moved.
  Windows must be restarted for the change to take effect.



RE: Template Question

2001-06-21 Thread Mark Schenk

 Hi,

 is there a chance, to set the title via a bean:message ... /
 within a template?

 template:insert template='pageTemplate.jsp'
template:put name='title' content='how_to_dobean:message...'
   direct='true'/
[...]
 /template:insert

 thanks a lot
   klaus

Hi Klaus,

I had exactly this question once. Here's how to do it:

template:insert template='pageTemplate.jsp'
template:put name='title'
bean:message...
/template:put

So basically, leave out the content par. and put the content in the
body of your put tag.


Mark Schenk |   Ceci n'est pas une signature
Blackboard Project Manager  |
Delft University of Technology  |E-mail: [EMAIL PROTECTED]
Dept.: DTO  |Phone:  +31 152785448 (85448)
Room: LB00.680  |Fax:+31 152786359

-