JSF requires Struts?

Hi,
I see a lot of examples of JSP and Struts and seems that one requires the other, it is true?
Its is true I need Struts for use JSF?
Thanks,
Lorenzo

No. JSF does not require Struts. There is an optional Struts-JSF integration library, developed by Struts, that allows integration between the two technologies.
-- Adam Winer (EG member)

Similar Messages

  • JSF or Struts

    Hi,
    We have a web application designed using MVC framework. Besides a web view, we now need to support mobile users using WML.
    We are considering JSF and struts (customising struts to handle WML client).
    I have read that JSF supports disparate clients efficiently using RenderKits.
    Can anyone suggest whether JSF has an easy to use WML RenderKit. How does a renderkit work? Is there any good documentation online?
    Is there a Renderkit for WML readily avaialble or will I have to make one? I know there was a link posted in one of the questions in this forum, but it is a dead link.
    Thanks in advance,
    Harsha

    JSF is better than Sturts. ("Until now there is no sucess story on JSF.")
    Becoz, Struts inventor has been hired by SunMicroSystems to work with JSF. The same guy mentioned in an interview, that struts developement will be stopped in future.
    Also..,
    Until now there is no sucess story on JSF. Only time can decide which is best.
    My suggestion is, better spend your time in learning more jsp and servlets specifications, XML/XSLT, JMS, Webservices rather JSF/Struts.
    All these frameworks like JSF/Sturts will depends on your project requirement. There is a nice book and online document in this website about design patterns. Read those things if you have time. You will get good idea.
    Well.., this is all my personal opinions.

  • JSF And Struts Integration

    Can any body give some info on integration of JSF to existing struts application

    I describe the main differences between JSF and Struts in this sample Chapter from my JSF book:
    http://www.oreilly.com/catalog/jsvrfaces/chapter/ch01.pdf
    Hope that helps.

  • JSF and Struts - differences and integration goal.

    I am a newbie J2EE developer and I am not clear about main differences between JSF and Struts also I saw couple of articles describing integration between JSF and Struts. Could someone give me an explanation, what the main conceptual differences between those technologies and what's the goal of integration both of them?

    I describe the main differences between JSF and Struts in this sample Chapter from my JSF book:
    http://www.oreilly.com/catalog/jsvrfaces/chapter/ch01.pdf
    Hope that helps.

  • Using jsf with struts

    hi;
    i am trying to understand the proper architecture when using jsf and struts together.
    i think i understand the differences between the technologies . it seems to me that instead of justifying jsf there should be a focus on how the two technologies actually collaborate.
    specifically, i would like to know or see examples of things like replacing the view portion of struts and plugging in the jsf framework instead or how to i replace the struts actions with jsf commands or maybe they are totally different things.
    where can i get information like this?
    thanks.

    At present, i think the best thing to do is to look at the example provided with the struts-faces integration taglib. I don't know any documentation about it.
    http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/

  • Steps of Integrating JSF with struts

    Can anybody tell me the steps of intrgrate JSF with Struts
    Regds
    Amit Verma

    It's a better idea to upgrade your memory amount up to at least 1GB.

  • JSF versus Struts

    Hi, I'm researching JSF and Struts and they look identical. Seems like the developers of JSF just took Struts and changed the wording. What I mean is:
    struts-config.xml became faces-config.xml
    ActionMappings and Actions became NavigationCases and NavigationRules
    FormBeans became ManagedBeans
    MessageResources became MessageBundle
    ActionServlet became FacesServlet (in web.xml)
    Both have validators and converters.
    So am i missing something?
    Also, are there any performance benchmarks that JSF/Struts add to response times?
    Thanks,
    Mike

    I tried out JSF on some small projects and it worked out OK. However, when I tried using JSF on a major project, I got burned. I ended up converting all my JSF work to Struts.
    Before I say what I didn't like about JSF, let me say what I do like. I like how easy it was to associate a button or a link with a method. I like how easy it is to validate input. I liked how easy it is to show or hide components based on boolean expressions. When it comes to these things, I was able to develop code a bit faster with JSF than with Struts.
    However, the negatives were so great that I eventually abandon JSF...
    (1) If you have a graphic artist that creates prototypes using static HTML, converting those prototypes to actual working pages is MUCH easier with Struts tags than with JSF tags. The problem with JSF tags is that you cannot always mix JSF with standard HTML. This is especially true if you are using Tiles. You may end up having to completely rewrite the static HTML tags to their JSF equivalent. This is simply more trouble than it is worth. (There are JSF tag libraries available that act like standard HTML tags, but I found the tags to be buggy and the code simply very cluttered.)
    (2) Creating tables much more complicated that a textbook example can end up being more trouble than it's worth. For example, if you want to create a table where some rows are sub-headers (rows that span all columns and contain a sub-title), then you will end up having to create a custom renderer and a custom tag library. There is a learning curve involved with this. (Even if you are an expert in writing these, you still have extra code that needs to be written.) With Struts, the same thing can be accomplished with some simple logic tags.
    (3) Sometimes, all I really wanted was to iterate through a list of values. JSF does not come with a simple iterate tag. You can loop through your data with a JSTL tag or you can use a datatable or you can create your own tags, but that is extra work. Even if you choose to do any of these, you still cannot reliably mix standard HTML tags with JSF tags.
    (4) Everything in JSF is submitted as a POST. Sometimes, I really needed to use a GET. You can use GETs in JSF, but I found using them to be less than straightforward.
    My advise: If you are building a web app, use a framework that plays well with HTML. (Ultimately, your web app is generating HTML anyway.) If you are building a stand-alone app, use Swing or some language other than Java. If you need your code to run as both, then JSF might be a solution.
    I really wanted JSF to work for me, but I ended up being disappointed.

  • JSF vs Struts article on Websphere Journel

    This article lists some of the common areas between JSF and Struts and shows the pros and cons of each technology in each area.
    http://www.sys-con.com/story/?storyid=46516
    Ed (JSR-252 Spec co-lead)

    Hmm I can't access that :(
    I liked Craig's blog post about the both tecnologies, I think that everyone should read that.
    http://blogs.sun.com/roller/page/craigmcc/20040927#struts_or_jsf_struts_and

  • JSF vs  Struts  And  Best O/R mapping  tech.

    I want to start working again after 3+ years gap from 2003 to 2007.Earlier for 4 years I have worked on web/enterprise applications and technical platform was JSP1.2,SERVLET 2.x,Oracle's xsql servlet,JDBC ,Struts1.0/1.1,statleless Session Bean ,Web Service generated by BEA WEBLogic server 8.1,jdk1.3.
    I've been looking through too many documents and forums, there are so many choices now .Could you please suggest which of the following should I learn to update my skills :
    1.JSF OR Struts 1.2,1.3 OR Struts2 ( There are no books for Struts 2)
    2.Hibernate OR EJB3 OR Torque OR TopLink
    3. jdk 1.4 OR java 5
    Can you help me to findout documentation and tutorials to learn these .
    Thanks

    You're wanting to get back into writing web applications?
    Web services?
    1 - If you worked with struts before, I'd probably continue with that line. Or at least start there.
    2 - I'd say Hibernate, but then I don't know that much about the others ;-)
    3 - Java1.5.
    I would also recommend you catch up with the changes between JSP1.2 and JSP2.0, particularly regarding JSTL and EL.
    For learning JSTL, you can't past go the JSTL spec. It is quite readable, and an excellent reference. http://java.sun.com/products/jsp/jstl/reference/api/index.html

  • Migrate from JSF to Struts?

    Hi
    I have seen some threads in this form regarding migration from Struts to JSF. Most of the posters back then (1999-2003) suggested starting with Struts and then migrating to JSF for production.
    Now I have one year of experience with Struts in a Tomcat environment and practically no experience with JSF. My current job involves maintaining JSF code. The boss thinks migrating to Struts would make us independent of the company to whom the JSF project was outsourced.
    I would like to know your opinion on migrating from JSF to Struts. How hard is it? Our architecture has Views, View Helpers, Business Context objects, Business Delegate objects, Business Processor objects, DAO (DB2, AS/400), DTO, etc. They seem rich enough semantically when compared with Struts that groups all these under MVC, even though they are complex to manage (job security :).
    I'd appreciate your feedback.
    Thanks
    Murthy

    To quote Ron Burdundy, "That doesn't even make any sense!" :) Seriously, though (and I admit a huge bias), that seems like a huge step backward. It seems the logic is this: "We outsourced the development of this system to someone else, and now we're left either maintaining it ourselves or paying them to do it, but, if we rewrite it with $FRAMEWORK, we'll be free of them." Is that right? How is maintaining a Struts app different (frameworks aside) from maintaining a JSF app? This is probably obvious, but that's a step I would neither take nor suggest. :)

  • JSF requires J2EE server?

    I received this reply from my hosting provider:
    "Unfortunately, JSF requires J2EE. We currently offer J2SE on our shared servers."
    Can anybody confirm that it is true? Up to now, I thought J2SE was enough to run applications created in JSC...
    Thanks
    Max

    I gave misleading information in my last reply. To deploy a Java Studio Creator app you just need a compliant web server, not necessarily a fully J2EE compliant. application server.
    Tomcat definitely works well. See the online help topic "Deployment Example: Tomcat" at http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2update1/deploy/howtodeploy/deploy_tomcat.html
    For other web and application servers that are supported, see "Supported Deployment Servers" at http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/2/Installation_ReleaseNotes_2_1-en.html.. The list includes:
    Sun Java System Application Server      
    * 8.2 PE (bundled)
    * 8.1 UR2 SE/EE
    * 7.1 SE/EE
    Sun Java Web Server, ver. 6.1
    Apache Tomcat, ver. 5.x
    BEA WebLogic Server, ver. 8.1, 7
    IBM WebSphere, ver. 6
    Sun Java System Portal Server, ver. 6.3.1, 7.0
    For deployment advice, see the "Application Deployment" category at http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp.
    I don't have information to recommend specific hosting services that provide a suitable web server, but I hope this information will help.
    HOWEVER, there does seem to be a problem with Tomcat 5.5.20. I searched the Netbeans mailing list and found reports of the same problem, with no solution yet. See:
    http://www.nabble.com/Web-Application-works-in-bundled-Tomcat-but-not-in-a-standalone-Tomcat-tf3287412.html#a9144209
    http://www.nabble.com/NetBeans-5.5-vs-Tomcat-5.5.20-tf3043174.html#a8459254

  • Using  Request Processor with JSF (No Struts)

    Hi
    Im doing some analysis on JSF. My requirement is that I do need the Request Processor of struts to be fit in my architecture. However we are not using Struts. How can the same be achieved using JSF?
    Any help would be much appreciated
    Thanks

    Hi
    Im doing some analysis on JSF. My requirement is that I do need the Request Processor of struts to be fit in my architecture. However we are not using Struts. How can the same be achieved using JSF?
    Any help would be much appreciated
    Thanks

  • Multipages Form: JSF or Struts?

    Hi! :) I'm italian so sorry in advance for my poor english! :P
    I would like to know, as your experience, if, to create multipage forms, is more simple using Struts or Java Server Faces (jsf)....
    In my opinion jsf is more simple becouse i cuold use one JavaBean only, and the different jsp pages could refer to that bean (scope request or other also?)...while using struts I must create an ActionForm, and so on...making more laborious job.
    I don't have much experience with this 2 frameworks...so in your opinion which is the most simple to this kind of forms?
    Thanks in advance! :)

    JSF is better than Sturts. ("Until now there is no sucess story on JSF.")
    Becoz, Struts inventor has been hired by SunMicroSystems to work with JSF. The same guy mentioned in an interview, that struts developement will be stopped in future.
    Also..,
    Until now there is no sucess story on JSF. Only time can decide which is best.
    My suggestion is, better spend your time in learning more jsp and servlets specifications, XML/XSLT, JMS, Webservices rather JSF/Struts.
    All these frameworks like JSF/Sturts will depends on your project requirement. There is a nice book and online document in this website about design patterns. Read those things if you have time. You will get good idea.
    Well.., this is all my personal opinions.

  • Using JSF and Struts

    I am a bit of a newbie in terms of UI applications on the JEE platform, so I apologize up front if this question seems silly. I was wondering if someone could comment on the approach below. Is this something that's possible or am I barking up the wrong tree?
    We have a vendor application that is written using Struts. We want to add a section of our own pages to this application, but we would rather use a more strategic approach in our pages, so we would like to use JSF for those.
    The original web.xml file in the vendor app uses a dtd of version 2.3 as shown below:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    When I use JSF, I use a DTD version of 2.5 as shown here:
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    The problem is that when I use version 2.3, the elements needed to support JSF are invalid. When I use 2.5, the elements needed to support struts are invalid.
    Could someone comment in that, if you had this vendor app and you needed to add your own pages, is it not possible to use JSF in this scenario or if you can, what is the best approach to resolving this issue?
    Thank you in advance

    First make sure that your application server supports Servlet API 2.5. Whether the desired Servlet API version is supported or not solely depends on the application server implementation and version used. For example Tomcat 5.5 is a Servlet API 2.4 implementation which only supports the API versions up to with 2.4. If you want to use Servlet API 2.5, then you obviously need a Servlet API 2.5 implementation, for example Tomcat 6.0.
    Consult the website and/or documentation of the application server in question.

  • JSF and Struts

    Why would I still want to use Struts? Doesn't JSF elimintate the need for Struts?
    Can someone please give me the low-down?
    Thanks,
    Michael

    I like Struts a lot and I see it working well with JSF. But I
    am also very impressed with the Tapestry project just brought
    into Jakarta; it seems so much further along than JSF.

