Architecture Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Devnet

    #1

    Architecture Problem

    Hi all,

    I've been a Notes developer for years but I am trying to move into the J2EE
    world.

    Essentially I want to capture data from a web form, format the data into an
    XML stream, send the stream to a server, receive the response and display in
    the browser.

    I've broken it down into parts while I am learning. I've created the form in
    a JSP, I click a button and it creates the XML file, I then manually run a
    java program which sends the file to a remote server, I receive the response
    and then manually display in the browser.

    OK, so now I want to automate this and separate the presentation from the
    business logic etc, which is where I'm stuck. Should I use a Java Bean, EJB,
    a Servlet or some other way to take the form data and create the XML stream
    and send to the server? Is a JSP page the best thing to use for this?

    Any advice is greatly appreciated.

    Regards,

    Michael


  • Andy Fish

    #2
    Re: Architecture Problem

    I'm not sure I understand how you want it to work.

    presumably you are clicking a button on the browser to build the xml, so how
    does it get it into a file?

    it's no good having a java program to send the file to the server if you
    want it to run on a web client


    "Devnet" <michael_erange y@yahoo.com> wrote in message
    news:4Fiqb.2050 4$mB5.812912@ne ws20.bellglobal .com...[color=blue]
    > Hi all,
    >
    > I've been a Notes developer for years but I am trying to move into the[/color]
    J2EE[color=blue]
    > world.
    >
    > Essentially I want to capture data from a web form, format the data into[/color]
    an[color=blue]
    > XML stream, send the stream to a server, receive the response and display[/color]
    in[color=blue]
    > the browser.
    >
    > I've broken it down into parts while I am learning. I've created the form[/color]
    in[color=blue]
    > a JSP, I click a button and it creates the XML file, I then manually run a
    > java program which sends the file to a remote server, I receive the[/color]
    response[color=blue]
    > and then manually display in the browser.
    >
    > OK, so now I want to automate this and separate the presentation from the
    > business logic etc, which is where I'm stuck. Should I use a Java Bean,[/color]
    EJB,[color=blue]
    > a Servlet or some other way to take the form data and create the XML[/color]
    stream[color=blue]
    > and send to the server? Is a JSP page the best thing to use for this?
    >
    > Any advice is greatly appreciated.
    >
    > Regards,
    >
    > Michael
    >
    >[/color]


    Comment

    • Devnet

      #3
      Re: Architecture Problem

      I create the file from the button click, but what I want to do is from the
      button click use a template of the xml request file, read the template in
      using DOM then write the data from the fields into the DOM representation
      and then send that as a stream to a remote server. My problem is what should
      I use to do this, ie. Am I better to use a servlet to parse the template and
      write the data in and send the stream to the server or would an EJB be
      better or am I going about this the wrong way.

      Thanks Michael.

      "Andy Fish" <ajfish@blueyon der.co.uk> wrote in message
      news:Ekvqb.2200 $PD2.18350189@n ews-text.cableinet. net...[color=blue]
      > I'm not sure I understand how you want it to work.
      >
      > presumably you are clicking a button on the browser to build the xml, so[/color]
      how[color=blue]
      > does it get it into a file?
      >
      > it's no good having a java program to send the file to the server if you
      > want it to run on a web client
      >
      >
      > "Devnet" <michael_erange y@yahoo.com> wrote in message
      > news:4Fiqb.2050 4$mB5.812912@ne ws20.bellglobal .com...[color=green]
      > > Hi all,
      > >
      > > I've been a Notes developer for years but I am trying to move into the[/color]
      > J2EE[color=green]
      > > world.
      > >
      > > Essentially I want to capture data from a web form, format the data into[/color]
      > an[color=green]
      > > XML stream, send the stream to a server, receive the response and[/color][/color]
      display[color=blue]
      > in[color=green]
      > > the browser.
      > >
      > > I've broken it down into parts while I am learning. I've created the[/color][/color]
      form[color=blue]
      > in[color=green]
      > > a JSP, I click a button and it creates the XML file, I then manually run[/color][/color]
      a[color=blue][color=green]
      > > java program which sends the file to a remote server, I receive the[/color]
      > response[color=green]
      > > and then manually display in the browser.
      > >
      > > OK, so now I want to automate this and separate the presentation from[/color][/color]
      the[color=blue][color=green]
      > > business logic etc, which is where I'm stuck. Should I use a Java Bean,[/color]
      > EJB,[color=green]
      > > a Servlet or some other way to take the form data and create the XML[/color]
      > stream[color=green]
      > > and send to the server? Is a JSP page the best thing to use for this?
      > >
      > > Any advice is greatly appreciated.
      > >
      > > Regards,
      > >
      > > Michael
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...