• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!).
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic