Hi,
We are looking for a servlet which can login to various websites (maybe even
cache the cookies), open the relevant URL for submitting form data, submit data
(after taking care of the mapping between existing data and form fields - this
will be done manually) and flag an alert (via email) if there is any error.
We will have to (obviously) use XML+XSL, but the session management - logging
in, opening the relevant data submission form etc.) is what we were trying to
get some help on.
Regards
Nitin Goyal
Webrizon eSolutions Pvt. Ltd.,
B-31, Sector 5, Noida-201301 (UP) INDIA
Tel (O) : 91.118.4421319, 4421320. Cell : 91.9810353030
email: [EMAIL PROTECTED]
There is no failure except in no longer trying.
----- Original Message -----
From: "Nathan Coast" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 10:41 PM
Subject: Re: Servlet Mocking a browser.
If I get you right
you have one type of data that you want to submit to multiple sites that expect
different formats? If this is the case, then a good solution would be to
convert your "standard" set of data submitted to your site to xml. You can then
translate this xml using xsl to the request that the other sites can receive.
You then have to maintain one xsl for each site you wish to submit to.
Hope this helps
Nitin Goyal wrote:
> Hi,
>
> We are presently trying to address the following issue:
>
> Our application needs to publish data to various sites, the form fields and
data
> for which are separate for each. As an example, say a supplier wants to add
his
> product to the catalogs of 10 websites that maintain such catalogs. Typically
> he goes to each of these websites, logs in and fills up a form. The form
fields
> and data for each of these are different from each other - so the data entry
> form on site A has:
> Product Name
> Product Description
> Sale Price
> and so on
>
> while that on site B has:
>
> Product Name
> Quantity Offered
> Date of Availability
> Sale Price
> Discounts
> and so on
>
> Now suppose that the user adding his product has all the relevant information
> available to him. Thus it implies that he has an xml file (say) with all the
> relevant information he wants to post and default values for the other fields.
> The file looks like
> <name> Cookies </name>
> <ID> 101 </ID>
> <Description> blah blah <Description>
> <price>$100<price>
> <Quantity> 12 </Quantity>
> and so on.
>
> Now to what we are trying to do:
>
> We will manually maintain a mapping file for each site.
>
> Thus the mapping file for site A will look like:
> name, Product Name # indicates that name mapps to Product Name
> Description, Product Description
> and so on...
>
> while for site B,
>
> name, Product Name
> price, Sale Price
> Quantity, Quantity Offered
> and so on.
>
> We are trying to explore the possibility of a servlet being able to login to
> each site, opne the data entry form page and POST the data in the forms after
> reading the mapping files. The mapping files will be maintained manually.
>
> Any pointers on how to achieve this are most welcome.
>
> Regards
> Nitin Goyal
> Webrizon eSolutions Pvt. Ltd.,
> B-31, Sector 5, Noida-201301 (UP) INDIA
> Tel (O) : 91.118.4421319, 4421320. Cell : 91.9810353030
> email: [EMAIL PROTECTED]
>
> There is no failure except in no longer trying.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html