Foros de discusión

can i replace velocity with jsp

thumbnail
Shivaji C, modificado hace 11 años.

can i replace velocity with jsp

Regular Member Mensajes: 143 Fecha de incorporación: 18/10/12 Mensajes recientes
Hi, I dont have knowledge in velocity, so can i replace velocity with simple jsps.
thumbnail
Nikhil Nishchal, modificado hace 11 años.

RE: can i replace velocity with jsp

Regular Member Mensajes: 177 Fecha de incorporación: 22/06/12 Mensajes recientes
Shivaji C:
Hi, I dont have knowledge in velocity, so can i replace velocity with simple jsps.


What are you trying to do.
velocity you get in different places as (template and theme).
where as Jsp in different as portlet.
Both are server side.
BTW velocity also used Jave services and model, so modify them any one.
Ex:
tou can acces $themeDisplay in Velocity and same Class in JSP.
Util service is also for there in both.
Please elaborate you requirement?
thumbnail
Shivaji C, modificado hace 11 años.

RE: can i replace velocity with jsp

Regular Member Mensajes: 143 Fecha de incorporación: 18/10/12 Mensajes recientes
Nikhil,
My requirement is very simple, i dont have knowledge in velocity as well as structs, so i want to replace them both with jsp and spring, so is it possible?
thumbnail
Nikhil Nishchal, modificado hace 11 años.

RE: can i replace velocity with jsp

Regular Member Mensajes: 177 Fecha de incorporación: 22/06/12 Mensajes recientes
Hi Shivaji,
According to this docs.
http://content.liferay.com/4.0.0/docs/developers/ch04s01.html
you can create theme in JSP. but better to use Velocity.
My question was where you want to use JSP in place of Velocity.
what you want to devlop?

In case of theme you can do it with JSP ( i din't used it , may be above link help you).
and in case of WC template you can use other language option liferay gives you as FTL, XSL etc.

BTW velocity is simple to learn, you can get lots of docs on community for this.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: can i replace velocity with jsp

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Liferay used to use jsp instead of velocity so you're able to use jsp. However, current liferay theme are written in velocity so you'll have to rewrite liferay's current themes in jsp.