aspose file tools*
The moose likes Struts and the fly likes [Ask] Template or What? to be a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[Ask] Template or What? to be a "View" technology for Struts2" Watch "[Ask] Template or What? to be a "View" technology for Struts2" New topic
Author

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

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

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..)


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

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

Joined: Oct 29, 2001
Posts: 8927
    
    9

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!).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Apr 07, 2009
Posts: 489

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 :)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: [Ask] Template or What? to be a "View" technology for Struts2