• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts: adding an Aplett to a JSP

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I�m trying to put an applet to handle a form
because the amount of date is huge and the page is
very slow (and the data is growing and growing).
At the beginning was ok I didn�t have so many records to
manage but now the html-page is about 8000 lines long!!
I don�t want to reload the page after a selection. This could be a solution: after a selection to send a query to the database and reload the page (instead of having all the data in the page) but it doesn�t look good to reload the page after any new selection (the user makes at least 5 selections before submitting the form).
So now I am trying to move all the data to an applet, where
I can handle all dynamically and without performance problems (beside all the nice view-features an applet has, comparing it with HTML). I don�t have problems with compatibility or such (applet, JVM, JRE, etc.) so no problems using applets.
Any idea on how can I insert an applet in the struts model?
Thank you!
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts is mainly for flow control and form processing. I don't think there's anything in Struts that's specific to applets. Just use the same HTML tag.
Try breaking up the data and allow the user to page through it. There are a number of opportunities to improve performance if you do this. Have a look at this Java Blueprint for some ideas for improving performance when handling large lists.
 
Javoso Torso
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you Junilu,
I was already thinking in dividing the page in two (which is the maximum for my impacient users).
Returning to applets:
I could I pass the data from the Action to the applet and applet to Action?
 
Junilu Lacar
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Javoso Torso:
Returning to applets:
I could I pass the data from the Action to the applet and applet to Action?


I don't think so. Applets run on the client while the Action is running on the server. You might be able to get the two communicating via a component like HttpClient within your applet so that it can communicate with the server.
Again, I would try to convince the user that it would be easier if you just break the data up into multiple pages.
 
reply
    Bookmark Topic Watch Topic
  • New Topic