servlet return a bean

Discussion in 'Java' started by gk, Nov 4, 2005.

  1. gk

    gk Guest

    i want to make a servlet which would return a bean when it would be
    called.

    how ?
     
    gk, Nov 4, 2005
    #1
    1. Advertising

  2. gk wrote:
    > i want to make a servlet which would return a bean when it would be
    > called.
    >
    > how ?


    Return to what? For a calling servlet (or a filter), set it in the
    request context with ServletRequest.setAttribute. For a Java client,
    serialize it with java.io_ObjectOutputStream or use the quite different
    java.beans.XMLEncoder.

    Tom Hawtin
    --
    Unemployed English Java programmer
    http://jroller.com/page/tackline/
     
    Thomas Hawtin, Nov 4, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Benjamin Stewart

    To bean or not to bean...

    Benjamin Stewart, Jun 30, 2003, in forum: Java
    Replies:
    0
    Views:
    829
    Benjamin Stewart
    Jun 30, 2003
  2. David Thielen
    Replies:
    2
    Views:
    835
    Marek Lange
    Sep 12, 2003
  3. Markku Salminen
    Replies:
    3
    Views:
    5,892
    Michael Borgwardt
    Jan 21, 2004
  4. Takeshi
    Replies:
    0
    Views:
    546
    Takeshi
    Jan 28, 2004
  5. circuit_breaker
    Replies:
    2
    Views:
    2,084
    Jack Jia
    Apr 4, 2004
Loading...

Share This Page