473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 20 '05 #1
2 1976
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" <mi*************@yahoo.com> wrote in message
news:4F********************@news20.bellglobal.com. ..
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

Jul 20 '05 #2
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" <aj****@blueyonder.co.uk> wrote in message
news:Ek*********************@news-text.cableinet.net...
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" <mi*************@yahoo.com> wrote in message
news:4F********************@news20.bellglobal.com. ..
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


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: comp.lang.php | last post by:
I can't possibly reproduce the code for this as the 2 classes in question are about 1500 lines each and condensing is in this case impossible due to algorithmic logic dependencies. Let's say you...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
3
by: Johnny Meredith | last post by:
Hi, I'm relaively new to programming languages in general, and brand new to VB.NET. I use/used VBA in MS Access previously to do what I needed. I want to learn VB.NET to stretch my boundaries a...
2
by: Martin Platt | last post by:
Hi, I've been working on designing new architecture to be used for future development using C#. We're going quite well with the architecture, having originally decided not to use the dataset,...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
2
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
0
by: srikar | last post by:
Hi all, I am having a problem, when I am compiling the code in 32 bit option on a 64 bit machine using the macro CPPFLAGS= -m32 I am getting the following warnings from the linker . ...
7
by: Samuel | last post by:
Hi, I am looking for some recommendations for client/server technologies and for the communication involved. I am currently planning to port a Perl application that has grown out of...
5
by: =?iso-8859-2?Q?Piotr_Ko=B3odziej?= | last post by:
Hi Assumption: I need to develop two applications - windows forms and ASP web page. Architecture: I developed web service which is being consumed by windows forms application. The...
0
by: ddmetro | last post by:
Hi All, Our project is to optimize gcc's instruction scheduling. It requires us to specify architecture information (basically number of cycles per instruction, stall and branch delays)...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.