how to add edit/add/delete functionality
Hi all i am new to struts can anybody give me any idea for addind add/edit/delete functionality in a struts application it will be great if i can get the flow thank you -- View this message in context: http://www.nabble.com/how-to-add-edit-add-delete-functionality-tf2629040.html#a7336292 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem while using
Thank You All for your great support,help and valueable time finally it is working now, today i learned a lot from you all about tag Thank You once again Puneet Lakhina wrote: > > On 11/13/06, Eider Iturbe <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> You mustnĀ“t add an ArrayList in request scope, you have to add a >> Collection >> of objects of the class "uservo" . > > > Dont really know what you are trying to say. An arraylist would be a > collection of uservo. > > ArrayList uservoList = new ArrayList(); > //populate list something like uservoList.add(new Uservo()); > request.setAttribute("listvo",uservoList); > > Thats it. Im all set to use an ArrayList i set in request scope. > > > > > > Regards, >> >> -- >> Eider >> >> >> On 11/13/06, santas <[EMAIL PROTECTED]> wrote: >> > >> > >> > HI >> > >> > i tried what u said but stil the same error is shown to me >> > i have set the list with key "users" >> > then i first check >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > and again i got same error >> > is there any other solution to this >> > >> > >> > >> > >> > >> > Sunita Ramchandra Shukla wrote: >> > > >> > > >> > > Hi, >> > > Try this . >> > > >> > > Here name attribute should be what you have set the key in request >> and >> > > specify the location of your class in type w.r.t web application. >> > > Rest is fine. >> > > It should work. >> > > >> > > >> > > -Original Message- >> > > From: santas [mailto: [EMAIL PROTECTED] >> > > >> > > Sent: Monday, November 13, 2006 4:07 PM >> > > To: user@struts.apache.org >> > > Subject: Problem while using >> > > >> > > >> > > hi, >> > > >> > > I am having one problem while trying to use tag inmy >> jsp >> > > >> > > i am using it as follows:- >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > what i am doing is setting one ArrayList in request scope and in that >> > > arraylist i am adding one object of >> > > >> > > a class "uservo" in which there are some properties >> > > like:-firstname,lastname >> > > etc of user >> > > >> > > what i am getting error is that:-- >> > > org.apache.jasper.JasperException: Cannot find bean: "listvo" in any >> > > scope >> > > >> > > Please give me any possible solutions >> > > thank you. >> > > >> > > >> > > >> > > -- >> > > >> > > View this message in context: >> > > >> http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf262135 >> > >> > > 8.html#a7314626 >> > > Sent from the Struts - User mailing list archive at Nabble.com< >> http://nabble.com/> >> > . >> > > >> > > >> > > - >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > > >> > >> - >> > > This message, including any attachments, contains confidential >> > information >> > > intended for a specific individual and purpose, and is intended for >> the >> > > addressee only. Any unauthorized disclosure, use, dissemination, >> > copying, >> > > or distribution of this message or any of its attachments or the >> > > information contained in this e-mail, or the taking of any action >> based >> > on >> > > it, is strictly prohibited. If you are not the intended recipient, >> > please >> > > notify the sender immediately by return e-mail and delete this >> message. >> > > >> > > - >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > > >> > >> > -- >> > View this message in context: >> http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf2621358.html#a7315767 >> > >> > Sent from the Struts - User mailing list archive at Nabble.com< >> http://nabble.com/> >> > . >> > >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> >> > > > -- > Puneet > > -- View this message in context: http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf2621358.html#a7317404 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem while using
i added one following code to my jsp <% ArrayList list= (ArrayList)request.getAttribute("users"); System.out.println("the size of the arraylist is:--"+list.size()); Iterator it= list.iterator(); while(it.hasNext()) { uservo vo= (uservo)it.next(); System.out.println("username is:--"+vo.getUsername()); } %> here it is giving me correct usernames from List-->uservo that means list is set in request correctly and i am able to use "uservo" object in that list but the problem is not solved Sunita Ramchandra Shukla wrote: > > > Debug your code. > > Make sure that your "listvo" should exist. > Use scriplet and use println to verify the object status using in logic > iterate. > The problem lies with code written in action class. > -Original Message- > From: santas [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 13, 2006 5:33 PM > To: user@struts.apache.org > Subject: RE: Problem while using > > > HI > > i tried what u said but stil the same error is shown to me > i have set the list with key "users" > then i first check > > > > > > > > > > > > > > > > > > > > and again i got same error > is there any other solution to this > > > > > > > Sunita Ramchandra Shukla wrote: >> > >> > >> Hi, >> Try this . >> >> Here name attribute should be what you have set the key in request and >> specify the location of your class in type w.r.t web application. >> Rest is fine. >> It should work. >> > >> > >> -Original Message- >> From: santas [mailto:[EMAIL PROTECTED] >> > >> Sent: Monday, November 13, 2006 4:07 PM >> To: user@struts.apache.org >> Subject: Problem while using >> > >> > >> hi, >> > >> I am having one problem while trying to use tag inmy > jsp >> > >> i am using it as follows:- >> >> >> >> >> >> >> >> > >> what i am doing is setting one ArrayList in request scope and in that >> arraylist i am adding one object of >> > >> a class "uservo" in which there are some properties >> like:-firstname,lastname >> etc of user >> > >> what i am getting error is that:-- >> org.apache.jasper.JasperException: Cannot find bean: "listvo" in any >> scope >> > >> Please give me any possible solutions >> thank you. >> > >> > >> > >> -- >> > >> View this message in context: >> > http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf262135 >> 8.html#a7314626 >> Sent from the Struts - User mailing list archive at Nabble.com. >> > >> > >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > - >> This message, including any attachments, contains confidential > information >> intended for a specific individual and purpose, and is intended for > the >> addressee only. Any unauthorized disclosure, use, dissemination, > copying, >> or distribution of this message or any of its attachments or the >> information contained in this e-mail, or the taking of any action > based on >> it, is strictly prohibited. If you are not the intended recipient, > please >> notify the sender immediately by return e-mail and delete this > message. >> > >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > > > -- > > View this message in context: > http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf262135 > 8.html#a7315767 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > This message, including any attachments,
RE: Problem while using
HI i tried what u said but stil the same error is shown to me i have set the list with key "users" then i first check and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: > > > Hi, > Try this . > > Here name attribute should be what you have set the key in request and > specify the location of your class in type w.r.t web application. > Rest is fine. > It should work. > > > -Original Message- > From: santas [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 13, 2006 4:07 PM > To: user@struts.apache.org > Subject: Problem while using > > > hi, > > I am having one problem while trying to use tag inmy jsp > > i am using it as follows:- > > > > > > > > > what i am doing is setting one ArrayList in request scope and in that > arraylist i am adding one object of > > a class "uservo" in which there are some properties > like:-firstname,lastname > etc of user > > what i am getting error is that:-- > org.apache.jasper.JasperException: Cannot find bean: "listvo" in any > scope > > Please give me any possible solutions > thank you. > > > > -- > > View this message in context: > http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf262135 > 8.html#a7314626 > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > This message, including any attachments, contains confidential information > intended for a specific individual and purpose, and is intended for the > addressee only. Any unauthorized disclosure, use, dissemination, copying, > or distribution of this message or any of its attachments or the > information contained in this e-mail, or the taking of any action based on > it, is strictly prohibited. If you are not the intended recipient, please > notify the sender immediately by return e-mail and delete this message. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf2621358.html#a7315767 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem while using
hi, I am having one problem while trying to use tag inmy jsp i am using it as follows:- what i am doing is setting one ArrayList in request scope and in that arraylist i am adding one object of a class "uservo" in which there are some properties like:-firstname,lastname etc of user what i am getting error is that:-- org.apache.jasper.JasperException: Cannot find bean: "listvo" in any scope Please give me any possible solutions thank you. -- View this message in context: http://www.nabble.com/Problem-while-using-%3Clogic%3Aiterate%3E-tf2621358.html#a7314626 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]