Re: RE: bean:write issues... or a better solution
I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: bean:write issues... or a better solution
Show us where you're putting queuesName into request scope. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: RE: bean:write issues... or a better solution I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: RE: bean:write issues... or a better solution
It's in my action class. theForm is the ActionForm that gets passed in. QueueListing[] theQueues = new QueueListing [cboQueue.getCount()]; for (int i=0; i theQueues.length; i++) { theQueues[i] = new QueueListing(); theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getValue()); theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getValue()); cboQueue.moveNext(); } theForm.setQueuesName(theQueues); ---Original Message--- From: Karr, David [EMAIL PROTECTED] Sent: 02/25/03 01:29 PM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: RE: bean:write issues... or a better solution Show us where you're putting queuesName into request scope. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: RE: bean:write issues... or a better solution I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: RE: RE: bean:write issues... or a better solution
hrmm... if i load the page initially, i get a Internal Server Error, with the error message from before. But if i go to the address bar and just hit enter with the same address, it loads the page. what am i doing wrong? Jason ---Original Message--- From: Jason Vinson [EMAIL PROTECTED] Sent: 02/25/03 01:34 PM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: RE: RE: bean:write issues... or a better solution It's in my action class. theForm is the ActionForm that gets passed in. QueueListing[] theQueues = new QueueListing [cboQueue.getCount()]; for (int i=0; i theQueues.length; i++) { theQueues[i] = new QueueListing(); theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getValue()); theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getValue()); cboQueue.moveNext(); } theForm.setQueuesName(theQueues); ---Original Message--- From: Karr, David [EMAIL PROTECTED] Sent: 02/25/03 01:29 PM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: RE: bean:write issues... or a better solution Show us where you're putting queuesName into request scope. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: RE: bean:write issues... or a better solution I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: RE: RE: bean:write issues... or a better solution
You're not putting it in request scope, you're sticking it in your form - to put it on the request, use request.setAttribute(queuesName, theQueues); -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:35 PM To: Struts Users Mailing List Subject: Re: RE: RE: bean:write issues... or a better solution It's in my action class. theForm is the ActionForm that gets passed in. QueueListing[] theQueues = new QueueListing [cboQueue.getCount()]; for (int i=0; i theQueues.length; i++) { theQueues[i] = new QueueListing(); theQueues[i].setTitle((String)cboQueue.getFields().getItem(ti tle).getValue()); theQueues[i].setObjid((String)cboQueue.getFields().getItem(ob jid).getValue()); cboQueue.moveNext(); } theForm.setQueuesName(theQueues); ---Original Message--- From: Karr, David [EMAIL PROTECTED] Sent: 02/25/03 01:29 PM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: RE: bean:write issues... or a better solution Show us where you're putting queuesName into request scope. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: RE: bean:write issues... or a better solution I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTa g.java:418 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: RE: RE: bean:write issues... or a better solution
You actually have to put a bean with the name queuesName into request scope, like this: request.setAttribute(queuesName, theQueues); -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] It's in my action class. theForm is the ActionForm that gets passed in. QueueListing[] theQueues = new QueueListing [cboQueue.getCount()]; for (int i=0; i theQueues.length; i++) { theQueues[i] = new QueueListing(); theQueues[i].setTitle((String)cboQueue.getFields().getItem(title).getV al ue()); theQueues[i].setObjid((String)cboQueue.getFields().getItem(objid).getV al ue()); cboQueue.moveNext(); } theForm.setQueuesName(theQueues); ---Original Message--- From: Karr, David [EMAIL PROTECTED] Show us where you're putting queuesName into request scope. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:12 AM To: Struts Users Mailing List Subject: Re: RE: bean:write issues... or a better solution I tried this in my page and i get: [log error] javax.servlet.jsp.JspException: Cannot find bean under name queuesName at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:418 ) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options collection=queuesName property=objid / /html:select queuesName is a request level collection, with getters and setters for objid and title elements. any ideas? Jason ---Original Message--- From: Ray Madigan [EMAIL PROTECTED] Sent: 02/24/03 11:54 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: bean:write issues... or a better solution If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: bean:write issues... or a better solution
Did that jsp code come through? my webmail removed it from my side... ---Original Message--- From: Jason Vinson [EMAIL PROTECTED] Sent: 02/24/03 11:37 AM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: bean:write issues... or a better solution
If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: bean:write issues... or a better solution
Have you tried this syntax: html:options collection=statusLookup property=name labelProperty=value/ statusLookup is my Collection (in request scope), each element has getName() and getValue() methods... you're not going to be able to accomplish this by nesting jsp tags, as that is 'illegal'... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 10:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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]