Re: Tiles 2

2007-06-13 Thread Ted Husted

Yes, we generally add an entry to a .htaccess file.

  Redirect permanent /tiles  http://tiles.apache.org/

and even try to keep a copy in the repository!

* http://svn.apache.org/viewvc/struts/site/src/site/resources/

-Ted.

On 6/12/07, Paul Benedict [EMAIL PROTECTED] wrote:

Can't we use an HTTPD redirect?

Antonio Petrelli wrote:
 2007/6/12, Paul Benedict [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 I am +1 with the redirect -- a permanent one too.



 How can this be done  using Maven site plugin? A meta redirect is
 awful from my POV.
 Since I don't know how to do it, I will ask it in Maven users mailing
 list too.

 Antonio



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





--
HTH, Ted http://www.husted.com/ted/blog/

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



Re: Tiles 2

2007-06-12 Thread Paul Benedict

Can't we use an HTTPD redirect?

Antonio Petrelli wrote:
2007/6/12, Paul Benedict [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]:


I am +1 with the redirect -- a permanent one too.



How can this be done  using Maven site plugin? A meta redirect is 
awful from my POV.
Since I don't know how to do it, I will ask it in Maven users mailing 
list too.


Antonio




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



Re: Tiles 2

2007-06-11 Thread Antonio Petrelli

2007/6/10, Paul Benedict [EMAIL PROTECTED]:


* The TLP address exists but it is not listed on Apache home page




Thanks Paul, but how can it be corrected? Is there a repository for Apache
home page?

* http://struts.apache.org/struts-sandbox/tiles/ is what I find in a

google search for Tiles 2. This appears to be the old site, right?



Right!


I think it should be deleted.



+1


Perhaps a redirect should be in place too?



That would be nice. I moved some links in the SVN repo, but the site has not
been published yet.

Thanks again
Antonio


Re: Tiles 2

2007-06-11 Thread Paul Benedict

The main website has been updated.

I am +1 with the redirect -- a permanent one too.

Paul

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



Re: Tiles 2 - how to get more error info?

2006-12-31 Thread Antonio Petrelli

Stone, Sam ha scritto:

Am getting ServletException while including page (see EX. 1 below).
How can I get more specific information?
 
My insert looks as follows:

tiles:insertDefinition name=site.login ignore=true/
...
org.apache.tiles.taglib.ContainerTagSupport  TRAS0014I: The following
exception was logged org.apache.tiles.TilesException: ServletException
while including page.
  


I think that now (in the HEAD) the error is logged with more detail.

Antonio


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



Re: Tiles 2 jdk

2006-12-22 Thread Wendy Smoak

On 12/13/06, Stone, Sam [EMAIL PROTECTED] wrote:

I've got a tiles-core-2.0-SNAPSHOT.jar (128,880 bytes) from 9/14/2006
that is working fine with my project under JDK 1.4.2. How can I get the
source code for this date? If not that, then the latest source code
known to work with JDK 1.4?


I never have much luck with svn and dates [1], but looking at the
commits@ list, on 9/14 we were around r443203.  So, try:
  svn co http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles -r443203

The svn log of pom.xml shows the compiler config being changed to JDK
1.5 on 10/31:
  http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/pom.xml?view=log

[1] If I check out with -r {2006-09-14} I get r462213 instead.

--
Wendy

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



RE: Tiles 2 jdk

2006-12-22 Thread Stone, Sam
Thanks Wendy. I haven't built it yet but r443203 looks pretty good.

Sam

---

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 9:20 AM
To: Struts Developers List
Subject: Re: Tiles 2 jdk

On 12/13/06, Stone, Sam [EMAIL PROTECTED] wrote:
 I've got a tiles-core-2.0-SNAPSHOT.jar (128,880 bytes) from 9/14/2006
 that is working fine with my project under JDK 1.4.2. How can I get
the
 source code for this date? If not that, then the latest source code
 known to work with JDK 1.4?

I never have much luck with svn and dates [1], but looking at the
commits@ list, on 9/14 we were around r443203.  So, try:
   svn co http://svn.apache.org/repos/asf/struts/sandbox/trunk/tiles
-r443203

The svn log of pom.xml shows the compiler config being changed to JDK
1.5 on 10/31:
 
http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/pom.xml?view=log

[1] If I check out with -r {2006-09-14} I get r462213 instead.

-- 
Wendy

-
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: Tiles 2 jdk

2006-12-13 Thread Stone, Sam
I've got a tiles-core-2.0-SNAPSHOT.jar (128,880 bytes) from 9/14/2006
that is working fine with my project under JDK 1.4.2. How can I get the
source code for this date? If not that, then the latest source code
known to work with JDK 1.4?

Sam

 
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 13, 2006 8:10 AM
To: Struts Developers List
Subject: RE: Tiles 2 jdk

From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
 Stone, Sam wrote:
  Before I go through the trouble of building this and portlet and
  wahtever else I might need - will it all compile with JDK 1.4? I've
  been
  using an older snapshot jar with WebSphere 5 (JDK 1.4.2) and I need
  to either:
 
 No, by default they will not. However, you should be able to utilize
 the maven retrotranslator goal - which will make 1.5 code and back-
 port it.

I am not convinced this works anymore, re: my comment regarding a
1.5-specific ThreadLocal method call that retro did not translate into
anything 1.4-ish (ThreadLocal.remove, perhaps? I don't recall.)

Dave


-
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: Tiles 2 jdk

2006-12-12 Thread David H. DeWolf
Please continue to ask these questions on the mailing lists so that 
everyone can benefit from the answers. . .



Stone, Sam wrote:
Before I go through the trouble of building this and portlet and 
wahtever else I might need - will it all compile with JDK 1.4? I've been 
using an older snapshot jar with WebSphere 5 (JDK 1.4.2) and I need to 
either:


No, by default they will not. However, you should be able to utilize the 
maven retrotranslator goal - which will make 1.5 code and back-port it.



a) get a new build working from the current source code OR
? I'm not sure I understand.  Are you looking for the retrotranslator 
jar to be published as a snapshot?



b) get the last source code that does work with JDK 1.4


