Thanks for the warning !
Not all of the properties are shown to the user.
The date gets formatted based on a locale.
I will certainly look into the FormDef.
- Glenn
Hubert Rabago [EMAIL PROTECTED]
07/06/2005 05:43 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Is this the only way to do it ?
I have always never coded anything additional in the getter/setter
methods.
- Glenn
Hubert Rabago [EMAIL PROTECTED]
07/06/2005 05:42 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Just as a double check Jean Marie.
You need to have the taglibs in both the resultat.jsp and the
headerRecherche.jsp.
This is how I do my include:
jsp:include page=/includes/header.jsp flush=true/
Do try with the attribute flush to true.
- Glenn
JM Tinghir [EMAIL PROTECTED]
08/06/2005
The section I was refering you to is the Hand Cranking the lazy List in
the Action Form.
This is a small section squeezed in between lazy list information.
This does not require any other class but the ActionForm.
All that is needed is to add code to grow the list and to get the proper
objects
Hubert Rabago [EMAIL PROTECTED] wrote on 08/06/2005 02:15:20 PM:
I would think so. I'm not as familiar with the internals of BeanUtils
as I'd like to be, but since your form is in request scope, that means
it'll create a new instance upon submission. From that, it'll call
getDependent().
As Hubert suggested here are some of the details.
form-beans
form-bean name=dependentForm type=
hronline.secure.personal.dependents.DependentForm
/form-bean
/form-beans
action path=/personal/Dependent type=
hronline.secure.personal.dependents.DependentAction name=dependentForm
Oh sh* !
Hubert you had your finger on the problem all along...
Now that I have had my first coffee of the day things are falling in
place.
The problem is that the JSP is posting to an action which did not have the
correct form bean.
So it wasn't able to find the property method.
This raises a
This may help you:
http://wiki.apache.org/struts/StrutsCatalogLazyList
http://www.developer.com/java/ejb/article.php/3321521
http://www.developer.com/java/ejb/article.php/2233591
- Glenn
Scott Purcell [EMAIL PROTECTED]
07/06/2005 09:19 AM
Please respond to
Struts Users Mailing List
http://wiki.apache.org/struts/StrutsCatalogLazyList
Look at the section: Hand Cranking lazy List in the ActionForm.
This is possible with the version you are currently using.
HTH,
- Glenn
Stéphane Zuckerman [EMAIL PROTECTED]
07/06/2005 12:28 PM
Please respond to
Struts Users Mailing List
The problem is that you have a tag nested within a tag.
In order to do this you need to use the html-el:link tag. The el is
Expression Language.
However, I am having difficulties with applying the el tags... so I cannot
yet help you.
One quick way around this is to do it this way:
a
Hello,
Short description:
-
How do I get posted data into a bean within the form bean ?
The JSP has this code.
html-el:text property=dependent.firstName maxlength=15 value=
${dependentForm.dependent.firstName}/
The page is posted and I get this error:
[07/06/05
Thanks Dave.
This is what is defined.
action path=/personal/Dependent type=
hronline.secure.personal.dependents.DependentAction name=dependentForm
scope=request validate=false
forward name=dependent path=
/WEB-INF/personal/dependents/dependent.jsp
/forward
forward name=cancel
I gave it a go and I get this error now... more precise but an error none
the less...
[06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup E SRVE0026E: [Servlet
Error]-[No getter method for property dependent.healthEligibilityIndicator
of bean org.apache.struts.taglib.html.BEAN]:
Apolgies it is my typo... I have property twice... one should be value.
- Glenn
Martin Gainty [EMAIL PROTECTED]
06/06/2005 03:46 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org, Hubert Rabago
[EMAIL PROTECTED]
cc
Currently we have an XML.
This file is loaded in a filter using apache digester.
HTH,
Glenn
Brian McGovern [EMAIL PROTECTED]
06/06/2005 03:51 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
Best Place for config values
Whats
In what application server is your application running?
Do you have any connection pooling?
- Glenn
Scott Purcell [EMAIL PROTECTED]
01/06/2005 10:05 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
Seeking Advice Error Handling
Umh... I have seen in the past that at times the connection pool believes
that the DB is still there even when it is not.
I'm not a Tomcat user... at least not yet !
In my case... the infrastructure has a gateway between the application
server and the database server.
The web application is
I have these 2 phrases posted in my office as a reminder...
Simplicity is the ultimate sophistication - Leonardo da Vinci
The ability to simplify means to eliminate the unnecessary so that the
necessary may speak - Hans Hofmann
- Glenn
Leon Rosenberg [EMAIL PROTECTED]
01/06/2005 11:42
Come on guys... it is much tougher today than back when you and I were
young!
Programming is programming: things haven't changed that much. ;)
I started out doing Assembler. Then moved on to Cobol and CICS.
I remember the excitement when Cobol II came out wow 4 new
instructions... learnt it
Hi,
I'm upgrading my project to the latest version of struts 1.2.7.
In the Wiki under the Dependency section
(http://wiki.apache.org/struts/StrutsRelease127) it mentions that the
Common BeanUtils version 1.7.0 is required.
When I look at the Manifest.mf file found in the struts-1.2.7\lib
http://wiki.apache.org/struts/StrutsUpgrade
HTH,
Glenn
Thibaut Lassalle [EMAIL PROTECTED]
27/05/2005 11:28 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
migration from Struts 1.0 to Struts 1.2
Does anyone have documentation
True for the Action and Action Form, but the original code snippet is a
ServletContextListener and that the methods get called once when the
application is deployed and undeployed.
At this point (since I'm no expert in the specification) I believe that
the Request object is not yet
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
HTH,
Glenn
asai thambi [EMAIL PROTECTED]
09/05/2005 02:44 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
user@struts.apache.org
cc
Subject
upgradation details of 1.1 to 1.2
Classification
hi.
can
JSTL...
c:choose
c:when
/c:when
c:when
/c:when
c:otherwise
/c:otherwise
/c:choose
HTH,
Glenn
Marsh-Bourdon, Christopher [EMAIL PROTECTED]
09/05/2005 09:14 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
'Struts Users Mailing List'
Okay Frank I gave it a shot and still nothing.
I believe that the setAttribute is the proper way according to the DOM
API.
The other way may be supported depending on the browser.
But in the end it is still not working.
I'm thinking of an alternate solution, since the page is complete except
I also gave this a try without any succcess.
Thanks for your time and patience Frank !
(see my reply to Laurent).
- Glenn
Frank W. Zammetti [EMAIL PROTECTED]
28/04/2005 09:10 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List
Merci Laurent !
Okay so then when you say that it must be functions..
I presume that the HTML with coded attributes such as onMouseOver and
onMouseOut... in IE the browser parses the data and internally creates
functions to handle the mouse events.
So when I try to dynamically modify the DOM
Excellent Frank, thanks a million !!!
What was your inspiration for this ?
- Glenn
Frank W. Zammetti [EMAIL PROTECTED]
28/04/2005 10:47 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Struts Users Mailing List
Umh... I believe that you don't need the return after the chain.doFilter
if (req.getServletPath().equals(onFailure)) {
log.info( equals );
chain.doFilter(request, response);
remove -- return;
}
HTH,
Glenn
Scott Purcell [EMAIL PROTECTED]
27/04/2005 10:19 AM
Oh yes... I carefully looked at the code.
Apologies for misleading the list.
- Glenn
Dave Newton [EMAIL PROTECTED]
27/04/2005 10:42 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
Re: Filter Being Called
Greetings,
Once again I call on my trusted community for insight !
I'm adding a row to a table dynamically. All is working well except for
one thing the Mouse events.
Here is the code for adding a row to the table.
There is more code that adds the cells to the table (not shown).
...
// Only add
Curiously... the mouse events are all in lowercase when they are shown in
the dump.
TBODY
TR
TD class=tableHeader colSpan=2Effective Date/TD
TD class=tableHeader width=200CWW Schedule Type/TD
TD class=tableHeader id=calendarAnchor align=middle width=74Delete/TD
TD width=136/TD/TR
- - - - - This
Oh man... I'm slightly confused this morning... perhaps an espresso is
required !
I have been reading and searching based on the links below... however I am
stuck.
For the time being this is what I have done; upgraded to :
- Struts 1.2.4
- BeanUtils 1.7
- Collections 3.1
- Digester 1.6
-
Thanks Hubert !
Perhaps the wiki: http://wiki.apache.org/struts/StrutsCatalogLazyList is
not correct or I am interepting it falsely,
It has this note in the section LazyDynaBean/LazyValidatorForm:
N.B. Solutions here require Struts 1.2.4 and Bean Utils 1.7.0
- Glenn
Hubert Rabago [EMAIL
What does the Action Mapping look like for /welcome ?
Scott Purcell [EMAIL PROTECTED]
21/04/2005 12:07 PM
Please respond to Struts Users Mailing List
To: user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:html:link invalid
The slash is okay in the action.
Where is exactly this snippet of code in the welcome.jsp?:
html:link action=/welcome
html:img page=/images/shop.gif border=0/
/html:link
Jeff Beal [EMAIL PROTECTED]
21/04/2005 01:10 PM
Please respond to Struts Users Mailing List
To:
LOL... apologies... I meant in which page is the link?
Scott Purcell [EMAIL PROTECTED]
21/04/2005 02:01 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
I'm currently using WebSphere Studio Application Developer v5.1.2.
Struts v1.1 is already included in this release.
What I'd like to do is to update the IDE to Struts v1.2.4. This way any
new projects will include the latest version of Struts.
I do know that I can add the jars and taglibs to the
Hello,
I have a DynaActionForm such as:
form-bean name=dynaCWWHistoryForm type=
org.apache.struts.action.DynaActionForm
form-property name=cancelButton type=
org.apache.struts.util.ImageButtonBean/form-property
form-property name=displayContent type=java.lang.Boolean/
form-property
I'm browsing thru the source code... any help would be extremely welcomed
!
In addition this is the dump:
[20/04/05 13:10:31:116 EDT] 67e967e9 WebGroup E SRVE0026E: [Servlet
Error]-[BeanUtils.populate]: java.lang.ArrayIndexOutOfBoundsException
at
David,
Sounds like the same thing I was having fun with yesterday.
I'm just back into the code... seems like the best would be Struts-EL
tags.
I have not looked into how to use them in the current environment
(WebSphere Studio Application Developer).
- Glenn
David Johnson [EMAIL
Here is what I know:
http://struts.apache.org/faqs/struts-el.html
http://struts.apache.org/userGuide/building_view.html section 3.4.6.
HTH,
Glenn
David Johnson [EMAIL PROTECTED]
15/04/2005 12:52 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List
I have started to use JSTL this week. I simply love it !!!
However, I have one small problem that I cannot seem to get working.
Here is a snippet of code that works fine:
c:forEach items=${dynaCWWHistoryForm.map.historyItems} var=
historyItems varStatus=status
tr valign=top
td id=cc:out
Niether solution works...
The expression is never evaluated. The output is:
select name=historyItems[2].scheduleTypeId
onchange=addTableRow('historyTable','sc:out value='${status.index}'/')
class=dropdowns2
Abdullah Jibaly [EMAIL PROTECTED]
14/04/2005 10:06 AM
Please respond to Struts
How can I tell which version of the struts tags?
Dave Newton [EMAIL PROTECTED]
14/04/2005 10:53 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:
Okay... I am not using the Struts EL taglibs.
Should I be using them?
You choose to use the struts EL tags by a) using the struts EL tld (like
struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't
know if they come by default with the latest release or not; you'd have
to
Okay...
I tried the following:
html:select name=historyItems property=scheduleTypeId indexed=true
styleClass=dropdowns2
onchange=addTableRow('historyTable',
's%=((javax.servlet.jsp.jstl.core.LoopTagStatus)
pageContext.getAttribute(status)).getIndex()%')
html:optionsCollection
Umh... I am now getting this error: Attribute addTableRow( has now value.
I have downloaded the Struts 1.2.4 and noticed that there is a lib
directory and then there is a contrib/lib.
What is necessary to use the Struts-EL tags?
I think that with RT the attribute is all expression or no
Have you included the taglb in the JSP ?
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
Axel Sachmann [EMAIL PROTECTED]
12/04/2005 05:49 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn
Ah yes... you do not have the html:form tag?
According to the Developer Guide (
http://struts.apache.org/userGuide/struts-html.html#text)
Render an input button of type text. This tag is only valid when nested
inside a form tag body.
Try wrapping it in the html:form tag.
Axel Sachmann
David, can you post the code that defines the PortfolioBean.
David Johnson [EMAIL PROTECTED]
13/04/2005 04:21 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Any data in the dynamicArrayForm.map.artikel ?
Axel Sachmann [EMAIL PROTECTED]
12/04/2005 04:11 PM
Please respond to Struts Users Mailing List
To: user@struts.apache.org
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:c:forEach tag and
It is simply a community.
I my case I had started my own version of Struts without realizing that
there was already one created but with a community behind it !
I soon stopped using my own and switched to Struts. [Okay, I still have on
application in production yet to be converted]
In the end
Scott.
I have architectured an application a little over a year ago...
And opted to use a filter to handle logic before getting into the Struts
portion of the application.
At first... I was unsure if this was the best way to go... but today I am
sure glad I did so.
The users started making
Hi,
I am anxiously awaiting for the thread between Stéphane, Rick and Niall to
continue.
I am experimenting with trying to do the same thing as Stéphane.
In the mean time I am having one of those mornings where nothing seems to
be going my way.
I am trying to use JSTL for the first time and
Tried it and just writes the out the string ${emply.firstname}
- Glenn
Stéphane Zuckerman [EMAIL PROTECTED]
07/04/2005 11:39 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List user@struts.apache.org
cc: (bcc: Glenn
What is the difference between the two:
%@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c %
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
- Glenn
Brad Balmer [EMAIL PROTECTED]
07/04/2005 01:17 PM
Please respond to Struts Users Mailing List
To: 'Struts
Greetings,
I have a small problem that I'd like to resolve.
I have just upgraded (sometimes it feels more like a downgrade!) from
WebSphere Studio Application Developer (WSAD) v5.1.1 to v5.1.2.
The issue is that I now have a warning that the hrefs below: targets
cannot be resolved.
It is just
Perhaps a different approach can be used for processes that are time
consuming.
Some form of batch process.
The user can submit a request... this is queued... and then processed by a
DB trigger (as an example).
The results of the processing is stored and the user can view the status
of their
Hello Rick,
Let me try to define a simular problem that I have that would most
probably answer Stéphane's.
But only Stéphane can confirm this. :)
I have classes such as:
public class Description {
private String id;
private String Description;
...
}
public class HistoryItem {
Greetings,
Apologies if this has already been posted... but since the List Archive is
not available I must post.
I have a requirement to display rows of the the same data such as:
Date
Description
Delete indicator
The user can change any data in any row at any time.
Additionally, the user can
You can use a timestamp rather than a count... more meaningful.
In the current application I'm developing, the user is informed of the
interim update along with the new data.
HTH,
Glenn
Lee Harrington [EMAIL PROTECTED]
07/02/2005 11:08 AM
Please respond to Struts Users Mailing List
Hi,
I'm very very discouraged with not being able to resolve this problem.
I do know that this is a WebSphere Studio Application Developer (WSAD)
related problem but I have being searching the web for half a day now
without any success. So I'm turning to you for help.
I have imported a
After waiting sometime for any suggestions I decided to download the
source code and look at the format attribute of the Write tag.
String values are never formatted.
// Return String object as is.
if ( value instanceof java.lang.String ) {
return (String)value;
Hi,
1. I'd like to find some documentation on the possible values for format
attribute of the Bean:Write tag.
2. What I'd like to do is to convert to lowercase the property value
during a Bean:Write.
TIA,
Glenn
Greetings,
I have searched the lists for some time without any success.
I have a Session Form Bean (this is necessay to do a unit of work that
spans many pages...)
On a page I have 3 ImageButtonBeans. Update, Cancel and Beneficiaries.
My problem arises in the Validate method of the Form.
In
Non technical advice. :)
Since I've been doing Web applications for some years now, one of the most
enduring processes is educating Users.
Web applications have many benefits as well as drawbacks, the User must
understand the differences and accept them.
You cannot always do what the 3270
Hi,
This is what I have defined:
action path=/Page type=PageAction parameter=/WEB-INF/page.jsp
name=pageForm scope=request validate=false
forward name=pageForm path=/WEB-INF/page.jsp
/forward
/action
action path=/PageSubmit type=pageSubmitAction name=pageForm
scope=request validate=true
my 2 cents...
I am using the Facade in my current project.
Firstly, just in case that EJBs will be introduced in subsequent phases.
Secondly, the DAO throws exceptions of DAOException a FatalException.
Say that a Stored Procedure returns an application error (invalid
parameter in a SP); this
I'd like to thank both Robert and Jim for yesterdays help with my Request
bean is lost.
After a small 30 Km bike ride I decided to go with the hidden field to
track the First time the page is accessed.
But I digress... Espresso time!
I decided to start another discussion...
I am in the process
:)
Perhaps I could have used Exceptions but well at least I use a Constant
file a little better!
The more I think about the better it seems to get damn I have some
code rewriting to do...
Thanks Bill.
Bill Siggelkow [EMAIL PROTECTED]
Sent by: news [EMAIL PROTECTED]
07/07/2004
Well. In my case I used the Facade pattern without the Session.
I did have a discussion with a friend as to determine if it is closer to a
Delegate or a Facade.
Facade... eventhough it does not adhere to the J2EE Pattern 100%.
Matthias Wessendorf [EMAIL PROTECTED]
07/07/2004 04:45 PM
Please
I have had a problem like this before and what I did is add the
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
in the included/inserted jsp pages.
HTH,
Glenn
John Moore [EMAIL PROTECTED]
06/07/2004 06:24 AM
Please respond to Struts Users Mailing List
To: Struts Users
Greetings,
I have an action Page.do that gets 3 lists from a database.
It then places the lists inside a bean which is set in the request.
The Page.jsp iterates thru the bean to display the data.
The form is posted to the PageSubmit.do.
But before the PageForm.validate() is executed.
Assume that
My lists are specific to each user based on security attributes obtained
from the database.
Therefore, the application scope solution is not acceptable for these
lists.
If I go the first solution route, then I have my 3 Lists as part of the
Form bean.
The user selects from the list and submits
Umh...
Let me try to express myself more clearly!
Page.do
-
My Page.do obtains 3 lists from the DB based on the user's security
attributes.
Default values are set for 2 of the lists such as month and year.
All of this is done in the Form Bean.
PageSubmit.do
---
Exactly.
My Page.do has as a parameter the jsp page along with its Form Bean.
So it will get overwritten.
Now what is the best clearest way to get this done?
Must I absolutely use a Session Bean to maintain the List and the Form
Bean for the user inputted data?
Jim Barrows [EMAIL
:)
I was just contemplating while browsing the code...
Getting the the data from the DB requires lots of work such as setting a
Transfer Object, calling a Facade and the error handling should the DB
return an error.
If this still out weighs the use of a Session Bean then so be it I will
code
Greetings,
I am somewhat unclear with the Message Resources.
I have defined in my struts-config:
message-resources parameter=app.resources.ApplicationResources/
message-resources parameter=app.resources.SystemErrors
key=systemErrors/
In my Action class I have the following code:
if
Greetings,
I have created a ServletContextListener that sets a Bean in the
application scope.
This Bean contains 2 list of Months... and these lists contain
LabelValueBeans.
My uncertainty is on the best way to get my JSP to use the appropriate
List depending on the locale.
JSP code:
My apologies for being unclear...
Yes the Bean has one method called getMonths()...
and in this method I will return the appropriate months based on the
locale.
It is just that getting/passing the Locale to the getMonths() in a JSP is
not really elegant.
JSP code:
html:select property=toMonth
Sure, my idea of using a Bean in the application scope is to not have to
do the creation of the List of months in every Action class and just
reference the Bean in the application scope from the JSP page..
So I guess that the Action class can obtain the Months from the Bean in
the application
Greetings,
What I would like to do is to be able to display different JSPs for the
same ForwardAction.
I now have this:
action path=/TermsAndConditions
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/secure/credentials/termsAndConditions.jsp
/action
What I would
Yes so do I.
Henrique VIECILI [EMAIL PROTECTED]
05/28/2004 09:00 AM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Undeliverable Message
Hi all,
every time I send a message to the [EMAIL
Hi,
I have an application that permits a user to view and update Contact
information.
/app/Contact (gets data from the DB) -- posts to -- /app/ContactSubmit
(updates the data after validation)
I would like to ensure that the application is solid and executes smoothly
(doesn't eveyone!). ;
Hi,
The logic:equal can only used to test against one value.
Perhaps in your example you can us something like:
logic:greaterThan name=user property=key value=1
...do this
/logic:greaterThan
- Glenn
Ciaran Hanley [EMAIL PROTECTED]
25/05/2004 03:15 PM
Please respond to Struts Users
Greetings,
The following code snippet is from my ActionForm.validate() method.
What I don't like and wonder if there is a better way to this: is the
loading of the Message Resources.
I need to do this to get a value that is passed as a parameter to a
message.
private static MessageResources
Hi,
I am having a problem with a JSP not displaying the latest ActionForm
data.
A very light use case:
-
The application is simple; a user views their Contact information.
The user can change the information and save it.
The application does the following:
88 matches
Mail list logo