File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with autocomplete." Watch "Problem with autocomplete." New topic

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.


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?

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:
subject: Problem with autocomplete.