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();
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
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
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.
-- 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
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"
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]>
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
-
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]
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
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
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
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]>
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
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
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.
_
19 matches
Mail list logo