I have a bean defined on a page. I can write some of the methods using
scriptlet code, but not others. However, I can write the others with
bean:write. For example, the following code causes a cannot resolve
symbol : method getIndexFactor () servlet exception.:
%=
=placedOnHWATs
format=%=foo%/
Sri
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 1:39 PM
To: Struts (E-mail)
Subject: bean:message
Is it possible to nest a bean:message tag within a
bean:write tag? I want
Is it possible to nest a bean:message tag within a bean:write tag? I
want to get the format property out of the application.resources file, but I
get an jsp.error.unterminated.tag error.
Here's how I'm trying to do it:
bean:write name=hwa property=placedOnHWATs bean:message
If I use a collection to create a multi-select html:select, how do I get
the selected items back to my action class? Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 01, 2003 11:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Multi-Select List Box
Define a String[] in your form bean with the same name as your select box.
David
From: Cohan, Sean [EMAIL
I have a collection (of ArrayLists) within a collection of (ArrayLists).
That is:
public class HistoryItemImpl implements HistoryItem {
private String objectName;
private List deltaList; ...
}
public class DeltaItemImpl implements DeltaItem {
private String columnName;
Thinks He Knows What He Is Doing
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: January 14, 2003 9:59 AM
To: Struts (E-mail)
Subject: Collection within Collection
I have a collection (of ArrayLists) within a collection of (ArrayLists).
That is:
public class
Excuse my naiveté, how would I refer to collection within a collection?
Thanks
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 10:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Collection within Collection
You can use the Index
/logic:iterate
Mark
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:08 AM
Excuse my naiveté, how would I refer to collection within a collection?
Thanks
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e
){...}).
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:10 PM
I'm lost with this stuff. I can't seem to get it working. I'm getting the
following error:
[ServletException in:/tiles/cc/cat_history_content.jsp] No selector
attribute (cookie
the indexId unless you want to specifically access an
element (e.g., if( diIndex == 2 ){...}).
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:10 PM
I'm lost with this stuff. I can't seem to get it working. I'm getting the
following error
I'm struggling with the exception below trying to figure out how to resolve
it. It appears when I add the following hidden parameter to the form.
html:hidden property=method/
I have the parameter getter and setters in the form class, and as a
parameter in the action mapping. Can someone
anywhere in the servers lib dir?
Ilya
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 12, 2003 11:05 AM
To: Struts (E-mail)
Subject: Cannot find bean...
I'm struggling with the exception below trying to figure out how to
resolve it. It appears when I
There are multiple classes that build a collection which is presented on
only one jsp. For simplicity, I'll refer to constants in the classes and
literals on the one jsp. Then if the constants change, I only have to
change them in the interface and jsp.
Thanks.
-Original Message-
From:
I'd like to somehow use some final static int's defined in an interface
within logic:equal tags. Something like:
logic:equal name=columnType value=DeltaItem.LONGTEXT
Can I do this or something like it (e.g., using chars instead of int's)?
Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL
I need to iterate over a collection and be able to tell whether the current
index is odd or even. Any ideas on how I can use the logic tag for this?
logic:match name=index value=odd or even?
Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
row here
/logic:equal
logic:notEqual name=indexMod2 value=0
markup for odd row here
/logic:equal
/logic:iterate
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation
I need
:
logic:iterate indexId=index ...
% if ((index % 2) == 0) {%
even row markup here
% } else { %
odd row markup here
% } %
/logic:iterate
But we all know how evil this is!
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
using scriptlet
for example:
logic:iterate indexId=index ...
% if ((index % 2) == 0) {%
even row markup here
% } else { %
odd row markup here
% } %
/logic:iterate
But we all know how evil this is!
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday
Is there a way to not have to include the struts and tile tlds in each and
every jsp that makeup a layout? Can't we just include it one high level jsp
somehow and have it inherited from every other jsp that makes up a
particular layout?
Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL
I want to present a collection of beans using the logic:iterate tag. One
of the fields in the collection is another collection of beans. This second
collection of beans I want presented in an html select object. In my Action
Class, I'd like to iterate through the first collection creating http
Where I say indexOf below, I meant to say indexId. Thanks again.
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:44 AM
To: Struts (E-mail)
Subject: Index Based Names in Iterate Tag
I want to present a collection of beans using
I'm in one action class and I'm want to forward to another DispatchAction
class. The second DispatchAction class requires a 'method' parameter which
is used to determine which method to call within the DispatchAction. How
can I set the method parameter in the first action class so it can be used
Could there a problem with the alt tag for html:image or html:img tags?
We see nothing when we hover over them. Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there any way I can specify the defaultSelected or selected property for
an html:select or an html:option? I use the html:options to populate the
options with an ArrayList of beans. I need to also specify the value that
should be initially selected.
Thanks.
--
To unsubscribe, e-mail:
No takers on this one???
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 4:48 PM
To: 'Struts Users Mailing List'
Subject: Forwarding Back to one Of Many Pages
I'm sure this has been asked before. Several pages can link or forward to
my
-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist www.landsend.com
Lands' End, Inc. (608) 935-4526
-Original Message-
From: Cohan, Sean [mailto:[EMAIL
I'm sure this has been asked before. Several pages can link or forward to
my page. My page is mapped to a DispatchAction (because I need to get some
initial data and then process the submitted data.) After submitting, the
user is forwarded to another 'action succeeded' page. I need to know
Very cool. Thanks.
-Original Message-
From: Pavel Kolesnikov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 4:19 PM
To: Struts Users Mailing List
Subject: Re: ArrayList in Options
On Wed, 9 Oct 2002, Cohan, Sean wrote:
I'll have an ArrayList of beans in my ActionClass
Is that the correct method? I get a 'can;t resolve symbol' compiler error.
Thanks.
-Original Message-
From: Emmanuel Boudrant
To: Struts Users Mailing List
Sent: 9/18/02 6:09 AM
Subject: Re: IP Address
try this:
request.getRemoteXxx();
-emmanuel
--- Cohan, Sean [EMAIL PROTECTED
How do I get the referrer's IP address in my action class? Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
know if that works for you,
Craig.
- Original Message -
From: Cohan, Sean [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 2:36 PM
Subject: RE: Two Phase ActionClass
After clicking on continue on the loginWarning.jsp page, I no longer
For our app, if the user logs in for the first time or if the user's
password is 30 days old, we require that they change it immediately logging
in. So from the logon action we send them to a password.jsp. But the user
should also be able to go to password.jsp anytime after logging in from
Navigation
Not possible. You'll have to use javascript to do that ---
or a target
on the link to something other than _top.
Regards,
Eddie
Cohan, Sean wrote:
BTW, how do I make the password page popup in a new window
from an action
class?
Thanks
I am sure this a newbie question, but how can I determine that the cancel
button (html:cancel) was clicked instead of the submit button (html:submit)
using an html:form. They both end up in the same method of my
DispatchAction? Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
Cohan, Sean wrote:
Thanks, but what if I want to use html:image and don't want the
bean:message
tag to display text on the page?
I should have mentioned that in the first email. What I really is two
image
buttons within the same form. Can I have them go to the same action class
where I can know
(browse the JAR to
find it). I *think* if you look at Ted's tip #1, you'll find what
you're looking for. Maybe I misunderstand your requirements though.
Regards,
Eddie
Cohan, Sean wrote:
Thanks, but what if I want to use html:image and don't want the
bean:message
tag to display text on the page
NeverMind. Brain freeze.
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 2:57 PM
To: 'Struts Users Mailing List'
Subject: Tip #1
Should we be extending ActionForm for this tip?
I'm guessing yes since the sample Action code
I'm having trouble trying to use html:image pagekey=... / Am I using the
correct syntax? In my jsp I have:
html:image pageKey=login.image/
and in my ApplicationResources.properties I have:
login.image=/images/login.gif
In my struts_config.xml I have:
message-resources
would be continue)
And your cancel button could be a link to:
login.jsp
If you read the API doc on DispatchAction, this will all make sense.
Hope that helped!
Craig.
From: Cohan, Sean [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
=continue (or you could have a hidden field named action
like in login.jsp, but the value would be continue)
And your cancel button could be a link to:
login.jsp
If you read the API doc on DispatchAction, this will all make sense.
Hope that helped!
Craig.
From: Cohan, Sean [EMAIL PROTECTED]
Reply
We need to implement '3 strikes and your out' functionality to our logon
process. If the user is unsuccessful after 3 logon attempts, we disable
their account. I put some of the user id / password functionality in the
validate method of the LogonForm class. However, in between each attempt, I
Within my logon ActionClass, I want to check the user's user id/password and
whether they are currently logged on anywhere else. If they are logged on
elsewhere, I want to go back to the logon page to warn them and give them a
chance to continue or to bail. If they continue, I want to skip over
I'm trying retrieve some text from the AppplicationResources.properties file
and put it on my index.jsp page. How do I do this? I can't find the
answer. Thanks.
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
This must be a no-brainer, but I'm not real familiar with where to look for
things yet.
I'd like to use a gif for a submit pushbutton. I think I use the
html:image tag and specify the gif with the src property. Correct? How
do I specify what the action should be when clicked - I want it to
Is there a way to end a user session if the browser has closed either
through user action or non-user actions such as power outages? If not, what
are typical ways to get around this? We are talking about allowing the user
to login again, checking for a current user session, and if they have
: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:06 AM
To: [EMAIL PROTECTED]
Subject: Ending a Session After Browser Has Gone Away
Is there a way to end a user session if the browser has closed either
through user action or non-user actions such as power outages
with this?
Becky
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:33 AM
To: 'Struts Users Mailing List'
Subject: RE: Ending a Session After Browser Has Gone Away
Any suggestions?
-Original Message-
From: James Mitchell [mailto
.
Anything wrong with this?
Becky
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:33 AM
To: 'Struts Users Mailing List'
Subject: RE: Ending a Session After Browser Has Gone Away
Any suggestions?
-Original Message-
From: James
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 2:29 PM
To: 'Struts Users Mailing List'
Subject: RE: Ending
50 matches
Mail list logo