Struts and JSF Integration in OPDk-java based portlet

Hi,
thanks in advance for your help.
I'm developing a PDK java based portlet. For some reasons I cannot use the JSF bridge but I would like to integrate Struts and Jsf in my portlet, using Struts to manage actions and navigation and JSF (with ADF Faces components) for the view. I'm using the Strus-Faces library.
When I try to submit my portlet form, I receive the error "request URL not found on this server". I'm posting some exstracts of my code.
It's made of three pages: the main one "Integration1ShowPage", "error" and "result". The MainAction.java displays my mainPage, where there's a form. To keep it easy, when the user submits this form, the ActionName returns "success" and the "result" page should be displayed.
The MainAction works properly: the portlet is displayed but when I tried to submit the form I receive
The requested URL /provaDeploy/htdocs/integration1/integration1ShowPage.do was not found on this server.Could you please suggest me something?
Many many thanks,
B.
<struts-config>
<action-mappings>
  <action path = "/mainAction" type = "strutsjsfintegration1.MainAction">
    <forward name = "success" path = "/faces/htdocs/integration1/integration1ShowPage.faces"/>
  </action>
  <action path = "/nameAction" name = "nameForm"
  input = "/faces/htdocs/integration1/integration1ShowPage.faces" scope = "request"
  type = "strutsjsfintegration1.NameAction">
    <forward name = "success" path = "/faces/htdocs/integration1/result.faces"/>
    <forward name = "failure" path = "/faces/htdocs/integration1/error.faces"/>
    <forward name = "again" path = "faces/htdocs/integration1/integration1ShowPage.faces"/>
  </action>
</action-mappings>
<controller>
  <set-property property = "processorClass"
   value="org.apache.struts.faces.application.FacesRequestProcessor"/>
   </controller>
<message-resources parameter="definitiveStrutsPortlet.ApplicationResources"/>
</struts-config>

Hi,
have a look at this whitepaper for how to use JavaScript in ADF.
http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
This link here (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html --> see sample 71) shows an integration sample between a Java Applet and ADF. Its a similar use case to yours
Frank

