"Cannot find bean in any scope" error

2009-02-19 Thread elyes sallem
Hello, i have a jsp in which i there is a loop with nested:iterate: <% int indexeOr=indexOr; OrdreRegrpmt or = ((AjustCPEGroupedByOr) ajustCpeGroupByOr)

RE: Cannot find bean in any scope

2008-12-10 Thread Givler, Eric
:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 11:03 AM To: Struts Users Mailing List Subject: RE: Cannot find bean in any scope This sounds like one of the tutorials on Java Boutique. Not to plug another site, but I really thought the tutorials on

RE: Cannot find bean in any scope

2008-12-09 Thread Givler, Eric
ror: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope How can I solve it? please help me, Thanks -- View this message in context: http://www.nabble.com/Cannot-find-bean-in-any-scope-tp20882790p20882790.html Sent from the Struts - Use

Re: Cannot find bean in any scope

2008-12-09 Thread Dimitar Vlasev
1. Try this (I cite these tags on memory so excuse me if I'm not right with the tag names) The dvd list is present The dvd list is NOT present 2. If the dvd list is not present try to set a simple string bean into the request and include it in the page you're forwarding to Regards, Dimitar

Re: Cannot find bean in any scope

2008-12-08 Thread Nils-Helge Garli Hegvik
a list of dvds >>> Collection c = new ArrayList(); >>>try { >>>c = manager.getAll(); >>>} catch (DAOException e) { >>>String message = "DVDs could not be listed"; >>>

Re: Cannot find bean in any scope

2008-12-08 Thread gbattine
ors.add("label", new ActionError("error.listfailed")); >>saveErrors(request, errors); >> return (mapping.findForward("error")); >> >> >>} >> session.setAttribu

Re: Cannot find bean in any scope

2008-12-07 Thread Nils-Helge Garli Hegvik
em of dvds list. > Instead of show jsp with list of dvd I've this error: > > javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find > bean: "DVD" in any scope > > How can I solve it? > please help me, > Thanks > > > -

Cannot find bean in any scope

2008-12-07 Thread gbattine
h list of dvd I've this error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope How can I solve it? please help me, Thanks -- View this message in context: http://www.n

Re: Cannot find bean in any scope when form contains errors

2008-11-09 Thread Burton Rhodes
e >> > the view. The page contains the data from the beans and the textbox >> inside >> > the form tag. If I enter valid data into the texbox and hit submit, >> > everything works great. But if I leave the textbox empty or type in >> invalid >> > data,

Re: Cannot find bean in any scope when form contains errors

2008-11-09 Thread Amrinder Sandhu
he textbox empty or type in > invalid > > data, I should get back error messages from the validate method of the > form. > > But instead I get a HTTP 500 error message saying Cannot find bean in any > > scope. I see why I get this error message, but I can't seem to fix

Re: Cannot find bean in any scope when form contains errors

2008-11-09 Thread Burton Rhodes
pe in invalid > data, I should get back error messages from the validate method of the form. > But instead I get a HTTP 500 error message saying Cannot find bean in any > scope. I see why I get this error message, but I can't seem to fix it. > > How can I have that bean be set again i

Cannot find bean in any scope when form contains errors

2008-11-09 Thread Amrinder Sandhu
inside the form tag. If I enter valid data into the texbox and hit submit, everything works great. But if I leave the textbox empty or type in invalid data, I should get back error messages from the validate method of the form. But instead I get a HTTP 500 error message saying Cannot find bean in

Cannot find bean in any scope

2007-04-10 Thread Slattery, Tim - BLS
I'm trying to get a Struts 1.1 (or...maybe 1.2) app to run under Weblogic 9.0. It's been running happily under WL 8. WL 9 supports J2EE 2.4, so I replaced the top line in web.xml with: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLo

Re: Cannot find bean in any scope

2005-06-07 Thread Dave Newton
Daniel Kies wrote: If I forward to the jsp via an action, how do I make it so when the jsp refreshes it hits the action? The URL will show the URL of the action, not the JSP. When you refresh it's refreshing the action, which will again forward to the JSP. Dave -

Re: Cannot find bean in any scope

2005-06-07 Thread Daniel Kies
oes a redirect to my action. > > action loads a bean with data > > forwards to x.jsp > > > > x.jsp looks fine, data comes up fine. > > > > I do a refresh. I get Cannot find bean in any scope. The first time > > i have data with no problems because the action clas

Re: Cannot find bean in any scope

2005-06-07 Thread Dave Newton
Daniel Kies wrote: index.jsp does a redirect to my action. action loads a bean with data forwards to x.jsp x.jsp looks fine, data comes up fine. I do a refresh. I get Cannot find bean in any scope. The first time i have data with no problems because the action class loads the request with

Re: Cannot find bean in any scope

2005-06-07 Thread Michael Jouravlev
On 6/7/05, Daniel Kies <[EMAIL PROTECTED]> wrote: > Greetings. Here is my problem: > index.jsp does a redirect to my action. > action loads a bean with data > forwards to x.jsp > > x.jsp looks fine, data comes up fine. > > I do a refresh. I get Cannot find bean

Cannot find bean in any scope

2005-06-07 Thread Daniel Kies
Greetings. Here is my problem: index.jsp does a redirect to my action. action loads a bean with data forwards to x.jsp x.jsp looks fine, data comes up fine. I do a refresh. I get Cannot find bean in any scope. The first time i have data with no problems because the action class loads the

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Caroline Jen
ry flexible. ;-) > > Unless you can show argument why using a "scriplet" > is necessary, I believe > most will continue to suggest the above approach as > it's a more efficient > approach. > > Take care, > Chris > > -Original Message- >

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Caroline Jen
as its very flexible. ;-) > > Unless you can show argument why using a "scriplet" > is necessary, I believe > most will continue to suggest the above approach as > it's a more efficient > approach. > > Take care, > Chris > > -Original Message- &g

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Ricardo Cortes
Caroline, This URL might help: http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html Ciao, Ricardo -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, June 12, 2004 7:28 PM To: [EMAIL PROTECTED] Subject: Cannot Find Bean in Any Scope I am

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Satish Kataria
] Sent: Sunday, June 13, 2004 5:30 AM To: Struts Users Mailing List Subject: RE: Cannot Find Bean in Any Scope Sorry for not being clear about the problem that I have. 1. I have a JavaBean, which is named as ThreadBean with lots of properties. 2. My ListThread.java class extends Action. In that

