Foren
can i replace velocity with jsp
Shivaji C, geändert vor 11 Jahren.
can i replace velocity with jsp
Regular Member Beiträge: 143 Beitrittsdatum: 18.10.12 Neueste Beiträge
Hi, I dont have knowledge in velocity, so can i replace velocity with simple jsps.
Nikhil Nishchal, geändert vor 11 Jahren.
RE: can i replace velocity with jsp
Regular Member Beiträge: 176 Beitrittsdatum: 22.06.12 Neueste BeiträgeShivaji 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?
Shivaji C, geändert vor 11 Jahren.
RE: can i replace velocity with jsp
Regular Member Beiträge: 143 Beitrittsdatum: 18.10.12 Neueste Beiträge
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?
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?
Nikhil Nishchal, geändert vor 11 Jahren.
RE: can i replace velocity with jsp
Regular Member Beiträge: 176 Beitrittsdatum: 22.06.12 Neueste Beiträge
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.
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.
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: can i replace velocity with jsp
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
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.