wood burning stoves 2.0*
The moose likes Struts and the fly likes File and autocompleter tags doesn't work together Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File and autocompleter tags doesn Watch "File and autocompleter tags doesn New topic
Author

File and autocompleter tags doesn't work together

Mike Cobelmach
Greenhorn

Joined: Jun 17, 2009
Posts: 19
Hi friends, I have problem with using tags s:file and sx:autocompleter together in one form. Without s:file tag are sx:autocompleters in same form working correctly. I can post some code here, but I think that it is general problem.

My version of Struts is 2.1.8.1.

Thank's for help.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please see ItDoesntWorkIsUseless.
Mike Cobelmach
Greenhorn

Joined: Jun 17, 2009
Posts: 19
I have testStreets.jsp:



If I use this code with s:file tag, I get following values in autocompleter: {message, type, number} because of class StreetUrl.java (which generate Map<String, Integer> streets for autocompleter) is not called.

Then I get s:file tag out of testStreets.jsp and values for "street autocompleter" are generated correctly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File and autocompleter tags doesn't work together
 
Similar Threads
Downlaod in Strut2
Upload multiple files in jsp
Jsp pages
Struts2 File Upload (Submit button)
struts 2 file upload problem