• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Ask] Template or What? to be a "View" technology for Struts2

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..

I have some a little question about Struts2..
What is a good technology for "View" on MVC which use Struts2 as a "Controller"...

now i just use Velocity for View..
i see many Struts2 programmer use JSP for their View..

which one is good for Struts2?..

CMIIW

Regards,

W
(Sorry my english isn't good, i can't write a english fluently..)
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all i have some question..

is it good choice to use JSP with JSTL for Struts2?..
or
is it good choice to use Velocity with HTML classic?..

Thank's in advance..
(Sorry my english isn't too good)
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leonardo Carreira wrote:
which one is good for Struts2?..


The answer is "it depends". If a view implementation does what you need it to do , it is "good enough". If you need or like a feature a particular view has, then that's a good reason to use it in favor of an alternative. Personally, I use the Struts tags with plain JSP's, more out of habit than any real reason.

Leonardo Carreira wrote:
(Sorry my english isn't good, i can't write a english fluently..)


Your English is fine. Much better than my French (it's been years since I've used it!).
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP has the strongest support. FreeMarker is well-supported but there are a few issues when using some of the S2 tags because of the way FreeMarker works. Velocity's support is there, but has somewhat tapered off. I'd recommend either JSP or FreeMarker, but Velocity may suit your needs too.
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:JSP has the strongest support. FreeMarker is well-supported but there are a few issues when using some of the S2 tags because of the way FreeMarker works. Velocity's support is there, but has somewhat tapered off. I'd recommend either JSP or FreeMarker, but Velocity may suit your needs too.


Alright.. :)

Thank's David..
now i just use Velocity for my view, maybe in my other case i wanna to implement JSP :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic