Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > applet to applet - servlet model

Reply
Thread Tools

applet to applet - servlet model

 
 
Tedy
Guest
Posts: n/a
 
      08-04-2005
Hi!

I have an applet which takes XML document and with help of SAX it finds
values.

Structure of XML looks in shortcut like this:



< category >

< block >

< value > 5,234 </ value >

< possible result > 3,9219 </ possible result >

< possible result > 6,28365 </ possible result >

< possible result > 32.768 </ possible result >

</ block >

</ category >

< category >

< block >

< value > 23 </ value >

< possible result > 4345 </ possible result >

< possible result > 637.9 </ possible result >

</ block >

</ category >

< category >

< block >

< value > 2.8 </ value >

< like for > 5,234 </ like for >

</ block >

</ category >

Applet has three classes . First class has JTextField from which I receive
values and takes them to second class that starts SAX with properly
values - and third class which contain overloaded SAX functions. Results
come back to first class.

I have two questions:

1:

Is it hard to change such applet in to applet - servlet model?

Problem is that this applet takes data form XML document and the document is
on the www server. The time that this action last becomes longer and longer
because XML file is growing.

When the file was small every thin was OK

Where can I find tutorials or howto documentation ?

I have written some programs in java but never in JSP or servlet.



Question 2 :

Is there any programs that helps manage such XML data base. Especially I am
interested in:

Sorting categories blocks by the value in < value > tag, checking syntax.



Thanks for all help

Tedy






 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      08-04-2005
On Thu, 4 Aug 2005 12:44:56 +0200, Tedy wrote:

> I have an applet which takes XML document and with help of SAX it finds
> values.


> I have two questions:
>
> 1:
> Is it hard to change such applet in to applet - servlet model?


Qn. 1a.

Is there any point to doing that?

You need to transmit the data from the server to the
client, then the cleant back to the server, is that right?

In between, your applet does transformations on the XML.

If you were to do that work on the server, that would increase
the need to transfer data between the server and the (..could be
an) applet (..but by this stage the user can do what they need
with an HTML FORM input textarea) considerably.

> Problem is that this applet takes data form XML document and the document is
> on the www server. The time that this action last becomes longer and longer
> because XML file is growing.


How do you expect the user to do anything useful with it, unless
you transmit the bytes from the server to the client? (and back)

> Question 2 :
>
> Is there any programs that helps manage such XML data base.


Yes. They are generally known as databases.

It sounds as if this job is far better suited to an actual
D/B on the server for the queries. <my advice>Don't p*ss
about, trying to reinvent what already exists.</my advice>

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
Beats A Hard Kick In The Face
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Java Model to Java Model without XML erinbot@gmail.com Java 1 10-06-2006 09:00 PM
Offending class: javax/servlet/Servlet.class chamikara Java 1 06-19-2004 05:42 AM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM
Tomcat: POST from one servlet or internal class to another servlet Sean Clarke Java 1 01-07-2004 02:22 PM
how to get my servlet configuration before the servlet is initialised Andy Fish Java 4 12-17-2003 09:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57