Katari soporta Spring MVC annotations? (URL rewriting SEO-friendly)

50 views
Skip to first unread message

Martin Olivera

unread,
Feb 9, 2012, 8:13:18 AM2/9/12
to katar...@googlegroups.com
Estabamos viendo como implementar URL rewriting para tener friendly URLs para SEO

enontre esta opcion que me gustaria probar, es compatible con Katari? hay alguna otra mejor?


If you're using the new Spring-MVC annotations, you can use the @RequestMapping and @PathVariable annotations:

@RequestMapping("/articles/{subject}")
public ModelAndView findArticleBySubject(@PathVariable("subject") String subject)
{
   
// strip out the '-' character from the subject
   
// then the usual logic returning a ModelAndView or similar
}

I think it is still necessary to strip out the - character.

Andres Postiglioni

unread,
Feb 9, 2012, 8:26:45 AM2/9/12
to katar...@googlegroups.com
Me recordas la version de Katari que estamos usando? Ojo que under-the-hoods es Spring 2. Me parece que esa annotation es de Spring 3.




--
You received this message because you are subscribed to the Google Groups "katari-user" group.
To post to this group, send email to katar...@googlegroups.com.
To unsubscribe from this group, send email to katari-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/katari-user?hl=en.

Martin Olivera

unread,
Feb 9, 2012, 10:21:40 AM2/9/12
to katar...@googlegroups.com


2012/2/9 Andres Postiglioni <andres.po...@globant.com>

Me recordas la version de Katari que estamos usando? Ojo que under-the-hoods es Spring 2. Me parece que esa annotation es de Spring 3.

estamos usando Katari 0.31

buen punto lo de SP3... sabes si igualmente estas cosas se podran meter por XML, aunque no sean annotations?
 

Pablo Graña

unread,
Feb 10, 2012, 4:34:58 PM2/10/12
to katar...@googlegroups.com
spring 3 se integro en katari 0.35. No conozco nada para usar ese tipo de urls en spring 2.

salute
Pablo Gra\~na
Chief Architect
Globant
Arg Office: +54 (11) 4109 1743
UK  Office: +44 (20) 7043 8269 int 8043
US  Office: +1 (212) 400 7686 int 8043

Martin Olivera

unread,
Feb 12, 2012, 8:12:33 PM2/12/12
to katar...@googlegroups.com

Y que opinan, Pablo, Andres, de hacer upgrade a katari 0.35 o superior para esto? Que tipo de riesgos corremos por el salto de version?

Pablo Graña

unread,
Feb 14, 2012, 3:22:52 PM2/14/12
to katar...@googlegroups.com
fijate en las release notes, suele decir que cambios importantes hubo. No se como puede afectar tu app la migracion a spring 3 ....

saludos.
Reply all
Reply to author
Forward
0 new messages