Re: Cannot Find Bean in Any Scope

2004-06-13 Thread Caroline Jen
Chris, thanks for your help. You are right. The error is caused by something else. The error message is misleading. -Caroline --- Christopher Schultz <[EMAIL PROTECTED]> wrote: > Caroline, > > > Sorry, I still did not explain my code very well. > > I've looked at your code, and none of it cou

Re: Cannot Find Bean in Any Scope

2004-06-13 Thread Christopher Schultz
Caroline, Sorry, I still did not explain my code very well. I've looked at your code, and none of it could print that error message. You must be leaving something out. Is it possible that the message is actually coming from a different part of your JSP? -chris signature.asc Description: OpenP

RE: Cannot Find Bean in Any Scope

2004-06-13 Thread CRANFORD, CHRIS
Sunday, June 13, 2004 1:19 PM To: Struts Users Mailing List Subject: Re: Cannot Find Bean in Any Scope Sorry, I still did not explain my code very well. I am trying to write out the properties of ThreadBean in a "while loop" in my JSP: <% Collection threadRows = ( Collection )requ

Re: Cannot Find Bean in Any Scope

2004-06-13 Thread Caroline Jen
Sorry, I still did not explain my code very well. I am trying to write out the properties of ThreadBean in a "while loop" in my JSP: <% Collection threadRows = ( Collection )request.getAttribute( "ThreadBeans" ); int odd = 0; Iterator iterator = threadRows.iterator(); while( iterator.hasNe

Re: Cannot Find Bean in Any Scope

2004-06-12 Thread Christopher Schultz
Caroline, Wait a second... Collection threadRows = ( Collection )request.getAttribute( "ThreadBeans" ); int odd = 0; Iterator iterator = threadRows.iterator(); while( iterator.hasNext() ) { odd = ( odd + 1 )%2; ThreadBean threadBean = ( ThreadBean )iterator.next();

Re: Cannot Find Bean in Any Scope

2004-06-12 Thread Christopher Schultz
Caroline, Iterator iterator = threadRows.iterator(); while( iterator.hasNext() ) { odd = ( odd + 1 )%2; ThreadBean threadBean = ( ThreadBean )iterator.next(); . } %> 5. when I tried to write out the properties; for example: <%=threadBean.getSender()%> <%=threadBe

RE: Cannot Find Bean in Any Scope

2004-06-12 Thread mike
property="threadReplyCount"/> > property="threadViewCount"/> > > -- If the bean already exists > type="org.MyOrg.MyProj.message.ThreadBean"/> > > > > I think this is right .. > Chris > > -----Original Message- >

RE: Cannot Find Bean in Any Scope

2004-06-12 Thread Caroline Jen
dBean"/> > > > > I think this is right .. > Chris > > -----Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 12, 2004 7:28 PM > To: [EMAIL PROTECTED] > Subject: Cannot Find Bean in Any Scope > > > I a

RE: Cannot Find Bean in Any Scope

2004-06-12 Thread CRANFORD, CHRIS
-- If you want to specify a new bean instance, use this: -- If the bean already exists ... I think this is right .. Chris -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, June 12, 2004 7:28 PM To: [EMAIL PROTECTED] Subject: Cannot Find Bean in Any

Cannot Find Bean in Any Scope

2004-06-12 Thread Caroline Jen
I am using the Struts framework. I have a JSP, which imports a JavaBean "ThreadBean". Therefore, in the beginning of my JSP, in addition to <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-logic" prefix="logic"

Help: logic:iterate error : Cannot find bean ... in any scope

2004-04-06 Thread Prasad, Kamakshya
HI, I have these lines in my jsp when the jsp is executed, it throws an error "Cannot find bean courseDetailsLocal in any scope." Why is it happening so? I have imported taglib in my jsp. The setter/getter methods for courseDetails in EmployeeDetails

Help: logic:iterate error : Cannot find bean ... in any scope

2004-04-06 Thread Prasad, Kamakshya
HI, I have these lines in my jsp when the jsp is executed, it throws an error "Cannot find bean courseDetailsLocal in any scope." Why is it happening so? I have imported taglib in my jsp. The setter/getter methods for courseDetails in EmployeeDetails