aspose file tools*
The moose likes Struts and the fly likes Problem with autocomplete. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with autocomplete." Watch "Problem with autocomplete." New topic
Author

Problem with autocomplete.

vishnu vyasan
Ranch Hand

Joined: May 27, 2008
Posts: 39
Hi guys,

i am a newbie to Struts , I am facing two problems in an application.

I am using 1.3.8 for a application having a registration page with internationalization.

now

1) when the user gives all his details , the details are getting populated in to form bean. now when the user changes the language , the form should clear all the contents. is the form bean should unload from the memory. This is not happening, how could i do this?

2) how could i turn off the auto-complete property of struts html:text tag?


regards
vishnu
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

1. You may need to use JavaScript reset() function for resetting all fields in HTML form. Here is one link I just picked from a quick google search JavaScript Reset

2. This is a example from Showcase application which should help you understand the Struts2 AJAX Autocomplete dropdown population on change event

I didnt understand what 1.3.8 is? Is this Struts version? or Java?

Web Development Tips and Tutorials - By Sachin
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

Sorry, I guess I didnt read your question completely. You probably are using struts 1.3.8.

Can you please post your code?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with autocomplete.
 
Similar Threads
Is this a good design?
To map more than one form bean to one action
Action Class Not Called
display images in preview form.
Please help me regarding struts checkbox issue...