Maybe you are looking for

  • How do i delete my photo library from my iphone 4?

    My computer downloaded my entire photo library to my iPhone 4s & I'm almost out of storage space.  As far as I can tell, there is no way to delete the photo library from the phone itself; I have tried. I have gone into iTunes library to delete it fro

  • Migrating from MacBook to new MacBook Pro

    My current model is MacBook 2GHz Intel Core 2 Duo and new model is 15" MacBook Pro. Old one has firewire 400, new has firewire 800. I think I might need a 6 pin to 9 pin firewire cable ?? to migrate my stuff but the cable sold at Apple Store seems to

  • Safari 2.0.1 vs Safari 1.3.2

    Hi! I'm a Portuguese web designer who strives to build pages as universally accessible and compatible with the greatest number of platforms and browsers (including Safari) as possible. I bought a Mac Mini where I maintain 15 different browsers and ve

  • Putting Itunes on more than 5 computers - is that devices or computers?

    Hello, We have a number of macbooks, ipads, ipods and one macs. What are considers computers for those itunes licenses? We get the warning about deauthorizing if we want to put it one of the macbooks. I'm not sure if we had old macbooks that we refor

  • Interactive report development

    hi folks, i have to generate an interactive report from  three tables ekko, ekpo, makt....in the basic list fields ebeln, bukrs, bstyp, bsart have to be displayed and if we press ebeln secondary list has to be displayed with three fields ebeln, ebelp