• 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

Best way to design a dynamic jsp form

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I am current designing a jsp form that will allow user to view some business functions such as cash balance, stock balance, as so on. Each of them has a table to render them. I want to make things User-friendly, which means the table will display information only if the user click on the "expand" icon next to the table title. The expand icon will then "shift" to "collapse" icon and all the details will be shown from the table. The user can collapse the table by clicking on the collapse icon again. The icon will trigger the form action and request the server to return the status




However, I want to know if it's a good design or not ? Is it better if I use javascript instead of java ?

Morever, I want to learn more sophisticated Jsp Layout design so that the user will be very happy, any cooL links?

Thanks very much

Transistor

[ July 14, 2006: Message edited by: YuenLian Wu ]
[ July 14, 2006: Message edited by: YuenLian Wu ]
 
Sheriff
Posts: 67748
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do this sort of thing a lot and I feel that it is much better and easier to do with Javascript on the client rather than relying upon a server round-trip just to expand or collapse a portion of the page.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi....

there one possible solution for this...as we can use the help of java script..

using java script ...try to open another window(pop up window.) using the command...winow.open()....write a fucntion to this...and the opening..window ...you try to display all the records what you want to display...and finally give a button...to close..window.close()...by doing so..you are able to give a option to user...if he want to see the data ..he has to just click ..or else he would't.. ok ..all the best...
 
Bear Bibeault
Sheriff
Posts: 67748
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not believe that the OP wanted to open new windows. It's very easy to expand and collapse DIVs within the current window using Javascript and CSS and is a lot simpler than spreading the logic over multiple pages.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic