Re: A table on a form from a List of Lists
but the object "myField" is a String and not a bean - Original Message - From: "Cédric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, January 26, 2005 11:30 AM Subject: Re: A table on a form from a List of Lists true is the good way ... On Tue, 25 Jan 2005 18:15:06 +0100, Olasoji Ajayi <[EMAIL PROTECTED]> wrote: i thought the property attribute is required in the html:text tag. - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 6:02 PM Subject: Re: A table on a form from a List of Lists > So if row is a list try this > > > > > > > > > > > > > > > > directly > > - Original Message - > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Tuesday, January 25, 2005 5:37 PM > Subject: Re: A table on a form from a List of Lists > > >> the second iterate will treat row like a bean and will try to retrieve >> the >> value of property called list of fields and it will result in an erroe >> because the row is actually a List and not a bean and it does not have >> a >> property called listofFields. and i dont think html:text works without >> a >> property attribute >> >> - Original Message - >> From: "Cedric Levieux" <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" >> Sent: Tuesday, January 25, 2005 5:27 PM >> Subject: Re: A table on a form from a List of Lists >> >> >> > And by this way ? >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > but the problem is that you didn't know which row is the parent of a > field >> > >> > - Original Message - >> > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> >> > To: "Struts Users Mailing List" >> > Sent: Tuesday, January 25, 2005 5:02 PM >> > Subject: Re: A table on a form from a List of Lists >> > >> > >> >> if this works, it will take care of writing the table to the jsp >> >> but i >> > need >> >> an html input type of field so i can also set the properties of the >> >> ActionForm by editing the fields and submiting the form. >> >> - Original Message - >> >> From: "Cedric Levieux" <[EMAIL PROTECTED]> >> >> To: "Struts Users Mailing List" ; "Hubert > Rabago" >> >> <[EMAIL PROTECTED]> >> >> Sent: Tuesday, January 25, 2005 3:36 PM >> >> Subject: Re: A table on a form from a List of Lists >> >> >> >> >> >> > Hi, >> >> > >> >> > There is a way : >> >> > >> >> > >> >> > >> >> > >> >> >> >> > proprties="listOfFields"> >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Regards, >> >> > >> >> > Cedric >> >> > >> >> > - Original Message - >> >> > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> >> >> > To: "Struts Users Mailing List" ; "Hubert >> > Rabago" >> >> > <[EMAIL PROTECTED]> >> >> > Sent: Tuesday, January 25, 2005 3:25 PM >> >> > Subject: Re: A table on a form from a List of Lists >> >> > >> >> > >> >> >> the method did not work, i think its because the nested tags >> >> >> deal > with >> >> > beans >> >> >> nested in beans but this deals with lists in a list in a bean >> >> >> (like > a >> >> >> 2 >> >> >> dimensional array), i was hoping if i code the property like >> >> >> property[row][col], if will call my getter method String >> > getProperty(int >> >> >> row, int col) since it calls String getProperty(int index) for >> >> >> property >> >> >> specified
Re: A table on a form from a List of Lists
i thought the property attribute is required in the html:text tag. - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 6:02 PM Subject: Re: A table on a form from a List of Lists So if row is a list try this directly - Original Message - From: "Olasoji Ajayi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 5:37 PM Subject: Re: A table on a form from a List of Lists the second iterate will treat row like a bean and will try to retrieve the value of property called list of fields and it will result in an erroe because the row is actually a List and not a bean and it does not have a property called listofFields. and i dont think html:text works without a property attribute - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 5:27 PM Subject: Re: A table on a form from a List of Lists > And by this way ? > > > > > > > > > > > > > > > > but the problem is that you didn't know which row is the parent of a field > > - Original Message - > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Tuesday, January 25, 2005 5:02 PM > Subject: Re: A table on a form from a List of Lists > > >> if this works, it will take care of writing the table to the jsp but i > need >> an html input type of field so i can also set the properties of the >> ActionForm by editing the fields and submiting the form. >> - Original Message - >> From: "Cedric Levieux" <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" ; "Hubert Rabago" >> <[EMAIL PROTECTED]> >> Sent: Tuesday, January 25, 2005 3:36 PM >> Subject: Re: A table on a form from a List of Lists >> >> >> > Hi, >> > >> > There is a way : >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Regards, >> > >> > Cedric >> > >> > - Original Message - >> > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> >> > To: "Struts Users Mailing List" ; "Hubert > Rabago" >> > <[EMAIL PROTECTED]> >> > Sent: Tuesday, January 25, 2005 3:25 PM >> > Subject: Re: A table on a form from a List of Lists >> > >> > >> >> the method did not work, i think its because the nested tags deal with >> > beans >> >> nested in beans but this deals with lists in a list in a bean (like a >> >> 2 >> >> dimensional array), i was hoping if i code the property like >> >> property[row][col], if will call my getter method String > getProperty(int >> >> row, int col) since it calls String getProperty(int index) for >> >> property >> >> specified as property[index]. >> >> all the methods i have used either comes up with the erron no gettter >> > method >> >> for this or that or null attribute. >> >> >> >> i am begining to think there is no way to get/set a two dimentional > array >> >> type of data in a form bean other than to make the property also >> >> beans. >> >> >> >> i would really appreciate any help because i want to keep my property > as >> >> a >> >> list of lists. the form bean is like: >> >> >> >> public class myBean extends ActionForm{ >> >> private List table = new ArrayList(); >> >> /// other propeties that are of type string >> >> >> >> public List getTable(){ >> >> return table; >> >> } >> >> >> >> public List getRow(int row){ >> >> return (List)table.get(row); >> >> } >> >> >> >> public String getField(int row, int col){ >> >> return (String)((List)table.get(row)).get(col); >> >> } >> >> >> >> and corresponding setter methods >> >> >> >> i wrote the acessor methods this way so i can specify different > property >> > to >> >> get different componentof the bean's property. >>
Re: A table on a form from a List of Lists
Wow, i never thought of that, i will definitly give that a try, i think it should work - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 5:34 PM Subject: Re: A table on a form from a List of Lists Well, lists of lists work, but the property to display or set itself must be a bean with accessors. It doesn't have to be a standalone class - it can be an inner class, or a dyna bean. On Tue, 25 Jan 2005 17:02:11 +0100, Olasoji Ajayi <[EMAIL PROTECTED]> wrote: if this works, it will take care of writing the table to the jsp but i need an html input type of field so i can also set the properties of the ActionForm by editing the fields and submiting the form. - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Hubert Rabago" <[EMAIL PROTECTED]> Sent: Tuesday, January 25, 2005 3:36 PM Subject: Re: A table on a form from a List of Lists > Hi, > > There is a way : > > > > > > > > > > > > > > Regards, > > Cedric > > - Original Message - > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" ; "Hubert > Rabago" > <[EMAIL PROTECTED]> > Sent: Tuesday, January 25, 2005 3:25 PM > Subject: Re: A table on a form from a List of Lists > > >> the method did not work, i think its because the nested tags deal with > beans >> nested in beans but this deals with lists in a list in a bean (like a >> 2 >> dimensional array), i was hoping if i code the property like >> property[row][col], if will call my getter method String >> getProperty(int >> row, int col) since it calls String getProperty(int index) for >> property >> specified as property[index]. >> all the methods i have used either comes up with the erron no gettter > method >> for this or that or null attribute. >> >> i am begining to think there is no way to get/set a two dimentional >> array >> type of data in a form bean other than to make the property also >> beans. >> >> i would really appreciate any help because i want to keep my property >> as >> a >> list of lists. the form bean is like: >> >> public class myBean extends ActionForm{ >> private List table = new ArrayList(); >> /// other propeties that are of type string >> >> public List getTable(){ >> return table; >> } >> >> public List getRow(int row){ >> return (List)table.get(row); >> } >> >> public String getField(int row, int col){ >> return (String)((List)table.get(row)).get(col); >> } >> >> and corresponding setter methods >> >> i wrote the acessor methods this way so i can specify different >> property > to >> get different componentof the bean's property. >> >> the problem i have is how to code a jsp to call the getter/setter >> methods > >> with two int arguments, i dont know very much about the bean > specification. >> can anyone tell me how to code my jsp or ActionForm to get the third >> accessor methods called, to populate an html:text or set the >> ActionForm >> property from html:text >> >> >> >> - Original Message - >> From: "Hubert Rabago" <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" >> Sent: Monday, January 24, 2005 4:18 PM >> Subject: Re: A table on a form from a List of Lists >> >> >> > Take a look at the nested tags. >> > In your case, your code may end up looking like: >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Hubert - 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: A table on a form from a List of Lists
the second iterate will treat row like a bean and will try to retrieve the value of property called list of fields and it will result in an erroe because the row is actually a List and not a bean and it does not have a property called listofFields. and i dont think html:text works without a property attribute - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 5:27 PM Subject: Re: A table on a form from a List of Lists And by this way ? but the problem is that you didn't know which row is the parent of a field - Original Message - From: "Olasoji Ajayi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, January 25, 2005 5:02 PM Subject: Re: A table on a form from a List of Lists if this works, it will take care of writing the table to the jsp but i need an html input type of field so i can also set the properties of the ActionForm by editing the fields and submiting the form. - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Hubert Rabago" <[EMAIL PROTECTED]> Sent: Tuesday, January 25, 2005 3:36 PM Subject: Re: A table on a form from a List of Lists > Hi, > > There is a way : > > > > > > > > > > > > > > Regards, > > Cedric > > - Original Message - > From: "Olasoji Ajayi" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" ; "Hubert Rabago" > <[EMAIL PROTECTED]> > Sent: Tuesday, January 25, 2005 3:25 PM > Subject: Re: A table on a form from a List of Lists > > >> the method did not work, i think its because the nested tags deal with > beans >> nested in beans but this deals with lists in a list in a bean (like a >> 2 >> dimensional array), i was hoping if i code the property like >> property[row][col], if will call my getter method String getProperty(int >> row, int col) since it calls String getProperty(int index) for >> property >> specified as property[index]. >> all the methods i have used either comes up with the erron no gettter > method >> for this or that or null attribute. >> >> i am begining to think there is no way to get/set a two dimentional array >> type of data in a form bean other than to make the property also >> beans. >> >> i would really appreciate any help because i want to keep my property as >> a >> list of lists. the form bean is like: >> >> public class myBean extends ActionForm{ >> private List table = new ArrayList(); >> /// other propeties that are of type string >> >> public List getTable(){ >> return table; >> } >> >> public List getRow(int row){ >> return (List)table.get(row); >> } >> >> public String getField(int row, int col){ >> return (String)((List)table.get(row)).get(col); >> } >> >> and corresponding setter methods >> >> i wrote the acessor methods this way so i can specify different property > to >> get different componentof the bean's property. >> >> the problem i have is how to code a jsp to call the getter/setter methods > >> with two int arguments, i dont know very much about the bean > specification. >> can anyone tell me how to code my jsp or ActionForm to get the third >> accessor methods called, to populate an html:text or set the >> ActionForm >> property from html:text >> >> >> >> - Original Message - >> From: "Hubert Rabago" <[EMAIL PROTECTED]> >> To: "Struts Users Mailing List" >> Sent: Monday, January 24, 2005 4:18 PM >> Subject: Re: A table on a form from a List of Lists >> >> >> > Take a look at the nested tags. >> > In your case, your code may end up looking like: >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Hubert >> > >> > On Mon, 24 Jan 2005 10:31:59 +0100, Olasoji Ajayi > <[EMAIL PROTECTED]> >> > wrote: >> >> Hi, >> >> i have been trying to create a table on my form from a single property > in >> >> my actionForm. the property is a List (actually an ArrayList) containg >> >> the rows of the table, each
Re: A table on a form from a List of Lists
if this works, it will take care of writing the table to the jsp but i need an html input type of field so i can also set the properties of the ActionForm by editing the fields and submiting the form. - Original Message - From: "Cedric Levieux" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Hubert Rabago" <[EMAIL PROTECTED]> Sent: Tuesday, January 25, 2005 3:36 PM Subject: Re: A table on a form from a List of Lists Hi, There is a way : Regards, Cedric ----- Original Message - From: "Olasoji Ajayi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Hubert Rabago" <[EMAIL PROTECTED]> Sent: Tuesday, January 25, 2005 3:25 PM Subject: Re: A table on a form from a List of Lists the method did not work, i think its because the nested tags deal with beans nested in beans but this deals with lists in a list in a bean (like a 2 dimensional array), i was hoping if i code the property like property[row][col], if will call my getter method String getProperty(int row, int col) since it calls String getProperty(int index) for property specified as property[index]. all the methods i have used either comes up with the erron no gettter method for this or that or null attribute. i am begining to think there is no way to get/set a two dimentional array type of data in a form bean other than to make the property also beans. i would really appreciate any help because i want to keep my property as a list of lists. the form bean is like: public class myBean extends ActionForm{ private List table = new ArrayList(); /// other propeties that are of type string public List getTable(){ return table; } public List getRow(int row){ return (List)table.get(row); } public String getField(int row, int col){ return (String)((List)table.get(row)).get(col); } and corresponding setter methods i wrote the acessor methods this way so i can specify different property to get different componentof the bean's property. the problem i have is how to code a jsp to call the getter/setter methods with two int arguments, i dont know very much about the bean specification. can anyone tell me how to code my jsp or ActionForm to get the third accessor methods called, to populate an html:text or set the ActionForm property from html:text - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, January 24, 2005 4:18 PM Subject: Re: A table on a form from a List of Lists > Take a look at the nested tags. > In your case, your code may end up looking like: > > > > > > > > > > > > > > > > Hubert > > On Mon, 24 Jan 2005 10:31:59 +0100, Olasoji Ajayi <[EMAIL PROTECTED]> > wrote: >> Hi, >> i have been trying to create a table on my form from a single property in >> my actionForm. the property is a List (actually an ArrayList) containg >> the rows of the table, each element (i.e row on the table) is represented >> by a List of Strings representing the fields of the list. i can code >> my >> JSP page to display the contents of the proprety in a table but i cant >> get it to set the values of the property from the page on submit. all the >> efforts has failed, i my latest effort, i coded the property as >> property[row][col] but i get an error that dia is no getter method for >> property[0][0]. i wrote the access methods like >> String getProperty(int row, int col){ >> return (String)((List)property.get(row)).get(col); >> } >> >> it did not work, any ideas will be apreciated. >> > > - > 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: A table on a form from a List of Lists
the method did not work, i think its because the nested tags deal with beans nested in beans but this deals with lists in a list in a bean (like a 2 dimensional array), i was hoping if i code the property like property[row][col], if will call my getter method String getProperty(int row, int col) since it calls String getProperty(int index) for property specified as property[index]. all the methods i have used either comes up with the erron no gettter method for this or that or null attribute. i am begining to think there is no way to get/set a two dimentional array type of data in a form bean other than to make the property also beans. i would really appreciate any help because i want to keep my property as a list of lists. the form bean is like: public class myBean extends ActionForm{ private List table = new ArrayList(); /// other propeties that are of type string public List getTable(){ return table; } public List getRow(int row){ return (List)table.get(row); } public String getField(int row, int col){ return (String)((List)table.get(row)).get(col); } and corresponding setter methods i wrote the acessor methods this way so i can specify different property to get different componentof the bean's property. the problem i have is how to code a jsp to call the getter/setter methods with two int arguments, i dont know very much about the bean specification. can anyone tell me how to code my jsp or ActionForm to get the third accessor methods called, to populate an html:text or set the ActionForm property from html:text - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, January 24, 2005 4:18 PM Subject: Re: A table on a form from a List of Lists Take a look at the nested tags. In your case, your code may end up looking like: Hubert On Mon, 24 Jan 2005 10:31:59 +0100, Olasoji Ajayi <[EMAIL PROTECTED]> wrote: Hi, i have been trying to create a table on my form from a single property in my actionForm. the property is a List (actually an ArrayList) containg the rows of the table, each element (i.e row on the table) is represented by a List of Strings representing the fields of the list. i can code my JSP page to display the contents of the proprety in a table but i cant get it to set the values of the property from the page on submit. all the efforts has failed, i my latest effort, i coded the property as property[row][col] but i get an error that dia is no getter method for property[0][0]. i wrote the access methods like String getProperty(int row, int col){ return (String)((List)property.get(row)).get(col); } it did not work, any ideas will be apreciated. - 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]
A table on a form from a List of Lists
Hi, i have been trying to create a table on my form from a single property in my actionForm. the property is a List (actually an ArrayList) containg the rows of the table, each element (i.e row on the table) is represented by a List of Strings representing the fields of the list. i can code my JSP page to display the contents of the proprety in a table but i cant get it to set the values of the property from the page on submit. all the efforts has failed, i my latest effort, i coded the property as property[row][col] but i get an error that dia is no getter method for property[0][0]. i wrote the access methods like String getProperty(int row, int col){ return (String)((List)property.get(row)).get(col); } it did not work, any ideas will be apreciated.
Re: A table as a single form bean property
i have not been using JSTL, i have been using struts tags. with this method, will the property be updated by the form on submit, because i dont only want to use it to display the values but also to set the values on the bean - Original Message - From: "Erik Weber" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, January 17, 2005 4:00 PM Subject: Re: A table as a single form bean property You can use nested (JSTL) c:forEach tags. The outer one will iterate over the List of Lists. The inner one will iterate over the List of Strings that is the current outer List. Hope that helps, Erik Olasoji Ajayi wrote: i have a form bean which has a rows property of type List, the list elements are also objects of type List. and these List objects contain strings (so i have a list of lists of strings). i want to display these strings in a form (an entire table will come from just the single property), all i have read in the documetions has to do with displaying the contents of a property that is a List but not the two level list i have here. - 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]
A table as a single form bean property
i have a form bean which has a rows property of type List, the list elements are also objects of type List. and these List objects contain strings (so i have a list of lists of strings). i want to display these strings in a form (an entire table will come from just the single property), all i have read in the documetions has to do with displaying the contents of a property that is a List but not the two level list i have here.
Re: error with logic:iterate on dynabeans
After going thru some source codes in the struts package, i discovered that the problem hat to do with formating, the last two colums of my table are DATE formats which translated to java.sql.date type in java. the bean taglib was looking for a resource ot determine how to format the data on those fields but since i did not create any resource configurations, it was looking for what was not there. i had to hard code a format on the bean:write tag using the format attribute. i dont think this is a neat idea especially for beginers like me who want to whip up a working application with as little advanced configurations as possible so we can learn one thing at a time, (resource bundles/intenationalizatin, jdbc, etc) and still get struts to give us some workable defaults. - Original Message - From: "Olasoji Ajayi" <[EMAIL PROTECTED]> To: "struts user mailing list" Sent: Tuesday, January 04, 2005 9:18 AM Subject: error with logic:iterate on dynabeans i get the following error when i run a web application to display the contents of a table. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.formFile_jsp._jspService(formFile_jsp.java:238) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994) org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)root causejavax.servlet.jsp.JspException: Cannot find message resources under keyorg.apache.struts.action.MESSAGE org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1233) org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082) org.apache.struts.taglib.TagUtils.message(TagUtils.java:1057) org.apache.struts.taglib.bean.WriteTag.retrieveFormatString(WriteTag.java:256) org.apache.struts.taglib.bean.WriteTag.formatValue(WriteTag.java:362) org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:234) org.apache.jsp.formFile_jsp._jspService(formFile_jsp.java:195) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994) org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211) org.apache.struts.action.ActionServlet.proce
error with logic:iterate on dynabeans
i get the following error when i run a web application to display the contents of a table. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.formFile_jsp._jspService(formFile_jsp.java:238) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994) org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) root cause javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1233) org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082) org.apache.struts.taglib.TagUtils.message(TagUtils.java:1057) org.apache.struts.taglib.bean.WriteTag.retrieveFormatString(WriteTag.java:256) org.apache.struts.taglib.bean.WriteTag.formatValue(WriteTag.java:362) org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:234) org.apache.jsp.formFile_jsp._jspService(formFile_jsp.java:195) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994) org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415) javax.servlet.http.HttpServlet.service(HttpServlet.java:763) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) note The full stack trace of the root cause is availabl
Re: api's for struts & co
that only contains the ones for the struts packages, i need the ones for the rest of the packages in the struts lib folder like the commons packages especially the beanutils - Original Message - From: "Neil" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 22, 2004 10:02 AM Subject: Re: api's for struts & co on the jakarta-struts.war, unzipped it. Go to the webapps/ On Wed, 22 Dec 2004 09:45:51 +0100, Olasoji Ajayi <[EMAIL PROTECTED]> wrote: where can i get the API's for the packges in struts (e.g beanutils) to download, i am not always online when i am doing web development, and i need to reffer to them. the ones i have found are all online. - 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]
api's for struts & co
where can i get the API's for the packges in struts (e.g beanutils) to download, i am not always online when i am doing web development, and i need to reffer to them. the ones i have found are all online.
Re: unknown error message
here is the jsp file that gave the error, you will see that i did not use any such tags. the rowSet bean is a requst attribute of type RowSetDynaClass set by an Action class before forwarding to this jsp. this page is supposed to display the table captured in the RowSetDynaClass. Data Base Table - Original Message - From: "Bill Siggelkow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 21, 2004 3:53 PM Subject: Re: unknown error message Well, it looks like you are using a tag (bean:message) that is trying to pull a value from the message resources property file. -Bill Siggelkow Olasoji Ajayi wrote: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE what does this mean, i am just writing a simple program to display the contents of a table in a database using struts (using it ti learn struts), i am not writing any complicates stuff, no resource bundles, internationalizations or things like that, just a form that will display the result and the class tha will fettch the table and give it to the Action that sends it to the form - 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]
struts documentation
where can i get do download struts doumentation that is as good as or even better than the one that comes with struts but is in pdf chm or anyformat that i can read offline and i dont need to startup a servelet container like i need to do for the documentation that comes with struts, i also need to know where i can download good documetation on all the classes that comes with the struts package (e.g. the commons package)
unknown error message
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE what does this mean, i am just writing a simple program to display the contents of a table in a database using struts (using it ti learn struts), i am not writing any complicates stuff, no resource bundles, internationalizations or things like that, just a form that will display the result and the class tha will fettch the table and give it to the Action that sends it to the form
creating tables from array of DynaBeans
hi, i obtained an array of DynaBeans from a RowSetDynaClass (thrugh the getRows() method). i dont know the names or culumns of the tables (the query was a SELECT * ). the problem now is how to display the reslults on a jsp page using strut tags, i thought of using the Logic:Iterate tag, how do i code it to iterate over the fields of the DynaBeans, since the iterate tag iterates only on some form of list.