Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 18933 invoked from network); 14 Jun 2006 13:40:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 13:40:11 -0000 Received: (qmail 83645 invoked by uid 500); 14 Jun 2006 13:40:00 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 83602 invoked by uid 500); 14 Jun 2006 13:40:00 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 83579 invoked by uid 99); 14 Jun 2006 13:40:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 06:40:00 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.38.95.2] (HELO rook.net-work.net) (212.38.95.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 06:39:59 -0700 Received: from [62.69.89.27] (helo=[192.168.67.20]) by rook.net-work.net with esmtpa (Exim 4.61) (envelope-from ) id 1FqVaM-0003qN-A7 for user@struts.apache.org; Wed, 14 Jun 2006 14:39:09 +0100 Message-ID: <44901197.3090300@genialgenetics.com> Date: Wed, 14 Jun 2006 14:39:35 +0100 From: Sony Thomas User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: ajax:autocomplete tag References: <1C87F18496A132459C91DC2655F72E23019E020F@exbpn003.paychex.com> In-Reply-To: <1C87F18496A132459C91DC2655F72E23019E020F@exbpn003.paychex.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -26 (--) X-ASC-Spam-int: -26 X-Rook: external X-Scan-Signature: 3c4d6188e71f72413dab8380af527521 X-Virus: Virus Checked see http://www.antiviruscentre.com for details. X-Spam: Spam Checked see http://www.antispamcentre.com for details. X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for all who helped me to solve this problem. I made it work in my application. Once again thanks a lot sony :-) Samere, Adam J wrote: > You can forward to a JSP from your action rather than coding tags into > your action, then generate XML in your JSP rather than HTML. > Your JSP (aside from taglib directives etc) may look like this: > > > > > > > > > > > > > > > -Adam > > -----Original Message----- > From: hermod.opstvedt@dnbnor.no [mailto:hermod.opstvedt@dnbnor.no] > Sent: Wednesday, June 14, 2006 8:01 AM > To: user@struts.apache.org > Subject: RE: ajax:autocomplete tag > > Hi > > That was what I ment - You don't return any values from your action. You > need to write the values to the response (supplied by the action), and > then return null. The documentation at http://ajaxtags.sourceforge.net > shows you how, or search for Struts and returning a file for instance. > > Hermod > > -----Original Message----- > From: Sony Thomas [mailto:sony@genialgenetics.com] > Sent: Wednesday, June 14, 2006 1:55 PM > To: Struts Users Mailing List > Subject: Re: ajax:autocomplete tag > > > Hi Hermod, > > I am setting the value entered in the textbox > > parameters="username={username}" > > username is my textfield name. > > The problem is How will I return the username list back to jsp from > action. > > It is very very urgent. can anyone help me please > > sony > > hermod.opstvedt@dnbnor.no wrote: > >> Hi >> >> You are not setting any values in the request - How can the list be >> populated if you don't supply any values >> >> Hermod >> >> -----Original Message----- >> From: Sony Thomas [mailto:sony@genialgenetics.com] >> Sent: Wednesday, June 14, 2006 1:09 PM >> To: user@struts.apache.org >> Subject: ajax:autocomplete tag >> >> >> Hi, >> >> I am a newbie in ajax. I want to use ajax in my application. Let me >> explain my requirement : >> >> when I enter a character in the text field i have to call an action. >> Inside my action i have to load all the users and send it back to jsp >> > > >> so that I can display. >> >> I am able to call the action class from my jsp. But my problem is how >> will I set the list of users to response.Can anyone help me please >> > ???? > >> What to do in my action to show the Userlist in jsp ? Please it is >> very urgent ???? >> >> Here is my jsp code : >> >>
>> > class="form-autocomplete" /> >>
>> > baseUrl="/enterpriseUI/userAjaxComplete.do" >> source="username" >> target="username" >> parameters="username={username}" >> className="testcomplete" >> minimumCharacters="1"/> >> >> >> >> Here is my Action class code : >> >> public ActionForward execute(ActionMapping mapping, ActionForm form, >> HttpServletRequest request, >> HttpServletResponse response) { >> >> >> logger.info("********** Inside ajaxAutoCompleteAction >> > ********** "); > >> try{ >> ArrayList usersList = (ArrayList)UserManager.loadAll(); >> >> // return new AjaxXmlBuilder().addItems(usersList, "model", >> "make").toString(); >> }catch(BusinessObjectException e){ >> e.printStackTrace(); >> } >> return mapping.findForward("success"); >> } >> >> >> >> Thanks in advance >> >> >> Sony Thomas >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> * * * >> >> This email with attachments is solely for the use of the individual or >> > > >> entity to whom it is addressed. Please also be aware that the DnB NOR >> Group cannot accept any payment orders or other legally binding >> correspondence with customers as a part of an email. >> >> This email message has been virus checked by the anti virus programs >> used in the DnB NOR Group. >> >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> * * * >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org