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.

Similar Messages

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

  • Problem integrating JSF with Spring

    Here is faces-config.xml
    <application>
    <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>dateuser</managed-bean-name>
    <managed-bean-class>com.datesite.user.DateUser</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>entityManagerDateUser</property-name>
    <property-class>com.datesite.user.EntityManagerDateUser</property-class>
    <value>#{entityManagerDateUser}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    Here is the deployment exception
    javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value com.datesite.user.EntityM
    anagerDateUser@380b4f9 of type class $Proxy35 to type class com.datesite.user.EntityManagerDateUser for managed bean d
    ateuser.
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:53
    7)
    Seems liek it can't figure out which class to instantiate?
    Please help.

    I've used the spring integration but I have not encountered this issue.
    It looks to me like Spring is giving out a proxy implementation that cannot be used in place of the actual class. Some things you might want to try:
    1) Configure Spring to create the bean upon initialization instead of waiting for it to be used.
    2) Remove any aspect-oriented configuration from the spring bean (including transaction support) to see if that makes a difference.
    3) Consider the possibility of a class loading conflict, i.e. was the spring container loaded by a different class loader than the one for the web application?
    Finally I would consider posting this on the forums at springframework.org.

  • Integrating JSF with Spring

    I get the following exception
    javax.faces.el.EvaluationException: Expression Error: Named Object: 'studentService' not found.
    Any pointers as to why does this error occur would be great help.
    Following is my web.xml
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
         <context-param>
         <param-name>javax.faces.CONFIG_FILES</param-name>
         <param-value>/WEB-INF/faces-config.xml</param-value>
         </context-param>
         <context-param>
         <param-name>contextConfigLocation</param-name>
         <param-value>/WEB-INF/applicationContext.xml</param-value>
         </context-param>
         <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
         </listener>
    <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
    </listener>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 1 </load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    faces-config.xml
    <application>
         <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
         <managed-bean>
         <description>
         Backing bean that contains Student information.
         </description>
         <managed-bean-name>studentBackingBean</managed-bean-name>
         <managed-bean-class>com.lms.student.impl.ui.StudentBackingBean</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
         <property-name>studentService</property-name>
         <value>#{studentService}</value>
         </managed-property>
         </managed-bean>
    applicationContext.xml
         <bean id="studentService" class="com.lms.student.impl.service.StudentServiceImpl">
         <property name="studentDAO" ref="studentDAO"/>
         </bean>
    I have spring2.0 jar and jsf 1.1 RI jar

    I believe it has nothing to do with how spring bean is configured
    If I look at the stach trace
    javax.faces.el.EvaluationException: Expression Error: Named Object: 'studentService' not found.
         at com.sun.faces.config.ManagedBeanFactory.getScopeForSingleExpression(ManagedBeanFactory.java:998)
         at com.sun.faces.config.ManagedBeanFactory.hasValidLifespan(ManagedBeanFactory.java:931)
         at com.sun.faces.config.ManagedBeanFactory.evaluateValueBindingGet(ManagedBeanFactory.java:892)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:553)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:234)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:253)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
         at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
    Should be some scoping error.

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

  • Steps for integrating oracle E-business suite R12.1.3 with 11g OID.

    Hi All,
    Can anyone please let me know the Metalink document ID/Steps for integrating oracle E-business suite R12.1.3 with 11g OID.
    Thanks,
    Dinesh.

    Dineshkumar wrote:
    Hi All,
    Can anyone please let me know the Metalink document ID/Steps for integrating oracle E-business suite R12.1.3 with 11g OID.
    Thanks,
    Dinesh.Please refer to the following docs/links.
    Using Oracle Internet Directory 11gR1 Patchset 4 (11.1.1.5.0) and Single Sign-on with Oracle E-Business Suite [ID 1286596.1]
    Integrating Oracle E-Business Suite Release 12 with Oracle Access Manager 11gR1 (11.1.1.5) using Oracle E-Business Suite AccessGate [ID 1309013.1]
    https://blogs.oracle.com/stevenChan/entry/oracle_access_manager_11_11
    https://blogs.oracle.com/stevenChan/entry/why_does_ebs_integration_with
    Thanks,
    Hussein

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

  • Sending step in Integration Process waiting for Acknowledgement infinitely

    In process I had to send an MATMAS, CLFMAS and CNPMAS. The data for
    this IDoc comes in one message from third party system. So, my
    Integration Process has receive step (to collect a data), and three
    send-steps (for MATMAS, for CLFMAS, for CNPMAS), one by one. The
    receive-step catch an inbound message and then (without transforms)
    send this message to each of this three send-steps in Asynchronous
    mode. The inbound message transforms in Interface Determination to
    IDoc. Three steps, one Interface Determination with three conditions,
    that looks
    like «ProcessStep=send_matmas», «ProcessStep=send_clfmas», «ProcessStep=s
    end_cnpmas», and in this place I set a mapping to transform inbound
    message to IDoc. All send-steps has property Acknowledgement, which set
    to Transport value. So in first send-step MATMAS goes to R3, then R3 in
    response send ALEAUD IDoc (trans WE05 shows an incoming MATMAS and
    outgoing ALEAUD); ALEAUD comes to XI (trans IDX5 shows inbound and
    outbound messages), but ALEAUD didnu2019t transforms to XI Acknowledgement.
    And there is no any CLFMAS or CNPMAS, because all processes sleeps in
    their first send-steps (trans SWWL shows a many STARTED processes).
    Each send-step waits for event u2018SEND_OK_TRANSPORTu2019. Moreover, if I use
    trans sxmb_moni to monitor this situation and if I press refresh (F5
    button) every time, sxmb_moni every time requests a status of
    Acknowledgements, XI transform ALEAUD to Ack, send-step in process
    catch this status, process wake up and moves to next send-step (which
    sends an CLFMAS and waits for Ack). By continuously pressing refresh
    (F5) in sxmb_moni all process becomes COMPLETED (trans SWWL), all
    ALEAUD transforms to XI Ack and all IDocs goes to R3. But pressing F5
    itu2019s not a solution for integration.

    Hi Igor,
    I dont think your manual refresh changes the status . The status changes is the status change of GUI . The system will take how much so ever it needs to take and not as per your manual refresh.
    Regards
    joel

  • Problem in starting Integration service with DAC 11g

    Hi friends,
    Im @ the step of registering integration service and the repository service in DAC 11g. I can start the Repository service well in DAC, but facing issue in starting integration service with DAC, while trying to test connection im getting a message like
    Failure connecting to BIA_IS!
    Im not sure the reason to this problem in DAC. I have also setted the necessary environment variables like INFA_HOME and INFA_DOMAINS_FILE referring the domains.infa file like
    INFA_DOMAINS_FILE = C:\Informatica\9.1.0\domains.infa
    Also checked with the dac_env file which has the below contents
    REM -----------------------------------------------------
    REM
    REM ENVIRONMENT VARIABLES THAT YOU MAY NEED TO SET FOR
    REM  PROPER INFORMATICA 8.x or 9.x HANDSHAKE.
    REM
    REM INFORMATICA_SERVER_LOCATION denotes installation of
    REM Informatica components. Example:
    REM C:\Informatica\PowerCenter9.1
    REM
    REM DOMAINS.INFA_FILE_LOCATION denotes the location
    REM (including name) of domains.infa file
    REM
    REM Please make sure to set correct values for variables
    REM mentioned above
    REM
    REM -----------------------------------------------------
    set INFORMATICA_SERVER_LOCATION="C:\Informatica\9.1.0"
    set DOMAINS_INFA_FILE_LOCATION=C:\Informatica\9.1.0\domains.infa
    set INFA_CMD_STYLE=8
    set PATH=C:\Informatica\9.1.0\server\bin;%PATH%
    set INFA_DOMAINS_FILE=%DOMAINS_INFA_FILE_LOCATION%
    What could be the problem and where to check with the logfile related to the integration service failure in DAC.
    Thanks in advance.
    Regards,
    Saro

    Hi guys,
    The issue is sorted out. The below are the two precautions to be considered.
    *) Make sure of INFA_HOME/Server/bin exist @ the end in the PATH variable.
    *) For each and every change in the PATH variable, it is better to restart the services(both infa and DAC) then and there for the changes to take effect.
    Regards,
    Saro

  • Integrating Apex with Cocoon (does it make pdf from taking data from DB)

    Friends,
    I integrated Apex with appache with cocoon. Its working fine with reports but i want it to work with form on a table or view.The steps below which i have followed for integrating Apex with Cocoon
    Steps of pdf Printing of Report with cocoon:
    1) Download and unzip the following needed files in D:\Apex_fop directory.
    2) Open your command prompt .
    Change the directory to D:\Apex_fop\cocoon-2.1.11.
    Set the Java_Home environment variable as: set JAVA_HOME= C:\Program Files\Java\jdk1.5.0_21
    then type build war
    3) After getting the prompt back as D:>Apex_fop>cocoon-2.1.11>
    Copy coocon.war file from the folder D:\Apex_fop\cocoon-2.1.11\build\cocoon.
    Paste this file into webapps subdirectory in main tomcat directory having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps.....place it in the top
    level of webapps directory.
    4) Now just startup tomcat as D:>APEX_FOP>apache-tomcat-6.0.26>bin>startup.bat
    The cocoon.war file will automatically uncompressed as directory.
    5) To change the port of apache tomcat , edit apache-tomcat-6.0.26\conf\server.xml & change port attribute of Connector element from 8080 to 8181.
    Just check whether Tomcat is running or not as http://localhost:8181/
    & to check cocoon type http://localhost:8181/cocoon/
    6) Now copy fop_post directory & paste it undes new cocoon directory in webapps having path as D:\APEX_FOP\apache-tomcat-6.0.26\webapps
    \cocoon.
    7) Now you need to do some apex settings as follows:
    In APEX, just log in as ADMIN into apex/apex_admin and went to Instance Settings and did the following:
    - Print Serverr: Standard Support
    - Print Server Protocol: HTTP
    - Print Server Host Address:localhost
    - Print Server Port: 8181
    - Print Server Script: /cocoon/fop_post
    In your APEX application, in the Regions section, Click on the Print link next to your report and do the following settings:
    - Enable Report Printing: Yes
    - Link Label: Print
    - Response Header: Report Settings
    - View File As: Attachment
    - Output Format: PDF
    - Report Layout: Default Report Layout
    - Print URL: f?p=&APP_ID.:1:&SESSION.:FLOW_XMLP_OUTPUT_R1063230002781575
    8) Open up the Report Page and click Print , You will get the pdf report.
    But my requirement is bit different. I have made form on a table or view , so when i am submitting my form the record is getting updated in my database and at the same time a new button is appearing at same page as i have branched it in same page. The new button name is print. I want when i click this print button it should print the record which submitted recently. How can i enable the print functionality on form. Its simple in report but how can it be done on form?
    Looking forward for this to know wthr it is achievable or not and if yes what all are the ways?
    Thanks in advance for all who is going to post here and to them also who is giving their time in reading my thread
    Regards
    Adi
    Edited by: Adi's on Mar 23, 2010 8:54 PM
    Edited by: Adi's on Mar 23, 2010 8:54 PM

    You could redirect to a report page instead of to the form page. Then simply print the report.
    This makes sense. You would have one page for entering the data and another page for displaying and printing it.

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

  • InputText issue with Struts

    I'm using jsf 1.1 with struts 1.3.5 and am experiencing an issue with the inputText element. The problem is the name attribute being generated is not allowing the form bean's attributes to be set. For example:
    <h:inputText id="username" value="#{loginForm.username}"/>
    generates
    <input id="_idJsp3:username" name="_idJsp3:username" type="text" value=""/>
    The issue being the name of the field is _idJsp3:username so the form property 'username' is not getting set. I've tried removing the inputText tag and replacing it with this:
    <input name="username" type="text"/>
    And it works. What's the deal? I know a lot of people have used/are using JSF and struts together, what am I doing wrong?
    By the way, this is the last hurdle i need to clear so any help would be appreciated.

    first - thanks for your reply
    I can understand what you mean , to adhere to the MVC conception , we need to have any action go through the controler .
    but , once I wanna access to a jsp file , then I need to set a global-forward and a ForwardAction , when time goes by, and the project keeps getting larger , so there will be too many forwards and FrowardActions , right ?
    actually , I have a Office.jsp , which has a frameset inside , left and right,each invokes a jsp file like this :
    <frameset rows="*" cols="144,*" framespacing="2" frameborder="NO" border="2" bordercolor="#CC0000">
    <frame src="OfficeLeft.jsp" name="leftFrame" scrolling="NO" noresize>
    <frame src="Notification.jsp" name="RightFrame">
    </frameset>
    when I have successfully forwarded to this Office.jsp , it prompts OfficeLeft.jsp and Notification.jsp are not available. so my problem is I don't know how to get this work fine .

  • SBOP XI 3.1 Edge Integration kit with SAP

    Hi All,
    Can any one tell me where can i find the integration guide for integrating SBOP XI 3.1 Edge with BW ?
    This is SBOP Edge and not Enterprise. I did search under http://help.sap.com/businessobjects/ but didnt not find it.
    Where can i find the Integration kit for integrating SBPO XI 3.1 Edge with BW system.
    Also please suggest the post steps after integration.
    Regards,
    Ritesh
    Edited by: Ritesh Patel on Dec 23, 2010 5:42 AM

    Hi,
    all the software is available on http://service.sap.com/swdc in the BusinessObjects area.
    Ingo

  • What are the steps for integration FI to PP

    hai
    what are the steps for integration with FI to PP
    Thanks & regards,
    PG BABU

    Hi,
    Integration is with CO and PP
    In CO, Cost Centers are Created using T.code KS01.
    In CO, Activity Types are created using T.Code KL01.
    Both should be combined Using T.code KP26.
    Cost Centers are assigned to Work Centers using T.Code CR02.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

