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

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"

Re: The html:link Tag

2004-06-12 Thread Niall Pemberton
Using a forward.. Click Here you also know you can specify an action, rather than doing stuff with global forwards... Click Here or an actual href Click Here Niall - Original Message - From: "Caroline Jen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>

Re: The html:link Tag

2004-06-12 Thread Caroline Jen
Thanks for the reply. If I use the html:link tag and I have one parameter, how do I use the paramId/paramName/paramProperty? For example, I have: what should I do when I convert it to html:link Caroline --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > With the LinkTag you have two options fo

FW:Re:Hot Erotic

2004-06-12 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW:Re:Hot Erotic

2004-06-12 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fw: My Funny Ass

2004-06-12 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fw: My Funny Ass

2004-06-12 Thread malcolm
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

form logic/flow help

2004-06-12 Thread chris . cranford
I'm running into some problems trying to get my struts forms to behave as I would like them to via actions for passing data around for a common task we'll be using for different data-sets. Let me explain. I have a form that contains 3 collections where-in each collection is dependant upon the

Re: Re[2]: Forward from tile

2004-06-12 Thread Niall Pemberton
I was thinking more of storing the actual url in the session which is what I meant be "href" rather than the forward. If you're using a Servlet 2.3 container or above you can use the getRequestURL() method in the Request to get the url - it doesn't return any query string though but there is also a

Re[2]: Forward from tile

2004-06-12 Thread Pavlikus
Thank you Niall. It works! I extend TilesRequestProcessor class and overload processForwardConfig method. There I put forward.getName() value in session. It works but I have a little questions on this subj. To use such feature I need to declare almost of my forward as global forwards. Is it normal

Re: Forward from tile

2004-06-12 Thread Niall Pemberton
Store the href to the previous page in the users session for every request - either customise the RequestProcessor to do this or have a "BaseAction" which all your actions inherit from which does it. Niall - Original Message - From: "Pavlikus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: The html:link Tag

2004-06-12 Thread Niall Pemberton
With the LinkTag you have two options for parameters - you can add one parameter using the paramId/paramName/paramProperty attributes or you can specify a bean property using the name/property attributes which contain a Map of parameters. So in your case if you put your sort, order and offset para

Forward from tile

2004-06-12 Thread Pavlikus
Hi. My 'header' tile contains the banner and drop-down box for language choose. This header tile included on each page of site. I use tile-controller class to prepare languages list and Action for setup desired language in session: How can I return on previous page when user change language? And h

The html:link Tag

2004-06-12 Thread Caroline Jen
What is the html:link equivalent of How do I pass those parameters (sort, order, and offset)? And please verify the equivalent of the part of the html:link tag: and in my struts-config.xml, I can then Thank you. _