|
Hi@all,
right now I am trying to implement a webapp that should do data cleaning and analysis. I already have a prototype written in Java for the cleaning part and it is not using struts yet. Because I do not want to hire a big server I tend to let the client do most of the calculating. Is struts the right framework to implement a mostly client sided application? I am not really into struts right now and also can't find a satisfying answer on the internet. Perhaps you can know a good tutorial or a website that helps me with my question. greetz, Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
First or later your data will send through the application server, in this
case struts could help you. Maybe the rest and json plugins are the best candidate for your use case. Since struts2 is able to handle json and rest architecture, every js client library and every related tutorial could help you. http://struts.apache.org/2.x/docs/json-plugin.html http://struts.apache.org/2.x/docs/rest-plugin.html Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 31 July 2012 12:13, Martin Rosellen <[hidden email]> wrote: > Hi@all, > > right now I am trying to implement a webapp that should do data cleaning > and analysis. I already have a prototype written in Java for the cleaning > part and it is not using struts yet. > > Because I do not want to hire a big server I tend to let the client do > most of the calculating. > > Is struts the right framework to implement a mostly client sided > application? > > I am not really into struts right now and also can't find a satisfying > answer on the internet. Perhaps you can know a good tutorial or a website > that helps me with my question. > > greetz, > Martin > > > > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<[hidden email]> > For additional commands, e-mail: [hidden email] > > |
|
In reply to this post by Martin Rosellen
2012/7/31 Martin Rosellen <[hidden email]>:
> Hi@all, > > right now I am trying to implement a webapp that should do data cleaning and > analysis. I already have a prototype written in Java for the cleaning part > and it is not using struts yet. > > Because I do not want to hire a big server I tend to let the client do most > of the calculating. > > Is struts the right framework to implement a mostly client sided > application? Struts2 will produce a pure HTML so I don't think that you are planning to write all the calculations in HTML5 ;-) Maybe some applet base app would be better as a client. Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
In reply to this post by Martin Rosellen
It looks like we should not reply too soon. Is the data cleansing a
continous task or one time thing? It looks it's a repeated task. Where is the data in database or file system and file format? If in the database, using Java application is not any better than the db procedures that can be invoked by java application or web client on demand. If it's in file system, using java application looks not bad; but to speed up, you may load the files to a database then using database power to clean up the data. which is much quicker than a Java program if the volume of the data is huge. All in all, the use case is not clear for one to compare the pros and cons for an approach. Struts is just a framework to help you design your application quick or neater (it supposes not gurantees). On Tue, Jul 31, 2012 at 6:13 AM, Martin Rosellen < [hidden email]> wrote: > Hi@all, > > right now I am trying to implement a webapp that should do data cleaning > and analysis. I already have a prototype written in Java for the cleaning > part and it is not using struts yet. > > Because I do not want to hire a big server I tend to let the client do > most of the calculating. > > Is struts the right framework to implement a mostly client sided > application? > > I am not really into struts right now and also can't find a satisfying > answer on the internet. Perhaps you can know a good tutorial or a website > that helps me with my question. > > greetz, > Martin > > > > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<[hidden email]> > For additional commands, e-mail: [hidden email] > > |
|
In reply to this post by Martin Rosellen
> right now I am trying to implement a webapp that should do data cleaning > and analysis. I already have a prototype written in Java for the cleaning part > and it is not using struts yet. Do you mean that you've written a Java application that connects to the db to do this work? > > Because I do not want to hire a big server I tend to let the client do most of > the calculating. > What server? > Is struts the right framework to implement a mostly client sided application? > Only if you are interested in a web based client . . . struts is almost entirely focused on HTTP requests. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
In reply to this post by Martin Rosellen
Thanks to you all for the quick answers.
>> right now I am trying to implement a webapp that should do data cleaning >> and analysis. I already have a prototype written in Java for the cleaning part >> and it is not using struts yet. > Do you mean that you've written a Java application that connects to the db to do this work? At the moment I only read .csv files that don't get bigger than 20mb. Later I might get files much much bigger (1gb or so). > >> Because I do not want to hire a big server I tend to let the client do most of >> the calculating. >> > What server? Some of my cleaning procedures take a lot of time, so I might need fast hardware. > >> Is struts the right framework to implement a mostly client sided application? >> > Only if you are interested in a web based client . . . struts is almost entirely focused on HTTP requests. I'm not sure if a web based solution is the right way to go. On the one hand the data transfer from the client to the server might get very big. On the other hand the procedures are very complex and might take a lot of time to calculate on a slow client. Do you know any papers or articles that gives advice when to use what technology? How can I scientifically determine where my bottle neck will be? Kind regards and thanks again Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
|
You know the data irregularity pattern that needs to be fixed, thus if you
have a dbms system such as Oracle, DB2/UDB, etc., then load these csv files into tables to hold all the data, then write the sql scripting or stored procedures to fix the irregular data. (Note, before loading the files, if the csv files contain bad carriage return signs, you may download open source IBM symphony v1.3 or earlier to open the csv file and save to as csv file again, which will clean the bad carriage returns well. MS Excel can not do it while display file well for newer version, while 2003 version can only display 1M lines or so.) My experience is that Java program/application will not beat the database sql scripting or stored procedure processing. You may use web page/desktop application GUI to issue the selecting and loading files, then starting cleansing commands in the database on demand but do not show the data on gui by all means. Or use new file coming to trigger the processing or nightly cronjob to run. This was my experience, glad to hear other options in action. On Thu, Aug 2, 2012 at 5:42 AM, Martin Rosellen < [hidden email]> wrote: > Thanks to you all for the quick answers. > > > right now I am trying to implement a webapp that should do data cleaning >>> and analysis. I already have a prototype written in Java for the >>> cleaning part >>> and it is not using struts yet. >>> >> Do you mean that you've written a Java application that connects to the >> db to do this work? >> > At the moment I only read .csv files that don't get bigger than 20mb. > Later I might get files much much bigger (1gb or so). > > >> Because I do not want to hire a big server I tend to let the client do >>> most of >>> the calculating. >>> >>> What server? >> > Some of my cleaning procedures take a lot of time, so I might need fast > hardware. > > >> Is struts the right framework to implement a mostly client sided >>> application? >>> >>> Only if you are interested in a web based client . . . struts is almost >> entirely focused on HTTP requests. >> > I'm not sure if a web based solution is the right way to go. On the one > hand the data transfer from the client to the server might get very big. On > the other hand the procedures are very complex and might take a lot of time > to calculate on a slow client. Do you know any papers or articles that > gives advice when to use what technology? How can I scientifically > determine where my bottle neck will be? > > Kind regards and thanks again > Martin > > > > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: user-unsubscribe@struts.**apache.org<[hidden email]> > For additional commands, e-mail: [hidden email] > > |
| Powered by Nabble | Edit this page |