Maybe you are looking for

  • How to change airport settings in safe boot mode ?

    At the moment my new macmini boots only in safe mode. I think its because of a faulty airport. Unfortunately, the safe mode does not offer a GUI for disabling airport for normal boot. The Apple Support page says "2. Remove the AirPort Extreme Card" b

  • Changed hard drive now system will not boot [Solved]

    Hi, Right got myself into a real mess, transferred data from old drive to new ... set up fstab ... grub is working... But.... getting init kernel panic Now I figure I need to reinstall kernel [via chroot! in wiki!] first try did not work via ubuntu l

  • HT3275 An error occurred while creating the backup folder.

    What about : Unable to complete backup. An error occurred while creating the backup folder. I have an external drive for my TM backup when the computer starts the drive is mounted TM starts a backup shortly after starting and is successfully complete

  • How do I rebuild mail database manually

    I am running Mac OS X version 10.2.8. I need to rebuild the mail database manually. I have done it in the past, but I have forgotten the exact command line operations. I know that new versions have apps that do it very easily, but a newer version is

  • Add security for ITS Integrated

    I'm using the SAP ITS Integrated in the SAP ECC 50, them ITS and SAP ECC are into the same server. My user's can access the application from internet. --- Server: ECC + ITS - > Internet by ITS --- What I can do for add security in this scenario