jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Franchini" <uill...@tin.it>
Subject RE: opinion/ TAG
Date Wed, 23 Aug 2000 13:25:11 GMT
I prefer the second approach. IMHO is a pure issue of design, in the sense
that from the point of view of the perfomance I do not see great differences
between the two solutions.
XML requests towards other applications (as an example using SOAP) can be
complicated and even enriched from parameters that are not directly coming
from your form: at this point I find more logical to construct all in a
dedicated "component" outside the "context" of the page.

cheers
William

-----Original Message-----
From: Marco.Mistroni@nokia.com [mailto:Marco.Mistroni@nokia.com]
Sent: mercoledì 23 agosto 2000 11.46
To: taglibs-dev@jakarta.apache.org
Subject: opinion/ TAG
Hi all
	i developed a JSP Custom tag for sending a request in XML format..
i explain below what i mean

i have a form with some parameters

let's say
<form>
<input type="text" name="name" />
[...]
i have a tag called
<marco:request />

the form, when submitted, point to the page itself (there is no action
specified)

if the parameter "
this <marco:request /> tag fetches the parameters of the request and build
an XML String out of that
like

<?xml version="1.0" ?>
<parameter>Value Entered by the user for the Name</parameter>
<parameter>Value Entered by the user for the Surname</parameter>

(obvioulsy it can easily changed)


then it stores in the session and forward the request another application

i would like to know what do u think of this compared to the other approach,
[...]
JSP/FORM -> servlet -> action class ..the action class extracts the XML
String from the Session (it's not possible to store the XML String in a
request Attribute as far as i know/tried) and call some application using
XML as data exchange format

JSP/FORM -> servlet -> action class.. the action class extracts the
parameters from the request and build an XML String out of that and call
some application using XML as data exchange format
[...]


Mime
View raw message