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

Need help with this design

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi Guyz

I have a form which has the following

Project Name: (select with 3 options)
Project hours: ( text)
Project Members:( text)
Project ID :( text)
also a submit button

Now when i select an option from ProjectName , My text for the rest (Project Hours, members and ID) should be dynamically populated(calls the action Class and then business service and then gets data from db and finally it is sent back).
I am using Struts2 framework.

now for this design how exactly should I continue. I thought AJAX was a good idea , I have downloaded struts2-dojo-plugin.jar and trying to work something with it (never tried this before ).

Please let me know your suggestions. What exactly should i do to get this done?

Thanks in Advance
Gazzali


 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Do you need AJAX? If you only have 3 projects, it would be much easier to populate an associative array and select the entries in it when the project name is selected.
If you do want to go the AJAX route, you should be aware that the Struts Dojo integration was deprecated in Struts 2.1 (I don't know why they don't make that more obvious in the documentation). I believe the Dojo plugin is an ancient version of Dojo kept around only so existing applications that depend on the AJAX tags will not break.
I recommend the Struts 2 jQuery Plugin for the most up-to-date AJAX tools.
That said, what specific questions do you have?
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic