How to connect servlet with jsf

hello everybody, please help me
on how to connect jsf to a simple servlet. jsf bean is populated with values entered by user, but to use that bean in servlet i have instantiated new bean object so how i can access values entered by user as bean object contains initial values of variables.
actually i m developing a sample application jsf as component framework,hibernate as back end layer & spring as middle layer but right now i want to connect jsf to database using servlet & hibernate .So i want to access form bean of jsf so that i want to use form bean to do ORM in hibernate. but how can i get values entered by user in my servlet so that i can set these values in bean object.
please reply
Thanks
Edited by: Manjinder on Oct 15, 2007 6:31 AM

Please elaborate 'connect' in this context. This sounds a bit odd namely.
You can invoke a servlet using a plain GET query or a POST query using a <form> element.
If you're saying that you want to use some business logic which is available in a servlet, then you're looking in the wrong direction. Refactor that business logic in a separate class so that a simple Servlet as well as a JSF backing bean can use that logic. Then you can use JSF h:form with commandButton/Link to invoke the backing bean's action which on its turn invokes that logic.

Similar Messages

  • How to connect Servlet to Oracle

    so far i have see some example from internet on how to connect servlet with Oracle.. but i don't undertand the statement below
    "jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
    can any expert please explain to me??
    what is @elab-unix4.bus.umich.edu ?? elab is database's name?

    so far i have see some example from internet on how to
    connect servlet with Oracle.. but i don't undertand
    the statement below
    "jdbc:oracle:thin:@elab-unix4.bus.umich.edu:1521:elab"
    can any expert please explain to me??
    what is @elab-unix4.bus.umich.edu ?? elab is
    database's name?jdbc:oracle: type driver
    thin: Type of driver again. Oracle distinguishes between thin/thick, but I'm not sure of the features. We use thin.
    :@elab-unix4.bus.umich.edu:1521:elab
    IP Address of box where db resides:@elab-unix4.bus.umich.edu, port:1521, db instance: elab.

  • How to connect JSP with MySql Database?

    HI All...
    I want to know or How to connect Mysql with JSP or JSF any other software is available? please help me.....

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • How to connect portal with msaccess database

    we have to develop oracle portal applications with msaccess as a back end.how to connect portal to access.
    thanks in anticipation.

    I want to know or How to connect Mysql
    with JSP or JSF any other software isavailable?
    please help me.....First you need to find 25 m of a CatV cable and...The DB files need to be located on the ninth device of a SCSI Daisy Chain with the total SCSI cable length being over 150 m (and the devices (and cables) need to be mix of Differential and Non-Differential).
    Edit: And forget the terminator, who needs it?

  • Hi I just got my new Apple TV and I cant figure out how to connect it with My MacBook Air (11-inch, Late 2010- Processor  1.4 GHz Intel Core 2 Duo) OSX Version 10.8

    Hi
    Hi I just got my new Apple TV and I cant figure out how to connect it with My MacBook Air (11-inch, Late 2010- Processor  1.4 GHz Intel Core 2 Duo) OSX Version 10.8

    Are you referring to mirroring or you just unable to set up homesharing.
    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). It also requires the computer to be using wi-fi.

  • How to connect TL494 with IR2110

    HI, does anyone know how to connect TL494 with IR2110 H bridge inverter?? 

    Hello,
    These arn't chips I've used before but a quick search did yield some interesting (and maybe useful!) results:
    http://hmin.tripod.com/als/fsmyth/pages/timers7.html
    http://www.edaboard.com/thread90160.html
    http://www.diyaudio.com/forums/class-d/148287-doing-class-d-amp-project-using-tl494.html
    Other than that the datasheets are probably teh first port of call:
    http://www.ti.com/lit/ds/symlink/tl494.pdf
    http://www.irf.com/product-info/datasheets/data/ir2110.pdf
    Regards
    Nick C.
    Cardiff University

  • How to connect java with oracle

    can any body show me the code of how to connect java with oracle database.
    thank you

    To configure Oracle JDBC:
    1. Add Oracle JDBC JAR file classes12.zip or ojdbc14.zip to classpath.
    2. Load and register the JDBC driver.
    Class.forName("oracle.jdbc.driver.OracleDriver");
    3. Obtain a connection:
    String url="jdbc:oracle:thin:@<host>:1521:<database>
    Connection con = DriverManager.getConnection(url,
    "myLogin", "myPassword");
    4. Create a SQL statement.
    Statement stmt = con.createStatement();
    5. Obtain a result set.
    ResultSet rs = stmt.executeQuery(
    "SELECT ...");

  • How to connect SPA112 with Fritzbox7490

    Well thats the question:
    how to connect SPA112 with (internatiuonal) FritzBox7490 to use the phone(s) There must be a way to connect phone1 or two with DSL/Tel on the Fritzbox

    You can plug two analogue phones directly to the FON1 and FON2 ports.

  • How i connect iBooks with itunes on my nas?

    How i connect iBooks with itunes on my nas?

    I have been suckered by this problem too. I had all my e-books, mostly PDFs, saved on my NAS and available in iTunes. I wanted to access them from my old iMac with OS X 10.6.8 and my new iMac with OS X 10.9. But when the files were moved to iBooks, they disappeared from the NAS and now I'm in a mess. Thanks, Apple :-(

  • How to connect servlet to mysql database

    Hi all,
    I am new to mysql. After many difficulty I have created a database with table in MySql. Now I want to connct it to a servlet. How do I do it?
    Can anyone tell me the steps, including the step to create MySql datasource
    thanks

    thanks for the reply. I know the basics of jdbc and can connect with sqlserver. Bt how to connect with Mysql? I mean what do I provide in dsn unless I create a MySql datasource. I cant find any tutorial which teaches how to create MySql datasource. Can you give me any link???
    thanks

  • How to connect Air with Thunderbolt?

    How do I connect Air with Thunderbolt?
    Bought Air in Oct 2011 and Thunderbolt today. 
    Does Mac OS X (10.6.5) work with Thunderbolt?
    Do I need a special cable other than what came in box?

    Hey moxiedoggy,
    Welcome to Apple Support Communities! It sounds like you want to use Target Display Mode to use your iMac as a second screen to your MacBook Air. Since your said your MacBook Air is from 2011, it should have the thunderbolt, and you can connect the two computers using the following instructions:
    Use an iMac with Thunderbolt as a display
    If you have an iMac with Thunderbolt, any other Mac with Thunderbolt can use it as a display. The iMac will play both the video and audio from the other Mac.
    Connect the Thunderbolt cable to the Thunderbolt ports on each computer.
    Make sure both Mac computers are turned on and awake.
    Press Command (⌘)-F2 on the keyboard of the external display Mac.
    If you want the external display Mac to play audio as well as video from the primary Mac, choose Apple menu > System Preferences, click Sound, and then click Output. Select the external display Mac from the list of devices.
    You'll want to go over the requirements for using Target Display Mode here, along with other FAQs:
    Target Display Mode: Frequently Asked Questions (FAQ)
    http://support.apple.com/kb/ht3924
    Take care,
    David

  • How to connect websocket with weblogic.

    Hi,
    Can anyone tell how to connect websocket of html5 with weblogic server. Currently i am doing this thing with webbit NettyWebServer.
    thanks in advance

    Hi Shajon --
    Unfortunately, we're not permitted to give specific release dates/estimates - the best I can offer is that FMW 12c (which will contain WLS 12.1.2) is due to ship in CY 2013.
    I can probably provide you with the GlassFish chat example we have running on WLS (v.minor changes in API) to give you a sense of what it looks like.
    -steve-

  • HT1212 how to connect iTune with iPhone 5s

    I want to know how to sync iTune with iPhone 5s.   In other words myiPhone is locked out and I cannot open without connecting it with iTune. That s the
    message my phone is giving m

    Try reading the article you linked from...

  • HT1430 how to connect iTune with iPhone 5s

    I want to know how to sync iTune with iPhone 5s.   In other words myiPhone is locked out and I cannot open without connecting it with iTune. That s the
    message my phone is giving me. Thanks

    connect phone to computer
    launch itunes
    follow the prompts.

  • How to connect APEX with MYSQL via Apex's Database link

    How do i connect APEX with MYSQL via Apex's Database link? The OBE doesn't go into specific detail about how to link the two.
    can someone please elaborate on what these are and where i can find them in mysql:
    Database Link Name      
    Connect To Schema      
    Password      
    Remote Hostname or IP      
    Remote Host Port      
    SID or Service Name      
    I need to link to mysql database so I can set up a 3D pie chart in apex

    Hi jononioo
    A database link is a device for connecting between Oracle database instances only. Oracle does have a method for connecting to other database systems (Transparent Gateway) but this is restricted to other commercial databases and I don't believe there is a gateway for Mysql. (I could be wrong)
    I don't know Mysql but maybe there is some way to push data to the Oracle instance. Other than that, is there any reason why the data has to reside in the Mysql database?
    Regards
    Andre

Maybe you are looking for

  • HT3180 i am updating my apple tv

    updating my apple tv that i just bought today and it has been stuck in the same spot for more the an half an hour. is the latest update suppose to take a long time or has something gone wrong and if so how do I fix it.

  • Hide JFrame in Task Bar

    Is there away to have a JFrame created but have it not show in the windows task bar at the bottom of the sceen?

  • Help needed with basic implementation of drawrect: in NSView

    i've read the sections concerning the above in the "view guides for cocoa" docs, as well as several tutorials, but for the life of me i can't figure out how to do a very simple thing. all the examples i've seen explain how to use NSRect and NSBezierP

  • Wi-fi doesn't work in lion osx

    My wi.fi connection crashes every 2 minutes in my macbook pro after installing osx lion. How can i solve the problem?

  • Dymanic JDBC connection for mulitple application..

    Hi, I am developing an application which using dynamic JDBC connection when user login it's provide the username, password and JDBC datasource and it's work fine in my main application. But when I drop my other application Jar file into that main app