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
This sounds like one of the tutorials on Java Boutique. Not to plug another site, but I really thought the tutorials on From: gbattine [EMAIL PROTECTED] Sent: Sunday, December 07, 2008 11:39 AM To: user@struts.apache.org Subject: Cannot find bean in any sc

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
Do you have any null values in your collection? The only way I could reproduce something similar was if I added "null" to the collection. Nils-H On Mon, Dec 8, 2008 at 11:43 AM, gbattine <[EMAIL PROTECTED]> wrote: > > Hi, > thanks very much for your help. > I understood your explanation but I did

Re: Cannot find bean in any scope

2008-12-08 Thread gbattine
Hi, thanks very much for your help. I understood your explanation but I didn't solve. Now I did: but I still have: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "DVD" in any scope I'm missing something? Thanks

Re: Cannot find bean in any scope

2008-12-07 Thread Nils-Helge Garli Hegvik
>From the taglib reference for "iterate" [1]: id - The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not null. In your example, you have used id="dvds" which means that you would have to use http://struts.apache.org/1.3.8/struts-

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

2008-11-09 Thread Burton Rhodes
Can't help you there. Sorry. On 11/9/08, Amrinder Sandhu <[EMAIL PROTECTED]> wrote: > Hi, > > Thank you for your response. It seems like Preparable is for Struts 2. I am > using Struts 1.3.8. Any ideas for Struts 1.x? > > Regards, > Amrinder Sandhu > > > On Sun, Nov 9, 2008 at 3:51 PM, Burton Rhod

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

2008-11-09 Thread Amrinder Sandhu
Hi, Thank you for your response. It seems like Preparable is for Struts 2. I am using Struts 1.3.8. Any ideas for Struts 1.x? Regards, Amrinder Sandhu On Sun, Nov 9, 2008 at 3:51 PM, Burton Rhodes <[EMAIL PROTECTED]>wrote: > You need to have your action object implement Preparable (and perhaps

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

2008-11-09 Thread Burton Rhodes
You need to have your action object implement Preparable (and perhaps ModelDriven depending on your implementation) and set your action member variables (or bean) in the Prepare method. If there are validation errors, this method will take care of your issue before that error is recognized and sin

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
If I forward to the jsp via an action, how do I make it so when the jsp refreshes it hits the action? On 6/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 6/7/05, Daniel Kies <[EMAIL PROTECTED]> wrote: > > Greetings. Here is my problem: > > index.jsp does a redirect to my action. > > acti

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 th

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 in any scope. The first time > i

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 usi

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
If the bean is not in request scope, then it isn't. That means that the present request scope does not contain the bean. I am not sure that it means that the bean is not in any scope. But you can use the session and servletContext objects to determine that for sure. I would imagine that the

RE: Cannot Find Bean in Any Scope

2004-06-12 Thread Caroline Jen
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 class, I created a collection of beans. Each of those beans is a ThreadBean. 3. By the end of the ListThread.

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 S