[Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Riccardo Cohen
Hello

I didn't have yet the opportunity to work with search engine friendly 
urls with resin (I did it with apache/php). I suppose that there must be 
a set of servlet-mapping and rewrite-dispatch in conf and some 
url-dedicated servlets in the application.

I wonder if there is any kind of good practice with resin 
configuration to build SEF web sites.

In the wiki I found rewrite rules for php CMS, but not for java apps.
(I use resin 3,2,0)

Thanks a lot.
-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Pomgranate - jars in project-jars don't have pom.xml

2009-10-30 Thread Horacy Oliwka

Hello,
The whole Pomgranate is really neat, but I cannot figure out one thing:
I have a working project with maven, with all dependencies configured in
projects pom.xml file. I can build a webapp war etc.

To use pomgranate it says: take the jars from the war and put them to
project-jars in resin directory and make sure pom.xml is in war's
WEB-INF.

When I deploy the war, resin spots pom.xml and tries to resolve
dependencies; unfortunately it cannot find any artifacts in its
repository.

I suppose this is because all the jars I have put there do not have
META-INF/maven...pom.xml files packed in them. They are just normal jars
like those downloaded by maven.
What should I do?
Should I somehow generate jars with pom.xml files inside? Or should I
manually copy the foo-bar-1.0.pom files from the repository on my devel
machine to the resin's project-jars directory?


Best regards,
Horace




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Wesley Wu
You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter.

I wrote a similar filter doing the same thing which loads rewrite config
from database.

2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr

 Hello

 I didn't have yet the opportunity to work with search engine friendly
 urls with resin (I did it with apache/php). I suppose that there must be
 a set of servlet-mapping and rewrite-dispatch in conf and some
 url-dedicated servlets in the application.

 I wonder if there is any kind of good practice with resin
 configuration to build SEF web sites.

 In the wiki I found rewrite rules for php CMS, but not for java apps.
 (I use resin 3,2,0)

 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org




 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Riccardo Cohen
Thanks Wesley I'll try to use filter.
Now in term of performance, isn't it better to integrate the url 
processing directly into the controller servlet ?

Wesley Wu wrote:
 You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter.
 
 I wrote a similar filter doing the same thing which loads rewrite config 
 from database.
 
 2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr 
 mailto:r...@architectedulogiciel.fr
 
 Hello
 
 I didn't have yet the opportunity to work with search engine friendly
 urls with resin (I did it with apache/php). I suppose that there must be
 a set of servlet-mapping and rewrite-dispatch in conf and some
 url-dedicated servlets in the application.
 
 I wonder if there is any kind of good practice with resin
 configuration to build SEF web sites.
 
 In the wiki I found rewrite rules for php CMS, but not for java apps.
 (I use resin 3,2,0)
 
 Thanks a lot.
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com mailto:resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Tabulation evil

2009-10-30 Thread Scott Ferguson

On Oct 27, 2009, at 4:41 PM, Jeff Schnitzer wrote:

 This is really just a point of curiosity...

 What editor are you guys using at Caucho?  I've noticed all the code
 is formatted using a bizarre combination of tabs and spaces, like
 this:

It's supposed to be 1 indent = 2 spaces with no tabs.

-- Scott


 1 indent = 4 spaces
 2 indents = 1 tab
 3 indents = 1 tab + 4 spaces
 4 indents = 2 tabs
 5 indents = 2 tabs + 4 spaces

 ...which, setting aside longstanding religious wars about tabs vs
 spaces, seems to combine the worst characteristics of each approach.
 I'm not really complaining, since Eclipse will fix it for me with
 two mouse clicks, but I'm terribly curious to know what editor can
 even be configured to abuse code like that :-)

 Jeff


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Riccardo Cohen
I understand your point of view : separate url management and 
application logic. It seems a good practice.

In the same time this probably comes from the idea that search engine 
friendly urls are added to the application, which basically does not 
need it.
On one hand it is true. The url /user/name is an alias of 
/servlet?command=showuserid=1354 in a functionnal point of view.
On the other hand, you may think of the SEF url as a request by itself, 
and the controller is in charge of handling requests, of any syntax. So 
if my controller parses the url /servlet?command=showuserid=1354, why 
couldn't it parse the url /user/name instead directly ? This removes 
from the application one level of control and complexity .


Am-I right ?


Wesley Wu wrote:
 Not recommended.
 
 I think filter should handle this, which is not relative to business logic.
 
 2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr 
 mailto:r...@architectedulogiciel.fr
 
 Thanks Wesley I'll try to use filter.
 Now in term of performance, isn't it better to integrate the url
 processing directly into the controller servlet ?
 
 Wesley Wu wrote:
   You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter.
  
   I wrote a similar filter doing the same thing which loads rewrite
 config
   from database.
  
   2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr
 mailto:r...@architectedulogiciel.fr
   mailto:r...@architectedulogiciel.fr
 mailto:r...@architectedulogiciel.fr
  
   Hello
  
   I didn't have yet the opportunity to work with search engine
 friendly
   urls with resin (I did it with apache/php). I suppose that
 there must be
   a set of servlet-mapping and rewrite-dispatch in conf and
 some
   url-dedicated servlets in the application.
  
   I wonder if there is any kind of good practice with resin
   configuration to build SEF web sites.
  
   In the wiki I found rewrite rules for php CMS, but not for
 java apps.
   (I use resin 3,2,0)
  
   Thanks a lot.
   --
   Riccardo Cohen
   Architecte du Logiciel
   http://www.architectedulogiciel.fr
   +33 (0)6.09.83.64.49
   Membre du réseau http://www.reflexe-conseil-centre.org
  
  
  
  
   ___
   resin-interest mailing list
   resin-interest@caucho.com mailto:resin-interest@caucho.com
 mailto:resin-interest@caucho.com mailto:resin-interest@caucho.com
   http://maillist.caucho.com/mailman/listinfo/resin-interest
  
  
  
  
 
  
   ___
   resin-interest mailing list
   resin-interest@caucho.com mailto:resin-interest@caucho.com
   http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 --
 Riccardo Cohen
 Architecte du Logiciel
 http://www.architectedulogiciel.fr
 +33 (0)6.09.83.64.49
 Membre du réseau http://www.reflexe-conseil-centre.org
 
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com mailto:resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
 
 
 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49
Membre du réseau http://www.reflexe-conseil-centre.org




___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest