RE: Question on formbeans and collections in iterate tags
Hi, Further information as requested: The formbean is as below: package com.rbsg.application.serviceuserweb.forms; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionMapping; import org.apache.struts.validator.ValidatorForm; import temptest.OrderList; import temptest.OrderProduct; public class ScReplacementOrderFormBean extends ValidatorForm { private String contactID = null; private boolean waiveCharge = false; private String waiveReason = null; private String reasonReplaced = null; private OrderList orderProductList = null; public void reset(ActionMapping mapping, HttpServletRequest request) { contactID = null; waiveCharge = false; waiveReason = null; reasonReplaced = null; orderProductList = null; } public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); return errors; } public String getContactID() { return contactID; } public String getReasonReplaced() { return reasonReplaced; } public boolean isWaiveCharge() { return waiveCharge; } public String getWaiveReason() { return waiveReason; } public void setContactID(String string) { contactID = string; } public void setReasonReplaced(String string) { reasonReplaced = string; } public void setWaiveCharge(boolean b) { waiveCharge = b; } public void setWaiveReason(String string) { waiveReason = string; } public OrderList getOrderProductList() { return orderProductList; } public void setProductList(OrderList list) { orderProductList = list; } } The relevant portion of struts-config.xml is: form-bean name=scReplacementOrderBean type=com.rbsg.application.serviceuserweb.forms.ScReplacementOrderFormBean /form-bean action path=/scSubmitReplacement type=com.rbsg.application.serviceuserweb.actions.ScSubmitReplacementAction name=scReplacementOrderBean forward name=success path=ScContactListPath/forward /action The relevant portion of the JSP is below: logic:iterate id=orderproductlist name=orderProductList property=arrayList type=temptest.OrderProduct tr tdhtml:text indexed=true size='4' maxlength='4' name=orderproductlist property=productQuantity //td tdbean:write name=orderproductlist property=productDesc //td tdbean:write name=orderproductlist property=productCharge /html:hidden name=orderproductlist property=productID //td /tr /logic:iterate This is obviously contained in a larger form, which executes the SCSubmitReplacement action. I've investigated options like multibox, but because I need to capture 2 pieces of information from each line of the iterate (the productID and the productQuantity) I don't think this suits my needs. Can I get the updated collection in the formbean, or is there another technique I need to use? Thanks in advance for all advice Regards, Jim -Original Message- From: news [mailto:[EMAIL PROTECTED] Sent: 11 November 2006 01:52 To: user@struts.apache.org Subject: Re: Question on formbeans and collections in iterate tags *** WARNING : This message originates from the Internet *** Gallagher, Jim (RBoS ITDS Dublin) wrote: Hi, I'm having an issue with a formbean not containing the data I expect when returned from a JSP. I suspect this is a common problem, but despite searches I can't find a solution on the net. Any assistance will be gratefully received. My form consists of general data about a specific person, along with an area about purchases. The purchases are listed using logic:iterate tags, with a collection used to drive the iteration. On submission of the form I was hoping/expecting that the collection would be populated into the same-named instance variable in the formbean, allowing me to retrieve the changes made by the user in the JSP. However, this is not happening as the formbean instance variable is null. Could anyone suggest a way forward or point me to web resource to assist with this? I'm sure it's something I'm doing wrong, but I'm not sure what. We'd need a bit more information to be able to help much. What does your form bean look like? How is it configured in struts-config.xml? What do the relevant action mappings look like? And how is your JSP coded? L. - To unsubscribe, e-mail: [EMAIL
RE: Problem while using logic:iterate
Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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]
RE: Problem while using logic:iterate
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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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]
Lost Error Message!!
Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem while using logic:iterate
try to use the scope attribute of the iterator tag and see, eg: logic:iterate id=listvo name=users type=com.user.uservo scope=request logic:iterate id=listvo name=users type=com.user.uservo scope=session Thanks, Nuwan. - Original Message - From: santas [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, November 13, 2006 12:03 PM Subject: RE: Problem while using logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Lost Error Message!!
Im not very sure, but i think that when you use redirect= true a new request is built(when the redirect is made) and there you loose all your data that is in the request. To avoid the resubmit there is others solutions. Regards, Juan -Mensaje original- De: Balwinder [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m. Para: Struts Users Mailing List Asunto: Lost Error Message!! Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date: 12/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem while using logic:iterate
Hi, You mustn´t add an ArrayList in request scope, you have to add a Collection of objects of the class uservo . 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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.comhttp://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.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Lost Error Message!!
Would the svaeToken(), isTokenValid() helps you..? -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 6:45 PM To: 'Struts Users Mailing List' Subject: RE: Lost Error Message!! Im not very sure, but i think that when you use redirect= true a new request is built(when the redirect is made) and there you loose all your data that is in the request. To avoid the resubmit there is others solutions. Regards, Juan -Mensaje original- De: Balwinder [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m. Para: Struts Users Mailing List Asunto: Lost Error Message!! Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date: 12/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at [EMAIL PROTECTED] and delete this email from your records. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem while using logic:iterate
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 logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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, 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]
Re: Problem while using logic:iterate
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. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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
Re: Problem while using logic:iterate
Hi again, Instead of using ArrayList uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); you have to use this: *java.util.Collection* uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); Regards, -- Eider On 11/13/06, Puneet Lakhina [EMAIL PROTECTED] 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. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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
Re: Last Page Regenration
Nitin M. Mandolkar wrote: This solution is also good. If later on you find the filter code block is taking more time and creating some performance issues in that case you can easily remove it. By making few changes in web.xml. Even the URL pattern can help you more to apply it for specific pages rather than applying it to all pages. Nitin -Original Message- From: Chetan Pandey [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 11:57 PM To: 'Struts Users Mailing List' Subject: RE: Last Page Regenration Use Filters. On every page a User visits make it visit a Filter. Record the page when it is visited and store it in the DB. That what when he logs in fetch this value and send User to this page. Make sure you put your Filter Info in web.xml in the following manner: filter filter-namemyFilter/filter-name filter-classcomplete.path.to.Filter/filter-class /filter filter-mapping filter-name myFilter /filter-name url-pattern*.do/url-pattern /filter-mapping Just Remember Writing Filters is trivial. Chetan -Original Message- From: Balwinder [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 2:56 PM To: Struts Users Mailing List Subject: Last Page Regenration Hi All !! I have a situation in my application, i want to implement a functionality that does, if a user accidentally close his browser window, on his next request(in new window) to the application he should be displayed with the last page he visited this should happen after login(authentication). I want this to implement without cookies. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Nitin and Chetan Pandey, Thanks for your help. For some reaon iam currently giving up this feature in our web app. any way thanks a lot. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lost Error Message!!
Anil Kumar T wrote: Would the svaeToken(), isTokenValid() helps you..? -Original Message- From: Juan Espinosa [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 6:45 PM To: 'Struts Users Mailing List' Subject: RE: Lost Error Message!! Im not very sure, but i think that when you use redirect= true a new request is built(when the redirect is made) and there you loose all your data that is in the request. To avoid the resubmit there is others solutions. Regards, Juan -Mensaje original- De: Balwinder [mailto:[EMAIL PROTECTED] Enviado el: Lunes, 13 de Noviembre de 2006 09:10 a.m. Para: Struts Users Mailing List Asunto: Lost Error Message!! Hi!! Iam losing error message when iam setting redirect=true in action mapping, iam doing this to avoid resubmit of data on page refresh ie if user press F5 function key. Any help would be highly appreciated. Thanks and Regards, Balwinder Kumar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.3/531 - Release Date: 12/11/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at [EMAIL PROTECTED] and delete this email from your records. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No, using struts 1.0. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] 404 - /struts2-mailreader/Tour.do
It's up now. We're just trying to run too many example applications through this hosted account. -Ted. On 11/12/06, wolverine my [EMAIL PROTECTED] wrote: Hi Wendy I did not deploy the application locally, it is on the Struts 2's Tutorial at http://struts.apache.org/WW/tutorials.html Under the Primers section, the link of 'MailReader Tour' is pointing to http://planetstruts.org/struts2-mailreader/Tour.do On 11/13/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/12/06, wolverine my [EMAIL PROTECTED] wrote: When clicked on the MailReader Tour in Struts 2 tutorial, Where? Have you deployed it locally? What version? it shows the following error: HTTP Status 404 - /struts2-mailreader/Tour.do A .do url in a s2 app seems odd... -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem while using logic:iterate
Hi Sandip, the flow should be like. 1. from action class call you call method which in turn fetch the data from DB. 2. in that method, populate the data and the whole row should be added into object. something like while(rs.next()) { m1 = new EmpModel(); // this is data object. m1.setEmpid(rs.getString(1)); // set data m1.setLocation(rs.getString(2)); m1.setDesignation(rs.getString(3)); m1.setSalary(rs.getString(4)); m1.setContactNumber(rs.getString(5)); // verify it. System.out.println(m1.getEmpid()+-+m1.getLocation()+-+m1.getDesignation()+-+m1.getSalary()+-+m1.getContactNumber()); a1.add(m1);// add it to arraylist. } 3. return the arraylist to action class. 4. set it to request Attribute. 5. on jsp page use logic:iterate to fetch it. 6. AtLast debug if any problem using scriplet. Try it. -Original Message- From: Eider Iturbe [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 6:21 PM To: Struts Users Mailing List Subject: Re: Problem while using logic:iterate Hi again, Instead of using ArrayList uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); you have to use this: *java.util.Collection* uservoList = new ArrayList(); request.setAttribute(listvo,uservoList); Regards, -- Eider On 11/13/06, Puneet Lakhina [EMAIL PROTECTED] 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. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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
Re: Problem while using logic:iterate
Sunita- please display bean code for com.user.uservo M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Sunita Ramchandra Shukla [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, November 13, 2006 7:30 AM Subject: RE: Problem while using logic:iterate 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 logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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, 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]
RE: Problem while using logic:iterate
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 logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type=com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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, 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:
Re: Problem while using logic:iterate
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 logic:iterate 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. logic:iterate id=uservo name=listvo !--Some Processing-- /logic:iterate 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 logic:present name=users table tr th/th th/th /tr logic:iterate id=listvo name=users type= com.user.uservo tr td bean:write name=listvo property=firstname/ /td td bean:write name=listvo property=lastname/ /td /tr /table /logic:present and again i got same error is there any other solution to this Sunita Ramchandra Shukla wrote: Hi, Try this . logic:iterate id=listvo name=userList type=com.user.UserModel 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 logic:iterate hi, I am having one problem while trying to use logic:iterate tag inmy jsp i am using it as follows:- logic:iterate id =listvo name=users tr td bean:write name=listvo property=firstname/ /td /tr /logic:iterate 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: html messages tag
The error message is not related to the logic:messagesPresent tag. This error is caused by having an html:xxx form field tag (checkbox, file, text, textarea, password, etc.) that is not inside an html:form/html:form tag. Look at the erroring jsp's to see where this is the case. Often exception traces (if the JSP is compiled with debugging support) will contain the line in the JSP that caused the exception which can help a lot in localizing the problem. -ed On 11/13/06, Puneet Lakhina [EMAIL PROTECTED] wrote: I am using html messages tag to do custom formatting of my error messages on different pages. I have something like this logic:messagesPresent html:messages id=error bean:write name=error filter=false / /html:messages /logic:messagesPresent This usually works fine but under certain conditions I get Cannot find bean error in any scope javax.servlet.jsp.JspException: Cannot find bean error in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286) ... I don't understand this. If there are no messages then it shouldn't even come to bean write isn't it? I am using struts 1.1 and any errors are added in the validate method of the form bean. Thanks -- Puneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DispatchAction help?
You should do validation manually in your action. Set validation='false' in your struts-config.xml and call form.validate in the action methods that need to be validated on. For example, do something like this in a method: ActionMessages errors = form.validate(mapping,request); if ( errors != null errors.size() 0 ) { saveErrors(request, errors); return mapping.getInputForward(); // if action defines input= in struts-config.xml } -ed On 11/13/06, Mallik [EMAIL PROTECTED] wrote: HI friends i am using DispatchAction but i don't want to validate for some buttons and i want validate the data for some another buttons like suppose i have save (to add the data and go to view details page) for this validation should work Add more (to add the data and back to same page) for this validation should work cancel (just go back) for this validation should not work View (just go to View page) for this validation should not work how can i do this help me please Ur's Mallik -- View this message in context: http://www.nabble.com/DispatchAction--help--tf2620433.html#a7312355 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP Request Parameter overwrites ActionForm Field ?
Dear developers, I need help to the following problem. Scenario: User edits the Field comment on the HTML page (.e.g. hello). This field corresponds with ActionForm property comment. I set the the ActionForm.comment null in the Action class(the HTTPServletRequest Parameter comment remains hello there is no methode to change it). After that will the page displayed again, but the field comment is no more visible for the user (with javascript is disabled). User sends the page and in the (same) ActionForm is the comment property nit null, but hello. Could anybody advise me ? Warm regards, Laszlo Laszlo Mihalka im Auftrage der SCHUFA Holding AG Softwareentwicklung SCHUFA Holding AG Kormoranweg 5 65201 Wiesbaden Tel.: +49 (0) 6 11 - 92 78 - 268 Fax:+49 (0) 6 11 - 92 78 - 209 E-Mail:[EMAIL PROTECTED] http://www.schufa.de http://www.schufa.de/
RE: In search of a perfect AJAX solution for Struts
IMHO, yahoo UI is the most Robust Library out there... at least one that I could find (and yes I don't work for Yahoo :)) ..., the biggest problem with Dojo that I have seen is in its performance,(goggling gives a quite good view of it as well) and there has been instances that it had completely locked a browser ... Dojo does too much extra ... I agree that Dojo vs scriptaculos is not completely fair comparison, but bottom line is, scriptaculos is faster compared to same features from large lib of Dojo toolkit, and if there is solution that gives clean Ajax usage in Struts, I would go for one that does not use Dojo(if it does use any client side library at all and is not abstracted out to let developer choose), Maybe it will change it time because I was a fan of Dojo at first ... Kind Regards. Levan -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 7:03 PM To: Struts Users Mailing List Subject: Re: In search of a perfect AJAX solution for Struts Levan Dvalishvili wrote: There is small cavity regarding ajaxtags as a name : , http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage at the moment, good thing about it is that they use prototype, Note however that there are issues with Prototype messing with intrinsic Javascript objects... a few minutes with Google will turn up plenty of discussion. There was a thread just a few days ago around here that touched on it too. Something to be aware of at least. script.acu.los, which in my opinion is lot faster and better that overweight Dojo, Not really a fair comparison though, Dojo is *much* more than scriptaculous is... it's not just widgets and effects and such, it's a whole library of rather neat Javascript stuff (collections for instance). Plus, Dojo is customizable so you can only use the pieces you need. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Dynamically Parameterize Redirect Result
On 11/10/06 6:46 PM, Don Brown [EMAIL PROTECTED] wrote: I believe that any unknown result parameters are automatically used as request parameters for the redirect. Then, use an ognl expression for your param value and provide a getter on your action for the value. Hi Don, Do you have an example of using OGNL to provide the param to the redirect? Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP] struts 1.2.9 multibox/checkbox in session scoped form
I reset my checkboxes and a multibox in a form reset method but then when I come back to the page the values arn't checked. If I don't reset them then it won't register them as not checked anymore. How do I fix this? Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form
A couple of things to check 1. Is your get action using the same form as your post action? 2. Do the names of the checkboxes in the html match your form? 3. Where are you resetting the checkboxes? I'm hoping you're doing it by overriding ActionForm.reset(). -Original Message- From: Garner Shawn [mailto:[EMAIL PROTECTED] Sent: 13 November 2006 16:47 To: user@struts.apache.org Subject: [HELP] struts 1.2.9 multibox/checkbox in session scoped form I reset my checkboxes and a multibox in a form reset method but then when I come back to the page the values arn't checked. If I don't reset them then it won't register them as not checked anymore. How do I fix this? Shawn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.3.5 and Eclipse 3.2
I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the project structure. - The Struts 1.3.x approach seems to be to supply them inside struts-taglib-1.3.5.jar, and to access them through the classpath in /META-INF/tld. - The Struts 1.3.x approach should not cause problems when executing the application, but is a nuisance in the Eclipse Editor. - The old 1.2.x approach of placing the TLDs in /WEB-INF is still usable. - The Eclipse 3.2 editor will only recognize tags placed in /WEB-INF. So... Band-aid solution: - Extract TLD files from struts-taglib-1.3.5.jar into the /WEB-INF folder - Use the old URI: /WEB-INF/whicheverTag.tld Real solution: - Eclipse 3.2 needs a bug-fix. It should be reading the URI, and not rely on a specific location. Bruno -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question reg EventDispatchAction
Hi All I have multiple submit buttons on my jsp page. I would like to use EventDispatchAction to do that. The issue is I have been working with struts1.1 and I can't upgrade to struts1.2.9. Is is possible for me to add EventDispatchAction to struts1.1 version. If yes, please let me how can I do it? If this is not possible, is there any better solution. I have used LookupDIstpatchAction in past but I don't want to use that anymore. Thanks for help. -- View this message in context: http://www.nabble.com/Question-reg-EventDispatchAction-tf2624605.html#a7323743 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: Struts 1.3.5 and Eclipse 3.2
On struts wiki it says to remove local or old external references of TLDs with new external URLs : http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 topic 5.4 TLD URLs, myeclpse which I think is based on eclipse WTP, works fine with struts 1.3.x using external TLD references. Levan Dvalishvili Support Lead US Verticali,Inc (646) 736 - 6075 -Original Message- From: Bruno Melloni [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 1:11 PM To: Struts Users Mailing List Subject: RE: Struts 1.3.5 and Eclipse 3.2 I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the project structure. - The Struts 1.3.x approach seems to be to supply them inside struts-taglib-1.3.5.jar, and to access them through the classpath in /META-INF/tld. - The Struts 1.3.x approach should not cause problems when executing the application, but is a nuisance in the Eclipse Editor. - The old 1.2.x approach of placing the TLDs in /WEB-INF is still usable. - The Eclipse 3.2 editor will only recognize tags placed in /WEB-INF. So... Band-aid solution: - Extract TLD files from struts-taglib-1.3.5.jar into the /WEB-INF folder - Use the old URI: /WEB-INF/whicheverTag.tld Real solution: - Eclipse 3.2 needs a bug-fix. It should be reading the URI, and not rely on a specific location. Bruno -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and Eclipse 3.2
I hope you meant Eclipse *Web Tools* and that your project is a Web Application. If not, then Eclipse (as Robin hints at below) has no concept of the web root or what jars belong where and why. That's the purpose of having a project type that understands Web Applications. If using Maven, to generate the appropriate Eclipse config files for your project, try this... $ mvn eclipse:eclipse -Dwtpversion=1.0 -- James Mitchell 678.910.8017 On Nov 13, 2006, at 1:11 PM, Bruno Melloni wrote: I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the project structure. - The Struts 1.3.x approach seems to be to supply them inside struts-taglib-1.3.5.jar, and to access them through the classpath in /META-INF/tld. - The Struts 1.3.x approach should not cause problems when executing the application, but is a nuisance in the Eclipse Editor. - The old 1.2.x approach of placing the TLDs in /WEB-INF is still usable. - The Eclipse 3.2 editor will only recognize tags placed in /WEB-INF. So... Band-aid solution: - Extract TLD files from struts-taglib-1.3.5.jar into the /WEB-INF folder - Use the old URI: /WEB-INF/whicheverTag.tld Real solution: - Eclipse 3.2 needs a bug-fix. It should be reading the URI, and not rely on a specific location. Bruno -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form
1. Yes 2. Yes 3 In ActionForm.reset If I comment out my reset method then it populates the checkboxes based on the form values like I want however I then loose the ability to only get the checked value put into my action form after the page is submitted. From: Lance Semmens [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Date: Mon, 13 Nov 2006 17:08:00 + Subject: RE: [HELP] struts 1.2.9 multibox/checkbox in session scoped form A couple of things to check 1. Is your get action using the same form as your post action? 2. Do the names of the checkboxes in the html match your form? 3. Where are you resetting the checkboxes? I'm hoping you're doing it by overriding ActionForm.reset(). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts 1.3.5 and Eclipse 3.2
Yes, I am using the WTP plug-in and the project is a Web Application. I am not using maven to build Eclipse... I am using the canned Eclipse 3.2.1 from eclipse.org and all the latest plug-ins downloaded from inside Eclipse. I also found a note at the bottom of section 2 of http://wiki.apache.org/struts/StrutsUpgradeNotes12to13 that seems to confirm the need for the baind-aid - see usefull for some IDE's comment there. (An alternative is specified in 5.4 as suggested by Levan, but it makes the app - which could be an intranet app - dependent on a connection to the internet, not good for mission-critical apps) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Monday, November 13, 2006 1:56 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 I hope you meant Eclipse *Web Tools* and that your project is a Web Application. If not, then Eclipse (as Robin hints at below) has no concept of the web root or what jars belong where and why. That's the purpose of having a project type that understands Web Applications. If using Maven, to generate the appropriate Eclipse config files for your project, try this... $ mvn eclipse:eclipse -Dwtpversion=1.0 -- James Mitchell 678.910.8017 On Nov 13, 2006, at 1:11 PM, Bruno Melloni wrote: I did some testing and came to the conclusions below. I might be wrong, but I think these are correct: - Eclipse 3.2 (plus plug-ins) is not yet compatible with Struts 1.3.x. Chances are that it is also incompatible with Struts 2.0.x. - Struts 1.3.x has changed how TLD tags are placed on the project structure. - The Struts 1.3.x approach seems to be to supply them inside struts-taglib-1.3.5.jar, and to access them through the classpath in /META-INF/tld. - The Struts 1.3.x approach should not cause problems when executing the application, but is a nuisance in the Eclipse Editor. - The old 1.2.x approach of placing the TLDs in /WEB-INF is still usable. - The Eclipse 3.2 editor will only recognize tags placed in /WEB-INF. So... Band-aid solution: - Extract TLD files from struts-taglib-1.3.5.jar into the /WEB-INF folder - Use the old URI: /WEB-INF/whicheverTag.tld Real solution: - Eclipse 3.2 needs a bug-fix. It should be reading the URI, and not rely on a specific location. Bruno -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: Struts 1.3.5 and Eclipse 3.2 Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.tld {usual tooling/user practice} Then you can access the .tld as %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % I wonder why you dont have the actual .tld files in the web-inf folder of your webApp. If you actually don't then you can get them from Struts download site. Hope it helps, regards, robin Paul Benedict wrote: The taglib URI should be the the http:// address, not the /META-INF location. If you are unsure what the address is, open up the TLD files and see. -- Paul Bruno Melloni wrote: I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. - struts-taglib-1.3.5.jar is in the classpath. - Inside the jar, in /META-INF/tld are the struts tld files. - I have the following in index.jsp: %@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic % logic:redirect forward=welcome / - Eclipse whines about the tag not being known. I even tried replacing the URI with http://struts.apache.org/tags-logic;, but no cigar. Any idea what is going on, and how to fix it? Thanks, Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 1.3.5 and Eclipse 3.2
On 11/13/06, Bruno Melloni [EMAIL PROTECTED] wrote: (An alternative is specified in 5.4 as suggested by Levan, but it makes the app - which could be an intranet app - dependent on a connection to the internet, not good for mission-critical apps) No, it doesn't. Those are URIs not URLs. (Try one of them in a browser... it doesn't exist.) The URIs you see there match the ones in the TLDs in the Struts jar files, and allow the container to discover the TLDs without your having to configure them in web.xml. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Console error message for a working logic:iterate tag
I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li html:link page=/getaccountdetail.do paramId=id paramName=accountSummaryView paramProperty=accountId bean:write name=accountSummaryView property=accountType/ /html:link /li /logic:iterate /ul I have verified that the action that loads this JSP has a form called accountInformationForm associated with it and the JSP actually renders fine, correctly iterating through the collection and printing out a link to each account. Strangely, I get the following error in my Tomcat console though: Nov 13, 2006 6:15:14 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find bean: accountInformationForm in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935) at org.apache.struts.taglib.logic.IterateTag.doStartTag (IterateTag.java:232) at org.apache.jsp.account_005finformation_jsp._jspService (account_005finformation_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) When I comment out the section the console error goes away, so I'm sure that's where its coming from. I'm also sure that page is functioning 100% correctly. Any thoughts on why I might be getting this seemingly incorrect error message in the console and not in the application? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] Loading FreeMarker template from Classpath?
Hi! In http://cwiki.apache.org/WW/freemarker.html, it explained that Struts 2 looks for FreeMarker template in Web application followed by the Class path. However, when I placed my FreeMarker template in webapps/dummy/WEB-INF/classes/com/dummy/test.ftl it caused the following exception: java.io.FileNotFoundException: Template /test.ftl not found. freemarker.template.Configuration.getTemplate(Configuration.java:441) freemarker.template.Configuration.getTemplate(Configuration.java:411) Isn't it test.ftl included in the Class path? Did I miss out anything here? Note: it works when I placed the test.ftl in webapps/dummy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp page/actions design question
Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can be re-used in the other one too. The way I have designed is for a jsp have a prepare action and dispatch action. But not sure how to design this page so that I can re-use the code in another too. any suggesions are appreciated. Thanks. _ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Loading FreeMarker template from Classpath?
Remember the thing that is on the classpath is WEB-INF\classes, not it's subclasses. I don't use FreeMarker, but I'd suggest puting that file in WEB-INF\classes and giving it a try. (*Chris*) On 11/13/06, wolverine my [EMAIL PROTECTED] wrote: Hi! In http://cwiki.apache.org/WW/freemarker.html, it explained that Struts 2 looks for FreeMarker template in Web application followed by the Class path. However, when I placed my FreeMarker template in webapps/dummy/WEB-INF/classes/com/dummy/test.ftl it caused the following exception: java.io.FileNotFoundException: Template /test.ftl not found. freemarker.template.Configuration.getTemplate(Configuration.java :441) freemarker.template.Configuration.getTemplate(Configuration.java :411) Isn't it test.ftl included in the Class path? Did I miss out anything here? Note: it works when I placed the test.ftl in webapps/dummy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp page/actions design question
you can use %@ include file=... % to include the common JSP. On 11/14/06, fea jabi [EMAIL PROTECTED] wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can be re-used in the other one too. The way I have designed is for a jsp have a prepare action and dispatch action. But not sure how to design this page so that I can re-use the code in another too. any suggesions are appreciated. Thanks. _ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jsp page/actions design question
I'd look at either JSP Include or Tiles. (*Chris*) On 11/13/06, fea jabi [EMAIL PROTECTED] wrote: Using struts. Have a JSP cust.jsp In it half of it is very specific to that page only. other half is shown in this cust.jsp and another report.jsp too. want to implement this so that code can be re-used in the other one too. The way I have designed is for a jsp have a prepare action and dispatch action. But not sure how to design this page so that I can re-use the code in another too. any suggesions are appreciated. Thanks. _ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Loading FreeMarker template from Classpath?
Hi Chris Yes, it works when I put the file in WEB-INF/classes On 11/14/06, Chris Pratt [EMAIL PROTECTED] wrote: Remember the thing that is on the classpath is WEB-INF\classes, not it's subclasses. I don't use FreeMarker, but I'd suggest puting that file in WEB-INF\classes and giving it a try. (*Chris*) On 11/13/06, wolverine my [EMAIL PROTECTED] wrote: Hi! In http://cwiki.apache.org/WW/freemarker.html, it explained that Struts 2 looks for FreeMarker template in Web application followed by the Class path. However, when I placed my FreeMarker template in webapps/dummy/WEB-INF/classes/com/dummy/test.ftl it caused the following exception: java.io.FileNotFoundException: Template /test.ftl not found. freemarker.template.Configuration.getTemplate(Configuration.java :441) freemarker.template.Configuration.getTemplate(Configuration.java :411) Isn't it test.ftl included in the Class path? Did I miss out anything here? Note: it works when I placed the test.ftl in webapps/dummy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 5:06 AM To: user@struts.apache.org Subject: Console error message for a working logic:iterate tag I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li html:link page=/getaccountdetail.do paramId=id paramName=accountSummaryView paramProperty=accountId bean:write name=accountSummaryView property=accountType/ /html:link /li /logic:iterate /ul I have verified that the action that loads this JSP has a form called accountInformationForm associated with it and the JSP actually renders fine, correctly iterating through the collection and printing out a link to each account. Strangely, I get the following error in my Tomcat console though: Nov 13, 2006 6:15:14 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find bean: accountInformationForm in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935) at org.apache.struts.taglib.logic.IterateTag.doStartTag (IterateTag.java:232) at org.apache.jsp.account_005finformation_jsp._jspService (account_005finformation_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) When I comment out the section the console error goes away, so I'm sure that's where its coming from. I'm also sure that page is functioning 100% correctly. Any thoughts on why I might be getting this seemingly incorrect error message in the console and not in the application? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console error message for a working logic:iterate tag
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano The struts config file uses scope=request for this action. I tried adding a bean:write before the html:link and it worked fine, however, i'm still getting the error only in the console saying that it cannot find the bean in any scope. Do you think this something to do with the session using scope=request? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console error message for a working logic:iterate tag
Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:html XSS vulnerability?
The value of lang attribute which html:html tag generates is not escaped. I think it could cause XSS problem If Accept-Language HTTP header's value is replaced with script tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject: Re: Console error message for a working logic:iterate tag Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi, U can enclose logic:present /logic:present tag before coming into iterate tag and test it.. Regards, Mano -Original Message- From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 11:55 AM To: 'Struts Users Mailing List' Subject: RE: Console error message for a working logic:iterate tag Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject: Re: Console error message for a working logic:iterate tag Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setInput method of ActionMapping
Hi, I want to call mapping .setInput() method inside my validate method of a form bean. But it throws an Exception. java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ActionConfig.setInput(ActionC Please help me to correct this issue. Thanking You, Chamal. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setInput method of ActionMapping
Can u Pls mention ur struts version ? Regards, Mano -Original Message- From: chamal desilva [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 1:08 PM To: user@struts.apache.org Subject: setInput method of ActionMapping Hi, I want to call mapping .setInput() method inside my validate method of a form bean. But it throws an Exception. java.lang.IllegalStateException: Configuration is frozen at org.apache.struts.config.ActionConfig.setInput(ActionC Please help me to correct this issue. Thanking You, Chamal. Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]