aspose file tools*
The moose likes Struts and the fly likes Need help with this design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Need help with this design

Gazzali Zayn
Greenhorn

Joined: Sep 01, 2011
Posts: 4
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


Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

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?


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with this design