Subject: Struts1.1-b1 - generated buttons tags has wierd default titles and alt
attributes
From: Lian Seng, Loh [EMAIL PROTECTED]
===
Hi,
Never noticed this before with 1.0, but view source on a Struts page and my
buttons looked like :-
input type=text name=address1 value=
I actually type in the code very badly. The accessor method should have
been this
public CcyItem getCurrencyItem( String ccy ) {
return (CcyItem)mapItem.get( ccy );
}
--
Peter Pilgrim ++44 (0)207-545-9923
Hi
This is the real deal this time. This is the real code extract
instead of something made up.
==
public class AccountAdminControllerForm extends ActionForm ...
{
/** Map of currency codes to user cashflow limit objects */
private Map mapLimits = new
David,
Thanks a lot for your input. I verified the attribute in
the form objects and it had values.
I fixed the problem but have no idea why on the first
place it has occurred. All I did was created another object (java bean)
same as Employee object and added
My problem is that I had a convenience function in the action form
public void setCashflowLimit( UserCashflowLimit limit )
{
System.out.println( AACF.setCashflowLimit(+ccyCode+, +limit+));
mapLimits.put( limit.getCcyCode(), limit );
}
My `UserCashflowLimit' bean also
Subject: Putting a JS files as a list (using tiles)
From: PitBull [EMAIL PROTECTED]
===
Hi all,
I'ld like to insert a lot of javaScript files as a list inside my templates
jsp pages(using tiles). I tried to do some thing like this:
tiles:putList name=jsList
tiles:add value=/path/js/*.js
Hi
If I understood you correctly the the solution is:
If Next button in first page is clicked then forward to the Action class of second
form NOT the JSP.
Then in second form retrieve user id ( for example from you'r session bean ) and
update according fields of the form.
For example:
Hi all,
I'm using Struts and JSTL (JSP Standard Tag Library) on my project. (We
officially prefer the JSTL tags over the corresponding Struts versions
whenever possible.) Obviously, though, we end up using the Struts html
tags. So, I have a question about JSTL/Struts integration though:
I've
I was going over the ultradev extension tutorial for struts and I ran into
an interesting problem.
When in live data mode, it seems that in ultradev the background color of my
tables always get set to a ligth yellow. This is even though my tables use a
CSS and are suppose to have a blue bg
I am not sure, but this looks similar to errors I am getting on Tomcat with security
turned on. That was caused by DataSource configuration problems. Are you getting any
database errors?
Steve
From: Dimitar Stavrakov [EMAIL PROTECTED]
Date: 2002/04/04 Thu AM 09:27:02 CST
To: Struts Users
Is there a complete list of what ActionForm field types corresponds to which
HTML elements? I'm having trouble finding one.
For example, if I have multiple hidden fields with the same name, can my
ActionForm field be an array or a Collection? Or, if I have a checkbox, can
my ActionForm field be
I've got the following complicated page:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:img src=http://www.newt.com/images/anybrowser4b.png; /
However, this complexity comes at a price:
javax.servlet.ServletException: Cannot find message resources under key
The following message is a courtesy copy of an article
that has been posted to Struts as well.
I've got the following complicated page:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:img src=http://www.newt.com/images/anybrowser4b.png; /
However, this complexity comes
Where r u from ?
- Original Message -
From: Dimitar Stavrakov [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, April 05, 2002 5:03 AM
Subject: RE: Struts html:link tag
In struts-config.xml
For action userAdd.do enter a parameter validate=false .
supposed to compare any properties (values of thes fields ) of diff. beans, visible in
some scope.
what kind of logic tag should i use ?
Hi,
The people reviewing Struts Fast Track on
Amazon.com seem to dislike this book. I won't quote
examples of such comments as I'm not wanting to agree
with the Amazon reviewers, but could someone please
provide a good review?
=
JS
__
Do
I started using JBoss with Tomcat a few weeks ago doing development with
Struts and Tiles and find that I spend a lot of time in the deploy portion
of the application development process waiting for an EAR to deploy, which
dramatically slows down development since the build/deploy/test parts of
Subject: DataSource con.close() question
From: David Bolsover [EMAIL PROTECTED]
===
Hi
I have a datasource defined in the struts-config.xml file.
The datasource connects to the source database fine.
Enrty in struts-config.xml:
data-source key=Centura
set-property property=autoCommit
Subject: Where have all the postings gone
From: David Bolsover [EMAIL PROTECTED]
===
Help
I'm very greatful to basebeans for their generosity in providing this
newsgroup - but please can we have the postings kept on the server a while
longer than at present. - I just checked Nov, Dec 2001 post
I had the same problem.
All you have to do is call the setReturnNull(true)
method on the PropertyMessageResources object that
struts uses to holds the messages.
I don't know if there is a better solution, but I
think they forgot to set that property to true to
avoid getting those ???en_US.null???
As Craig did, there is a int param for the ActionServlet that set to true
does the same that your fix.
init-parameter
namenull/name
valuefalse/value
/init-parameter
Hope I did not missuderstand the problem.
As Craig did, there is a int param for the ActionServlet that set to true
does the same that your fix.
init-parameter
namenull/name
valuefalse/value
/init-parameter
Hope I did not missuderstand the problem.
Reply to my own previous post:
As Craig did, there is a init param for the ActionServlet that set to true
does the same that your fix.
init-parameter
namenull/name
valuetrue/value
/init-parameter
Hope I did not
This question has been asked repeated and the answer seems to be the same
each time... Dreamweaver has some support. If you want more than that I
suggest you build a better mousetrap and write your own! WSAD is built on
top of eclipse, which allows you to plug in new editors, etc.
soapBox
If
I'm pretty sure that it's related to this bug I submitted last week. It's
in the BaseHandlerTag, so many tags are probably affected by this. Here's
the bug report link:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7411
chuck
At 10:06 AM 4/5/2002 -0300, you wrote:
I had the same
I have an action:
action
path=/somepath/someAction
type=com.someco.someAction
name=updateQualTypeForm
scope=request
validate=true
input=somepath/someInputPage.jsp
forward
name=success
path=somepath/someOutputPage.jsp /
/action
the someInputPage has a hidden input called
type could be a reserved word, so please use another one.
Manfred
-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:42 PM
To: 'Struts Users Mailing List'
Subject: parameter in a request
Importance: High
I have an action:
action
Ahh yes ... it's Friday! :-)
Simon
-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist www.landsend.com
Lands' End, Inc. (608) 935-4526
Hi All,
Do Struts html tags handle session management when cookies are turned off? Do they
resort to URL rewriting?
Do I need to do anything extra to make sure that session management works in case of
cookies being turned off?
Rgs
Vikram
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
I saw this book recommended on the Struts resource webpage and having an Amazon.com
gift voucher kicking around, purchased it and dove straight in.
This is not a book review ... I've skimmed it once and am now going back to read it
again more thoroughly. But I did want to say that on first
If you're running an NT server, you can use COM. See http://www.infozoom.de.
-Original Message-
From: Heath Chiavettone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 8:17 PM
To: 'Struts Users Mailing List'
Subject: RE: How to Generate .xls file from struts app.
We did this
Yep, I use Ant, and it's great. It would really suck if I didn't. Right now
the part that is time-consuming is waiting for the app server to deploy the
generated EAR. I am just wondering if people use Mock Objects, Cactus, or
something completely different that allows one to just recompile the
Hi Mike,
Try getting the value from the action, and then putting it in the
session, before you get redirected to the jsp.
Regards,
Dimitar
-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:42 AM
Hi,
This is a better representation of the problem that I have posted yesterday.
This code does not work; I get the error:
org.apache.jasper.compiler.ParseException: End of content reached while
more parsing required: tag nesting error? What is wrong?
!-- initializing string --
% String
Hi Peter,
You forgot to close the bean tag :
bean:define id=condition name=bestellijnbean
property=compname
type=java.lang.String/
Regards,
Dimitar
-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]]
Sent: Friday, April
Hi,
Looks like you need to close your bean:define tag.
Les.
-Original Message-
From: Peter Cnops [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2002 16:27
To: [EMAIL PROTECTED]
Subject: conditional iterate (2)
Hi,
This is a better representation of the problem that I have posted
Subject: Struts 1.1 Menu demo live
From: Vic Cekvenich [EMAIL PROTECTED]
===
This is my 3rd sample app:
A demo of Struts menu running live on a web site: StrutsPlus.com.
(And you can download the entire site source code, if you want to use a
Menu+Tile web site, in downloads).
The menu looks
;-)
You work for Land's End? In Maine?
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 9:25 AM
To: Struts Users Mailing List
Subject: RE: Announce Struts E-Book for less than $10
Ahh yes ... it's Friday! :-)
Simon
Hi,
Now I am testing the 'upload' sample shipped with Struts. I found it
becomes very slow when the file size is big - say above 3M.
Why? Have you guys run across the same problem?
Thanks
Kevin
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Kevin,
I ran into the same issue, not just with Struts File Upload, but also with
the O'Reilly servlet as well. Are you uploading from the same box as your
server?
What I found is that if your client is on a different box than the server,
the file upload is speedy.
--Jenn
-Original
Hi All,
I have the following code in my JSP
jsp:useBean id=dataTypes scope=request class=java.util.ArrayList/
html:select property=dataType
html:options collection=dataTypes property=value
labelProperty=label/
/html:select
I need to preselect one of the OPTIONS in the SELECT list.
The
Yes, Jenniffer, It does speed up when accessing from a different box!
But who knows the reason?
Thank for your reply.
Kevin
-Original Message-
From: FISHKIN-LEVAS,JENNIFER (HP-NewJersey,ex2)
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:52 AM
To: 'Struts Users Mailing
But really, it does suck.
John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Announce
Yes, I work for Lands' End! (Notice the unusual location for the apostrophe! It's a
marketing thing :-) No, I can't let you have stuff at a discount! :-P
Lands' End is in beautiful South-West Wisconsin. L.L. Bean is the clothing company in
Maine (which I have heard is very beautiful but I have
Kevin,
HaHa. I wish I knew the reason!
I have not tested it on an OS other than Windows 2000 and NT.
I've spoken with some colleagues about it, and pretty much all I have is
some speculation.
The speculation is that Windows sockets have some issues with this,
or that the hard drive is reading
Mattos, John [EMAIL PROTECTED] writes:
html:select property=dataType
html:options collection=dataTypes property=value
labelProperty=label/
/html:select
I need to preselect one of the OPTIONS in the SELECT list.
Ok.
The thing is, I can't set the values in the corresponding
How to display a list of links by using bean:write or logic:iterator or
something else?
THanks, Yan
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Hi guys, I have a new problem.
I'm using a nested:iterate, and one bean attribute is a key to an image in my
properties file.
public class TeamBean {
private String team = team.brazil
...
}
in the properties file I have the following entries
team.brazil=Brazil
Not sure if this is considered a bug, it may be. Certainly the code
needs a catch-all to fix it.
I was having trouble getting a html:form tag to work, the action in
the generated html, was always =. Having resorted to using
struts:form which worked (them were days, struts, pre version
Hi!
I'm using Struts 1.0.2 with the validator framework in a quite simple form
application. It's particularity is that constraints on some fields (for
example, the integer range for some input) may be determined at runtime.
But the validator framework does not seem to allow to set these
Hi,
it turned out that my problem is not related to
connnection pooling, it even appears with
Class.forName(interbase.interclient.Driver); con = Drivermanager(url,user,passwd).
An other strange behavior ocurrs. If I manually remove
all data from the database, they all get written back with
the
I am having the same trouble. I don't want to necessarily use html:options
instead of html:option because I'm displaying purely static information, but
I'm approaching the point where I may have to move to html:options because
performance is so horrible.
Ethan
- Original Message -
Hello,
I'm using a single Action Mapping for both adding and editing an entity.
The mapping looks like this:
action path=/editAuthorityLevel
type=com.wellsfargo.pcsweb.controller.EditAuthorityLevelAction
name=authorityLevelForm
Thanks for the input, but that's not what I want. I
want to have form validation, but only when the user
clicks on the Submit button and not when the page is
loaded. And I want to load the page through struts
(html:link page=/user/userAdd.do). How can I have
Struts to differentiate between an
Wisconsin? I love Wisconsin. To whom do I send a resume? I'm sick of
Washington, D.C.!
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:11 PM
To: Struts Users Mailing List
Subject: RE: Announce Struts E-Book for less than $10
Yes,
How about creating 2 mappings where second mapping will have validation
turned off?
Mark.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:36 PM
To: [EMAIL PROTECTED]
Subject: Form Validation Question
Hello,
I'm using a single
You can also set validate=false in your mapping, but call the form's validate method
in your Action, that way you get to decide when to turn validation on. Of course
there's the additional hit of going to the action every time, in this case.
Ady
-Original Message-
From: Zeltser, Mark
I would, except I don't know how to turn validation off in the Action
Mapping in struts-config.xml. As long as I use the same ActionForm for both
show me a blank form so I can add and show me a populated form so I can
edit, and that ActionForm implements validate(), then there's validation.
Is
Well ... you send it to our lovely Employee Services folks (the address is on our
website) and tell them my name so that I get the referal bonus! :-) I think that we
are always looking for Java Web Developers. (Or you can send it to me, and I'll
personally put it in their hands.)
I love it
Wow - another real Englishman! I bet you drink real beer!!!
(sorry, thought Friday was beer-discussion day!)
Dave
Chappell, Simon P [EMAIL PROTECTED] on
04/05/2002 04:00:34 PM
-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002
You can turn off validation by specifying validate=false in your action:
!-- invoke action with validation --
actionpath=/path1
type=com...
scope=...
name=...
validate=true
input=
forward name=success
I used to be a strong supporter of CAMRA, but I gave up all drink soon after arriving
in America. I don't miss the beer, but I DO miss decent tea, REAL Cheddar Cheese and
pickle sandwiches, REAL Pasty's etc etc.
Simon
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Greetings,
I am just starting to write a test app to learn struts.
I have a validation=true setting in struts-config.xml.
When this is true, the validation happens when I OPEN a page.
I have validation that is checking for existance of values, etc.
For example.
A login page with loginID,
Just use 2 separate actions - one for the submit and one for the page load.
The submit action will user validate and the load one won't.
Regards,
Dimitar
-Original Message-
From: regatta DeBlanc [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 2:37 PM
Michael coincidentally enough the last few threads have addressed the same issue. To
summarize you could do one of two things:
1. Define 2 identical action-mappings in your struts-config
- Call the first one firstVisitSomething...Action and set validate=false
Now when a user clicks on the link
So here is a struts style question,
an ActionForm is created upon each request, so
we need to either fill the form out with initial data,
or use the posted form content to update persistent data.
Do you prefer to add a parameter to your requests
to differentiate between a new request (where you
Hi,
my form bean contains another form bean which in turn contains a property
that
I want to access in my original jsp.
code: html:text size=20
property=loanDetailBean.loanSummaryBean.statusId /
loanSummaryBean has getter method for statusId, but I am getting this error:
No getter method for
Thanks!
-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:51 PM
To: Struts Users Mailing List
Subject: RE: Form Validation Question
You can also set validate=false in your mapping, but call the form's
validate method in your Action,
Hello,
Does anyone know if single servlet model (Struts) can have security concerns in
Websphere 3.5? We need to provide role based security using the URIs. What are the
downsides of it? Has anyone implemented Struts in Websphere 3.5 with security on URIs?
What are the alternatives?
Any
Subject: Re: IOException while loading persisted sessions??
From: Jack Gao [EMAIL PROTECTED]
===
Well, I used to get same problem. And I think the problem is the Java Bean
you stored in session doesn't implement Serializable interface.
I did some test on Jakarta-Tomcat-4.0.3, looks like tomcat
Try this :
html:text size=20 name = loanDetailBean
property=loanSummaryBean.statusId /
Regards,
Dimitar
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 3:28 PM
To: Struts Group (E-mail)
Subject: Nested
The only REAL pasty's are the ones you buy and eat with your feet planted on Cornish
soil! :-) We have a town 8 miles from here called Mineral Point and it has a very
strong Cornish heritage (twinned with Redruth!), however the local pasty's are but
pale imitations compared to the REAL ones
Excellent,
I just subscribed to this group today so I appologize for
missing the previous posts.
I do NOT understand the value of having a validate=true at all then.
Can someone enlighten me? I like alternative 2 (form.validate()). And
I am now using that.
I still cant wrap my mind
The reason that I don't eat Haggis is that I know what they put in them! The same
principle keeps me safe from ever eating Black Pudding. :-)
Simon
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:17 PM
To: 'Struts Users Mailing List'
There's a third option.
Have a form field (firstVisit, for example) with a corresponding property
in your ActionForm. In the validate() method, check the value of this
property so that the form can decide whether or not to do validation.
Cheers,
David
-Original Message-
From: Ady
Has anyone successfully used the DynaValidatorForm?
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
With validate=true the controler validates the form (calls form.validate)
before instanciate the action.
The value is speed.
Make sure to set input on action
input - Context-relative path of the input form to which control should be
returned if a validation error is encountered
-Original
Subject: Re: html taglib yields Cannot find message resources under key
org.apache.struts.action.MESSAGE
From: Bill Wohler [EMAIL PROTECTED]
===
Bill Wohler [EMAIL PROTECTED] writes:
I've got the following complicated page:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
Struts == Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes:
Struts Subject: Re: html taglib yields Cannot find message resources under key
org.apache.struts.action.MESSAGE
Struts From: Bill Wohler [EMAIL PROTECTED]
Struts ===
Struts Bill Wohler [EMAIL PROTECTED]
Have you defined a getLoanDetailBean() method in the ActionForm? Also, the
LoanDetailBean must have a getLoanSummaryBean() method as well.
Chuck
At 04:28 PM 4/5/2002 -0500, you wrote:
Hi,
my form bean contains another form bean which in turn contains a property
that
I want to access in my
Hi,
My website is using the following versions of software:
Struts 1.0.2
Apache 1.3.22
Tomcat 4.0.2
Java Runtime Env 1.4
MySQL 3.23.41
RedHat Linux 7.2 using Linux 2.4 kernel
Over a period of time, while running top I see memory being eaten up on my box (box
has 1GB of RAM). Free memory
81 matches
Mail list logo