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

Similar Messages

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

  • 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

  • URGENT!!! Can ATA and SCSI coexist?

    hello fellas!
    my case is similar of the post "Can SCSI and ATA coexist?', but with some differences:
    I own a G4 Dual 500–MHz PowerPC G4, 40Gb ATA + 80GB ATA. (http://support.apple.com/specs/powermac/PowerMac_G4_GigabitEthernet.html)
    now I've installed a PCI SCSI card to connect tree more SCSI HDs: two barracuda 18Gb and one quantum 36Gb)
    my G4 only reads SCSI drives when I disconnect ATA tape from motherbard...
    when I plug ATA to motherboard again, neither SCSI mount on desktop, nor system profile shows it as a device, even when I start Hard Drive Update 1.app...
    I've read all manuals from apple, jumped all SCSI HDs, but for some reason, it doesn't work at all!
    so, the question, again, is Can ATA and SCSI coexist?
    does anyone knows how to config it??
    thanks in advance!
    b
    G4 Dual 500–MHz PowerPC G4   Mac OS X (10.4.8)   [email protected]

    answering:
    - as my primary language is portuguese, i didn't understand when you said 'booting off the OS X disk'. do you mean eject it in the disk utility?
    - I have so many drives because e sold another G4 that used those drives atached with the pci card and I simply want to use it, because I'm short on cash... those drives are installed with OS 9.2 (the ATA ones are running OS 10.4.8)
    when you said one ATA and 2 SCSI, you mean that if I simply disconnect the slave ATA and one of the SCSI it may works?
    thanks again!
    b

  • 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? ;-)

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

  • Can Oracle and Sybase Coexist on Sun Box ??

    Hello Everybody,
    I an trying to find out if Oracle and Sybase can coexist on same Sun Solaris box ??.
    I would really appreciate your help.
    Thanks,

    Definitely. Just be sure to set the kernel paramaters that are needed for each database. (ulimit for Sybase, ISM for Oracle (semaphores and shared memory)). Also be sure that your system has enough memory for the Oracle SGI and the Sybase caches, and that there is still enough for the OS to operate (which is dependent on platform, CPU count, and OS version).
    Good Luck,
    Mike Phillips

  • Can SCSI and ATA coexist?

    My Mac G4 450 came with a 36 GB SCSI drive, I purchased a 160 GB Ultra ATA drive and a Ultra ATA ribbon cable. I assumed all I had to do was install the drive and connect the cable then run disk utility. No such luck. The drive is a seagate barracuda plus 8mb ultraATA/100. I've tried all four jumper positions, and since the cable is a dual drive I tried both primary and secondary positions. At each restart the screen shows only a folder flashing between a mac face and a question mark. Disconnecting power at the new drive, and or disconnecting the ribbon at the new drive produces the same results. The only way to reboot is to disconnect the ribbon cable from the motherboard. When that cable is connected it can't find a system. Any ideas? P.S. I recently installed a sonnet 1.2GHZ upgrade about 2-months ago but no problems.

    Did you zap the pram after you installed the new HD? Always a good idea after you make any change to the hardware.
    See if that helps.
    If not, error code -20 indicates an I/O error. Error codes are here.
    An I/O error would explain the failed format.
    On your G4, you want that either as master or slave. Probably a master and stuck to the end of the cable. Don't know about the current Barracudas, but for a lot of them you set the jumper on pins 7 and 8. Look at the top of the drive, they usually have a little diagram -- otherwise check Seagate's site. Slave has no jumpers.
    Next to the cable, what kind of cable did you buy? How long and how many wires? The ATA standard calls for 18" maximum, and I would suggest that don't go longer than that unless you're buying really good cables. Don't really need longer than that anyway from the mb to bay 3. Exceding 18" with suspect cables and you risk data corruption.
    You really need to make sure you get an ATA/66 compliant cable (which also covers ATA/100 and ATA/133), in that I mean make sure it has 80 wires. There are in reality on 40 connectors (40 wires used for connection), but the other 40 wires are used for sheilding. The ATA/66 (and /100 and /133) specs demand you use an 80 wires cable.
    If you can get a teflon cable, usually they're yellow. Seem be work a bit better. If you can't don't sweat it as long as it's 80 wires and no longer 18".
    Oh, by the way, since you're attaching the 160GB on the motherboard, bear in mind you won't get full formatted capacity. You have either a Sawtooth or a Gigabit Ethernet with an ATA/66 bus. Older ATA protocals like ATA/66 have a cap of 137GB (about 128GB formatted). So your 160GB will show only about 128GB after you get it formatted. (Only cure for that is to get an ATA-6, e.g. ATA/133 PCI card; should work fine though on the motherboard although giving you only 128GB.)
    But just to be clear I should be able to just connect the cable to the board and then to the drive, open disk utility erase and reformat right?Provided it's jumpered correctly, and zapping the pram at startup, the answer is yes. Something is amiss.
    SCSI and ATA can coexist. I've Seagate 15K SCSI Cheetah on an ATTO UL3D in my DA, with a 3 ATA Barracudas -- one on the motherboard, two on a Siig PCI ATA card.
    DA-Giga 2x1.33; Cube-Giga 1.3; PB 15" 1.33-Hitachi 100GB 7K100, Pioneer DVR-K05   Mac OS X (10.4)   Cheetah 15.3K, ATTO UL3D, Radeon 9600 Pro

  • Can SnS and DMM coexist in the new MXA server?

    Hi guys,
    i would like to confirm if a MXA server (SNSC220-WKG-K9) can support both a SnS 5.3.12 and DMM 5.3.12 on the same HW?
    Thanks

    Hi Elter,
    No, you still have two separate hardware devices running the SNS 5.3.12 and the DMM 5.3.12. I believe the DMM HW part is "DMMC220-SNS-K9". There are bundles including the two hardware devices anyway, your Cisco Account Team would be able to help you with the proper order configuration.
    Also note that the hardware will come with 5.3.10 release installed from factory and will need to be upgraded first to 5.3.11 and then to 5.3.12 if you need to run the latest release.
    I hope this helps,
    Marco

  • Can JRE and MVM Coexist???

    In an IE6 environment, I realize I can install both the MVM from MS and the JRE from Sun, and that I can toggle the use of the JRE within IE's advanced settings, but...
    Can they both be used by different apps at the same time? I've got a PDM web app that needs the JRE, and a web-based colaboration tool that needs the MVM...
    Thanks for any input.
    JonnyB
    [email protected]

    By using the <EMBED> tag instead of <APPLET>, you can force the browser to detect the JRE even if MSJVM is the default. The JDK incudes a utility (HtmlConverter) that will convert your <APPLET> statements for you.
    Downsides (there's always a downside, isn't there?) are that I don't think <EMBED> is supported by all OS/browser combinations in the same way, and many corporate firewalls block embedded content, so you gotta be careful where you use it.

  • Can smb and afp coexist on the same host?

    Greetings all!
    I've been using Macs and OSX for a year. And recently I bought another MBP so I am seriously considering Time Machine backups. I have a Linux home server running Ubuntu 12.04 and Samba and my previous MBP running Mountain Lion connects to it happily without any problem. But my trouble started when I tried to setup afp on the same box.
    I followed this post and this post and got the fake time capsule showing in Time Machine without any problem. But soon I found myself unable to connect to the old samba shares. The smb host now displays as a Time Capsule. If I click on that OSX will say 'failed to connect'.
    As I understand there are 2 pieces involved on the server side, avahi to broadcast the service info and netatalk to provide the service itself. It's a bit like nmbd and smbd in Samba. If this is true then it's somewhat understandable that OSX can not display the same host as 2 different types of services at the same time. So I stopped avahi-daemon and very soon the old Samba shares appeared again.
    I am able to connect to both services using command+k but I would rather have them running normally so that my wife will be able to use them without extra tech support. Can anyone tell me if what I said above is true and/or if there is a graceful way around this? If answer is no then I will have to create a virtual machine or nic alias just for time machine and I think it's quite a waste.
    Thanks!

    tristonej wrote:
    I don't quite understand why people buying non-Apple devices should not expect OSX to work with them
    Because Apple has no control over 3rd parties. They can do what they want. If Apple publishes a new authentication mechanism in 2002, the 3rd party doesn't have to implement it. That isn't Apple's fault. If they do get around to supporting it in 2009 and then some 4th party doesn't bother to use the 2009 code in 2011, Apple still can't do anything about that. If anyone else wants to advertise, and support, Time Machine compatibility, they are welcome to do that. They definitely have the advertising part down, the support, not so much.
    There is a time when apple only worked with apple but that aparently was not sustainable. And that's why now Apple is embracing smb
    Apple's goal is to choose the best solution for its customers. Sometimes that is a proprietary connection or protocol and sometimes it is something industry standard. In all cases, there has to be some cut off for testing and support. That is why Apple eventually stops supporting its own hardware and technologies at a certain point. That is also why Apple will support SMB as deployed by Microsoft but isn't going to waste much time on home-built Linux servers.
    (it's said even samba was used shortly on OSX, not quite sure) and allow users to install windows on macs. Even OSX itselt is based on FreeBSD and uses quite a lot of open source components.
    Apple uses a lot of open source software. Samba was one of those projects. Unfortunately, the people that made those products didn't want Apple using them so they changed the licensing to prohibit Apple (and pretty much only Apple) from using their source code. That is why some of the open source packages in OS X are stuck in a 2007 version. That is also why Apple abandonned Samba and wrote its own SMB implementation.
    OS X is not based on FreeBSD. It has a BSD-flavoured POSIX layer, but it is a distinct operating system at its core.
    IMHO there is no magic in throwing money at propiretary hardware/software or praying to Steve Jobs. If something is not working, it must be that there is a bug in the code or the design. And neither OSX nor Macs are built by God, which means they are bugged as other software/hardware.
    I'm confused. When did anyone say anything about praying to Steve Jobs or divine technology? You asked about using Linux as a Time Machine server. I suggested you avoid that if you value your data. I also asked why you would want to keep running Linux now that you have a Mac. A Mac can do anything Linux can do with a fraction of the effort.
    The answer is simple, Macs can not do what I want.
    Which is?
    Withe a standard mATX case I can have quite a few 3.5" drive bays while there is only one 2.5" in a Mac mini. And with Ubuntu/Debian, getting/updating the software or the system is quite easy, just one or a few lines of apt commands, not quite possible with OSX.
    That's certainly true. OS X updates itself without having to run any apt commands.
    If you must compile something from the source to get a Linux running then something must be seriously wrong.
    My thoughts exactly. But perhaps you didn't follow me entirely. Apt, yum, etc don't have everything one needs to setup something as fancy as, I don't know, a web server. While I did have to compile a number of things from source, I had to actually edit the source a couple of times as well.
    The best thing I love about Linux is openess. You can customize almost everything and change it whatever way you want. With Mac, for example the 2013 Retina MBP I just bought, it's not even possible to change the power button behavior, which is very annoying.
    Then why did you buy a Mac? That's no big secret. Some people like not have to configure everything just to get it running. I have other things to do than edit config files.
    Back to my original question. I think the problem is not quite with compatibility of Bonjor but rather whether OSX can show this or not. Imagine you have a smb share and afp share on the same host, with the same name, how would OSX display it? And which icon will OSX use to display the host? I can not think of the answer so if you know please tell me.
    OS X will just display it like it display any server. One of your links event has instructions on how to pick the icon you want to fake. If you are running both services then I am not sure which one it would try to connect with. Neither of your services are native, not matter how much they try to fake it. If you wanted a specific service you would have to manually use the correct protocol in Finder > Go > Connect to Server. However, bot of those links were posted before Mavericks. Obviously they don't work anymore. It's Linux. It's open. Right? So fix it and post it on your own blog. I do not know what modifications you would have to make to either Samba or Netatalk to make them work with Mavericks.
    If all you need is to allow your wife to connect to one specific protocol, then manually connect to that service, saving your password in the keychain, and create an alias by Command-option dragging the server to some other folder. Then, she can just double-click on the alias to connect to the network.
    Now, if you really want to be clever, you can setup an automount to that service instead. Then the server will be mounted and unmounted as needed.

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

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

  • 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

  • Can i use JSF tags and HTML tages Together

    i am trying to use html and JSf tages together. i hope it should owrk. but for me html tags are not working.
    can any one help me

    thanks
    its working but i have one more clarification
    can we wuse jsf tags in javascript
    for examp
    this my javascript using html
    newQuotCell1[0].innerHTML='<input type=text class=TextField name="nameofEmployer'+count1+'">';
    if i want to write a jsf tage there . does it allow
    i want to bind the textfield with bean value . Is it possibel.
    please let me know.
    thansk in advance

Maybe you are looking for

  • Program error sur photoshop cs4

    could not complete your request because of a program error sur photoshop cs4 au moment de l'enregistrement

  • Captured photos are not being saved - occasionally...

    Hi, I own a month-old Lumia 830. It took me a while before finding out that many of my photos that I took on many occasions are not saving, even though the screen is showing the word 'saving'. I usually do not necessarily preview the photos each time

  • Software recommendation to remove duplicate files on HDD?

    Hello everyone I downloaded Singular for this prupose, but to be honest, it's not done me any good. I have transferred a lot of files over from various external HDDs and disk images, and in Logic Studio actually have duplicate channel strip settings

  • How to select all black in a photo?

    I have an all black jpeg image, a flourish -  I want to select all of the black, and change it to white instead.  When I try and select it with the selection tool, it takes forever and isn't accurate bc there are so many twirls in it, etc. Is there a

  • Direct Select Align to Object in Group

    As it is, when you direct select an object and align to it, they both move even if you click one to align to. If this behavior could be made consistent with the normal select where you can click one of the objects again to target the "align to" it wo