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.

Similar Messages

  • Help reg. multipage form

    Hi,
    I am doing a project in multipage form. I have found similar web application and it has been implemented in JSP. I have gone through the code.Not able to get it. The guy who implemented it is using one controller.jsp. when the user clicks back button then the data already selected is also displayed. If I see the code of any page one html from will be there. If the url has been observed, always directed to controller.jsp. can anyone let me know how it was implemented. The following is the link.
    http://donner.cs.uni-magdeburg.de:8080/elearning/modelschoice.jsp
    kindly let me know the basic idea. Thanks alot.

    Alright,people their are using View Controller pattern.
    Here is how they could have done it.
    They might have designed dedicated JSP for each and everyform their.
    Including same .gif file in the header part.
    However,they are calling a single JSP file/Servlet /Struts Dispatch Action/Or any backing bean(with url pattern controller.jsp).
    All they are doing their is Trying to save details of all the form inputs as respective property in a bean which is used to render contents in repective JSP page and then finally the controller forwards the page to next jsp page at the server side therefore url in the browser would not change however,response regards to new page would changed with change in url and consequently the new response would again call the same controller again & again and updates the same View Object which is scoped under session and finally when application gets the complete data regards to form it updates it DB forwards or redirects to the confirmation page.
    If you still don't understand what i'm trying to exaplain.
    It would be a great idea for you to learn MVC pattern or what is MODEL 2 pattern.
    hope the below link might be of some help :)
    http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
    http://java.sun.com/blueprints/patterns/MVC-detailed.html
    http://java.sun.com/blueprints/patterns/MVC.html
    http://www.ftponline.com/javapro/2002_05/magazine/columns/weblication/
    http://www.javapassion.com/j2ee/MVCPatternAndFrameworks_speakernoted.pdf
    http://www.springframework.org/docs/reference/mvc.html
    http://java.sun.com/developer/EJTechTips/2004/tt0324.html#1
    http://www.developer.com/java/ent/article.php/3558501
    http://www.csis.pace.edu/~bergin/mvc/mvcgui.html
    REGARDS,
    RaHuL

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

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

  • 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/

  • Make an input form in pdk-struts

    Hi
    I have an application that uses ADF BC4J as model and jsp as view. One of the pages has an master/detail input from.
    I have installed struts-pdk and I can build and deploy simple text pages, which are visible as portlets in the portal. Linking between these pages, within the application also works.
    How can I make an input form(either using struts-pdk or something else!) in the portal???
    And how do I combine the input form to my existing ADF model???

    You need to start with a table in a sheet that has some columns with headers  Once you create a new tab you can then create an input form for the table. This is in Numbers for iOS, not Mac OS X.

  • 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

  • Comparing 2 form beans in Struts???

    Hi,
    How to compare 2 form beans in struts??? I have an edit screen with
    some data in it. If user does not edit any of the values present in the
    component(textfield) and try to submit the values that are old(already displayed)then i need to capture the data from form and compare it with the same data that is stored in another bean or session for example.
    if both are equal, then prevent the user from submit otherwise allow the
    user to submit the form with modified datas.
    In order to proceed further,how we can actually compare 2 form beans which does have the same values in it???
    Thanks,
    JavaCrazyLover

    No replies as yet...

  • Multipage forms- best workflow for future editing

    I'm struggling with understanding the proper workflow for creating and editing multipage forms.  I need to create a medical history form (PDF) where patients can enter their medical history and patient info. 
    This form is usually 6+ pages.  Each page has a header (logo and office address) and a footer (page number). 
    The problem I'm running into is when we need to make a change like add a question or change the wording of a question.  Is there a way we can edit the form (either in Word or an Adobe product) and not have to recreate the form in Acrobat Pro?
    I've hired contract workers from Odesk and each one I've hiried claims they can edit the questions after the form is created.  But each time this happens, the form looks worse after each edit.  I'm pretty sure this is the problem because they are editing the text in Acrobat Pro, which has very limited text editing capabilites.
    I'm wasting so much time going back and forth with contractors explaining to them that the text format looks like crap.
    I'm very capable of designing and editing these forms myself, but I just don't have the time.  So I'm contracting this work out. 
    I'd greatly appreciate any advice on the best workflow for PDF forms.
    Thanks!

    Yes, there is a way. You need to edit the original file format (Word, in
    this case), and then create a new PDF.
    You then open the old version (that has the form fields in it), and use the
    Replace Pages command to replace the old pages with the ones from the new
    file. This will maintain the form fields in place, although you might need
    to rename them and align them with the new page contents.
    This is a much better approach than trying to edit the PDF directly
    (although this option has been greatly improved in Acrobat XI).

  • JSF vs Struts - both with tiles

    I'm running in the problem migrating from Struts to JSF.
    In struts I have the following fragments:
    jsp (actualy in the resulting html):
    log4j
    struts-config:
    <forward name="log4j-page" path="doc.log4j"/>
    tiles-config:
    <definition name="doc.log4j" extends="doc.mainLayout">
    <put name="body" value="/WEB-INF/html/examples/log4j.jsp" />
    </definition>
    As a result this links the anchor on jsp page to my 'mainLayout' with 'body' replaced with ...log4j.jsp.
    I found no way to replicate this link in JSF.
    I tried <h:commandLink...> with a certain action. It seems that in faces-config fragment: <to-view-id>foo</to-view-id> JSF framework is always looking for foo.jsp.
    I'm wondering if there is any way of pointing in the faces-config to the definition name in tiles-config.

    Hello,
    There are differences between the two and some similarity. A couple of major differences I have noticed is that in using JSF you have much better control over user events and page response to user actions. The reason why is because JSF uses an event-driven model (e.g., you can write ActionListeners, EventHandlers, and event Dispatchers) to respond to any user activity on the page. Also JSF tags are far more programmer-friendly (in my opinion) than Struts. Another thing I would keep in mind (especially if you are a programmer) is that Craig Mc C. was the developer of both (with help from others); How often have you said to yourself after completing a project "given what I know now, If I started over from scratch I would make it so much better by doing... instead of ..."? Having used Struts for both large and small projects in the past, I really see JSF as a "simpler, leaner, smarter, more intuitive Struts than Struts". I think its much easier to learn and maintain than Struts (of course that depends on your coding style), and here is a key point: JSF will soon have visual drag and drop coding editors that both IBM and Sun will provide, and hopefully an open source version will appear as well. Visual design and development is not for everyone but it certainly has its place (in my opinion).
    I suggest you try create a simple app that includes all of the usual form components (checkboxes, lists, radiobuttons, textareas, submit buttons, etc. though not necessarily all on one page) using JSF and then Struts (or vise versa) then you can have a feel for how simple or complex it is using either for the usual web UI development assignment.
    Cheer,
    KamauObasi

Maybe you are looking for

  • How do I run Photoshop CS6 in Windows 8?

    I've seen other questions about this, but none had any useful answers. Here's the dilemma: I have Photoshop CS6 on my Windows 7 laptop, and it works fine. But, for Christmas I received a Toshiba Notebook with Windows 8. I tried the trial of Windows 8

  • External LCD connected via mini DP- Dsub keeps switching off in XP

    I have a Benq E2200HDA screen connected to Macbook via the adapter. Under OSX everything is fine, but when working with XP the screen turns off for a few seconds every 10 minutes or so. The display doesn't turn off, it looks more like the computer is

  • Curve 8530 invalid user name

    I have been trying to set up my email to my blackberry curve 8530 however it wont allow me and tells me my user name in blank or invalid. it was set up on my last blackberry but wont transfer through to this one. As far am i am aware my email address

  • Trying to install new adobe, or flash player

    why has nothing happened when I've tried to download the latest adobe, or flash player?  I've probably tried 15-20 + times since 1/29/14

  • Entering multiple records into one database

    Hi Guys, I have created a form that repeats the text fields. I want to record all the entries into an access database. I am trying to use the SQL Insert Command but I am receiving a mismatch criteria error. Here is the command: Command1.CommandText =