We are not directly supporting 1.4.



Sam


-Original Message-
From: David H. DeWolf on behalf of David H. DeWolf
Sent: Tue 12/12/2006 6:25 PM
To: Struts Developers List
Subject: Re: Where is Latest tiles-test-2.0-SNAPSHOT.war???

Yes, tiles2 will be based off of 1.5.  My guess would be that this
change was made about 4 weeks ago. . .when it's released, we'll provide
a retro-translator version.


David

Stone, Sam wrote:
  Thanks. Did this change from jdk 1.4 to 1.5 in the last few weeks?
 
  Sam
 
 
  -Original Message-
  From: David H. DeWolf [mailto:[EMAIL PROTECTED] On Behalf Of David H.
  DeWolf
  Sent: Tuesday, December 12, 2006 10:45 AM
  To: Struts Developers List
  Subject: Re: Where is Latest tiles-test-2.0-SNAPSHOT.war???
 
  The most recent 'stable' snapshot is:
 
  2.0-r480013-SNAPSHOT
 
  and is in the snapshot repo:
 
  http://people.apache.org/repo/m2-snapshot-repository/
 
  If you need consistency, this one won't be changed underneath you.
 
 
  David
 
 
  Stone, Sam wrote:
  Where is latest downloadable tiles-test war file?
 
  -
  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]
 
 
  -
  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]




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



Re: Tiles 2 - How to dispatch to tiles servlet????

2006-12-05 Thread Antonio Petrelli
First of all this is a typical question to be submitted in Struts Users 
mailing list.

Anyway, since Tiles 2 is under development, I will answer anyway.

Stone, Sam ha scritto:

I can instantiate the DefinitionsFactory. I can get a
ComponentDefinition OK. I cannot figure out how to forward the request
from MyServlet to dispatch to my tiles servlet. Any help is greatly
appreciated.
  
Err... you can't, since TilesServlet does not accept connections (it is 
used without a servlet-mapping).

Anyway you can forward to (or include) your definition.

snip
   ComponentContext context = 
TilesAccess.getContainer(request.getSession().getServletContext())

   .render(request, response, my.definition.name);
/snip

HTH
Antonio

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



Re: Tiles 2 - How to dispatch to tiles servlet????

2006-12-05 Thread David H. DeWolf

Moving to Struts Users list, please reply there.

Antonio Petrelli wrote:
First of all this is a typical question to be submitted in Struts Users 
mailing list.

Anyway, since Tiles 2 is under development, I will answer anyway.

Stone, Sam ha scritto:

I can instantiate the DefinitionsFactory. I can get a
ComponentDefinition OK. I cannot figure out how to forward the request
from MyServlet to dispatch to my tiles servlet. Any help is greatly
appreciated.
  
Err... you can't, since TilesServlet does not accept connections (it is 
used without a servlet-mapping).

Anyway you can forward to (or include) your definition.

snip
   ComponentContext context = 
TilesAccess.getContainer(request.getSession().getServletContext())

   .render(request, response, my.definition.name);
/snip


Just to avoid confusion, I don't think Antonio meant to imply that the 
Container.render returns a ComponentContext.


TilesContainer tc = TilesAccess.getContainer(servletContext)
ComponentContext context = tc.getComponentContext(req, res);
// do something with the component context if needed,
tc.render(req, res, my.definition.name);


David



HTH
Antonio

-
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: Tiles 2 - How to dispatch to tiles servlet????

2006-12-05 Thread Antonio Petrelli

David H. DeWolf ha scritto:
Just to avoid confusion, I don't think Antonio meant to imply that the 
Container.render returns a ComponentContext.


Err... right, my confusion was due to wrong cut'n'paste :-)

Antonio

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