Similar Messages

  • Can Struts and JSF coexist?

    I have a Struts based application and now I want to build an additional module on top of that using pure JSF. My question is, can Struts and JSF co-exist in the same application? If yes, what are the cons of that approach? What are the places I need to tweak in the configuration files so that they work together?
    thanks,

    Hi,
    Yes they can coexist. Actually that's the approach recommended by Craig McClanahan. I have developed a full enterprise application (80% completed) which uses JSF in front and Struts in the back using Struts-Faces integration library (developed by Apache).
    So far I haven't faced any major issues with this approach. However, I haven't try using Struts validator on JSF objects.
    Read the article below on how to integrate JSF w/ Struts.
    http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk8.html

  • Struts and JSF

    I have an Action from Struts. This controls the data in the code behind bean.
    After I call submit, how do I go Back to the Struts actions? the JSF navagation does not allow navigating to a servlet.

    Hey Shay,
    We have quite a large application based entirely on Struts. There is a keen interest in migrating to JSF, but in an incremental fashion. I did a fair amount of googling and almost everything i came up with , was purely theory oriented, are there any resources online , which clearly give examples/tutorials for doing a step by step migration to JSF from Struts. Couple of other questions that i dont seem to find an answer to with regards to the Integration of struts and JSF
    1) I understand BC4J, struts and JSF can be integrated together, does the same hold for ADF ? there was a similar forum post back in 2005 , where they said this is yet to be done, do we have this integration with Jdev 10.1.3 ?
    2) If i were to use only the jsf UI component tags as a first step in my struts application , what is the equivalent for the page definition file of JSF in struts, as in how would i achieve the binding ?

  • Tiles 2 and JSF integration in tomcat 5.5.25

    hi all,
    "Tiles 2" is a new project extracted from Struts and is now integrated with various frameworks...
    I'm wondering if anyone here succeed to run Tiles 2 with JSF on tomcat 5.5.25.
    I'd downloaded a test from maven: (The test application is not working in my environment... i'll be happy to hear about any success from one of you...
    http://repo1.maven.org/maven2/org/apache/tiles/tiles-test/2.0.5/
    File name: tiles-test-2.0.5.war
    This test application should work on java 5.0.
    I will be glad to here some advice,
    thanks
    Edited by: buz_word on Nov 19, 2007 6:50 PM

    Are you sure that a new session is being created in step 6? Tomcat can be configured to persist sessions between restarts. Maybe check getCreationTime() on the session?
    --Jon                                                                                                                                                                                                                                                                                                                                                               

  • Current status of Tiles and JSF integration

    Hi. I am new to JSF, and I have been researching Tiles integration with JSF. I've read a lot of posts about difficulties encountered when integrating them, and other posts seem to suggest that it is definitely do-able (some posts say using Shale Tiles is the way to go instead of using Struts tiles.)
    I have not found any definitive or straight forward tutorial on integrating Tiles and JSF. Is it a matter of the JSF technology not being fully developed? Will tiles be easily integrated (as it is in Struts) in the future, without jumping through hoops?
    Any opinions or advice would be greatly appreciated. I would rather not use JSF w/ JSP includes as an alternative. It seems as though Struts would be a better choice for what I have to do, unless I can integrate JSF and tiles functionality with relative ease.
    Thanks.

    Cold-Gin wrote:
    I have not found any definitive or straight forward tutorial on integrating Tiles and JSF. Is it a matter of the JSF technology not being fully developed? Will tiles be easily integrated (as it is in Struts) in the future, without jumping through hoops?I certainly wouldn't say that JSF technology is not fully developed by any stretch. It's certainly possible that there's some sort of impedance mismatch between the two, but Tiles support is hardly the measure of a framework's maturity. :P
    Having said that, I really can't say much more than that with regard to Tiles. What I can suggest, though, is JSFTemplating or Facelets. Both are mature products, engineered specifically for use with JSF. Facelets is probably the more popular of the two and is slated for inclusion in JSF 2.0 in some form, while JSFTemplating, which supports the Facelets syntax, is another strong alternative (which, incidentally, is what powers the GlassFish admin GUI).
    Hope that helps...

  • CTI integration with Non-Java based Webclient

    Can anybody help?
    I need any documentation concerning the implementation/ configuration of the ICI/BCB with the IC Webclinet installed on a ABAP Stack (non-java version). All info seems to be based on Java based Webclient.
    Any help greatly received
    Rob

    I had a OSS ticket created and from that, what i could understand was that the ICI/BCB version is linked to the version of the CRM software and the associated ABAP Stack. For example CRM 2007 has the ICI  version 3.05 but what you get when you put http://javahost:javaport/bcb is the Java stacks ICI system information. WHich will be like 3.00. And I was asked to ignore that java info.
    What I heard is that the abap stack is the one implements the ICI/BCB Version and from CRM's version you know the ici version behind. But I did not get any mapping of "CRM version to ICI"from the OSS though.
    Hope it provides little more information to your question.
    Regards,
    Elaya

  • Difference between struts and jsf

    hi
    which one you have to prefer and why?
    Please helpon this
    Thanks,
    Vijay

    Hai Vijay.
    Struts is liek dosa and JSF is liek alooparantha.
    okey?Now I'm not making fun of our brown friends here, but
    can someone recast that explanation, using only items
    that can be purchased at a Kentucky Fried Chicken, so
    that I can understand it better?Brown friends? I prefer to think of myself as "melanin-enhanced" and others as "melanin-challenged." Nonetheless, Struts can be thought of a Kentucky Fried Chicken whereas JSF is one pound of fresh, boneless chicken and a bottle of barbeque sauce.
    How's that? ;-)

  • Integration of a Java-based forum into an existing webapp (Single Sign On)

    Hi all,
    This is my first post, so apologies if it's in the wrong place. I couldn't find a board that seemed to fit this topic.
    I am looking to integrate a forum into my Java based (Tapestry) webapp. After a couple of hours googling around, i'm struggling to find something that would suit my needs so i've come looking for suggestions. It needs the following features:
    - Can be deployed as part of a Tapestry based WAR
    - Integrates with my existing member base, hence Single Sign On
    - Rich feature set including moderation, avatars etc.
    Can anyone point me in the right direction?
    Cheers,
    Ben.

    Look for possible older Jive Software forum application servers. This is what the Sun forums are based on. It used to be free anyway.

  • Masters Project:  Comparing Struts and JSF

    I'm doing a research paper for my MSCS degree at Rensselaer at Hartford, comparing the efficiency/effectiveness of using Struts alone, vs. adding JSF. I'm learning both as I go, but with a decent base in J2EE web apps.
    Would you consider sharing your experience and opinions, in a response to my questionnaire? It's in development, and I expect it will ask 5 questions on your background, and 10 -15 question on your experiences with the Struts/JSF comparison.
    The questionnaire should be available later today. Results need to be compiled in 7-10 days.
    Can you help? If so, I'll send you the questionnaire, either as a forum reply or direct email - your choice.

    Thank you, Sergei -- that is a helpful reference.
    In addition, though, I am obliged to analyze questionnaire responses as part of my research paper. Would you like to participate?

  • Moving from Struts to JSF

    Hello,
    We have a struts based application running on OAS and are trying convert our projects to JSF. Using Jdeveloper 10.1.3.1, I have created a JSF JSP and
    would like to call that from a struts based Data Action.
    How do I go about doing this? Do I need to integrate the "Struts-Faces Integration Library". (http://www.oracle.com/technology/pub/articles/masterj2ee/j2ee_wk8.html)
    Thanks!

    Hi,
    since there is no native integration between Struts and JSF, the integration library is needed. Note that the two are so different by design and functionality that I am not sure if this integration could be a recommended approach
    Frank

  • Struts-faces & JSF commandLink bug in RI 1.1

    Hello,
    There was a bug with JSF, multiple forms and commandLink as discussed in thread: http://forum.java.sun.com/thread.jsp?thread=526788&forum=427.
    This bug is now fixed for JSF h:form form type.
    I personnally use Struts and JSF with the struts-faces JAR and this issue is still not fixed when you create a form using the s:form tag, in fact as long as there is a s:form on the page the commandLinks do not work the same way as first reported for pure JSF apps.
    Will this be fixed anytime soon in the struts-faces library? I hope so because I do need it.
    Thanks
    Xav

    hi,
    i guess [email protected]
    or
    http://issues.apache.org/bugzilla/enter_bug.cgi?product=Struts
    might be a better place for that.
    regards.

  • Petstore and JSF

    I look into petstore and JSF recently, and have two questions about those.
    1. What application framework does the petstore application use, Sun's own framework or similiar to Struts, or something else?
    2. JSF has been a part of the J2EE and become a standard, will the petstore implementation reflect the development soon?
    Can someone give me some ideas please?
    Thank you in advance.

    I look into petstore and JSF recently, and have two
    questions about those.
    1. What application framework does the petstore
    application use, Sun's own framework or similiar to
    Struts, or something else?Something else, and again, it's just an example! ;-)
    2. JSF has been a part of the J2EE and become a
    standard, will the petstore implementation reflect the
    development soon?JSF is not yet part of J2EE. It may be part of J2EE 5.0 (the one after 1.4). Note that JSF is part of the J2EE 1.4 SDK (Sun Java System App Server 8) though.
    Note also that one of the great differences between Struts and JSF is that the later was build to be tools-friendly from day one. So if you use Java Studio Creator (http://www.sun.com/jscreator) for instance (it relies heavily on JSF), you don't need to know the goory details of the MVC implementation in JSF.
    -Alexis
    >
    Can someone give me some ideas please?
    Thank you in advance.

  • Sol. Mgt. Console/printmgr - java based utils fail

    I am running Solaris 8 on a laptop. Everything works fine except for the Solaris Management Console and printmgr. These are java based apps and both fail. The error messages from printmgr are:
    Exception in thread "main" java.lang.NullPointerException: NullPointerException
    at sun.awt.motif.MFramePeer.pSetIconImage(Native Method)
    at sun.awt.motif.MFramePeer.setIconImage(MFramePeer.java:217)
    at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:175)
    at sun.awt.motif.MToolkit.createFrame(MToolkit.java:144)
    at java.awt.Frame.addNotify(Frame.java:274)
    at java.awt.Window.pack(Window.java:262)
    at com.sun.admin.pm.client.pmTop.main(pmTop.java:1178)
    The Management Console has similar errors.
    I wrote a simple java program and it runs fine. It appears that the "native method" it's looking for is missing.
    Has anyone seen this before or have any suggestions?
    Neil.

  • Please instruct how to display Chinese in URL-based portlet

    Hi, I have installed Chinese support opca for my oracle portal and I tried to display Java Chinese portlet successfully.
    I've been testing the url-service now, and I can see the url sample portlets successfully too. However, when I try to display a website including chinese character (e.g.www.yahoo.com.tw, all characters are shown improperly. What else should I do or install?
    P.S. I am using PDK January version.
    Thanks for your help and replies!

    Hi,
    I got it by modifying the provider.xml file with the tag of:
    <charSet>BIG5</charSet>
    for the portlet displaying the website with Chinese Character. For detail, you may refer the the article 'PDK-JAVA XML Provider Definition Tag Reference v2 [HTML format] under the pdk\article directory.
    Thanks for your attention!

  • [Integrated SOA Gateway] Publish Java based web service

    Welcome!
    Lately I have been trying to publish Java based web service through Integrated SOA Gateway. The documentation states that:
    +"Custom interface definitions can be created for various interface types including custom interface definitions for XML Gateway Map, Business Event, PL/SQL, Concurrent Program, Business Service Object, Java (except for Java APIs for Forms subtype) and Composite Service for BPEL type."+ (Integrated SOA Gateway Developer's Guide Release 12.1, "Creating and Using Custom Integration Interfaces")
    After familiarizing myself with $FND_TOP/bin/irep_parser.pl and $FND_TOP/bin/FNDLOAD tools, I have started coding my POJOs. Initially I have come up with three classes - request/response objects and service implementation. Service implementation has been annotated with "@rep:X" descriptors according to "Java Annotations" section of the documentation. While invoking $FND_TOP/bin/irep_parser.pl I have received errors about class resolution. My solution was to transform request and response types to static inner classes. This way I ended up with one *.java source file (see below).
    * Sample ISG Service.
    * @rep:scope public
    * @rep:product AP
    * @rep:displayname My Custom ISG Service.
    public class MyService {
    public static class Request {
    private String id;
    public void setId(String id) {
    this.id = id;
    public String getId() {
    return id;
    public static class Response {
    private String data;
    public void setData(String data) {
    this.data = data;
    public String getData() {
    return data;
    * Sample operation.
    * @param request Request Object.
    * @return Return Object.
    * @rep:displayname Test operation.
    * @rep:category BUSINESS_ENTITY SAMPLE_SERVICE
    public MyService.Response testOperation(MyService.Request request) {
    MyService.Response response = new MyService.Response();
    response.setData("Some Data");
    return response;
    ILDT file has been successfully created and uploaded. However, I could not see the "Generate WSDL" button on Integrated Repository website. Is there any particular interface or superclass that my service implementation should extend? I have reviewed "PurchaseOrderSDO" example posted in the developer's guide (page 407), but I couldn't come up with a working solution. Could you provide me with more detailed tutorial/example? Which documentation sections should I read again?
    After searching through forum, I have spotted $FND_TOP/bin/soagenerate.sh script, and thought that lack of "Generate WSDL" button was an EBS defect. After running the script, I have received an error:
    Error in Service Generation.
    ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
    oracle.apps.fnd.soa.util.SOAException: ServiceGenerationError: Interface Type (JAVA) Interface SubType (null) is not supported.
         at oracle.apps.fnd.soa.provider.wsdl.ArtifactsFactory.getArtifactsGenerator(ArtifactsFactory.java:55)
         at oracle.apps.fnd.soa.provider.wsdl.WSDLGenerator.generateServiceWSDL(WSDLGenerator.java:128)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSOAService(ServiceGenerator.java:75)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.generateSingleService(ServiceGenerator.java:88)
         at oracle.apps.fnd.soa.provider.wsdl.ServiceGenerator.main(ServiceGenerator.java:419)
    I would be grateful for any suggestions. Has anyone published Java based web service through ISG?
    Best regards,
    Lukasz

    I tried the following as per Oracle support and able to generate the wsdl though, but not invoke the webservices.
    1. Applied the patch 8607523
    2. Took the translator.jar file from the patch 8857799 and replaced the current translator.jar file
    3. Deploy the adapters.
    $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp -applicationname=pcapps
    -oc4jpass=welcome -runautoconfig=No

Maybe you are looking for