This is a VERY useful feature. Thanks for caving in before the beating left
you unconscious!!! I couldn't use tiles and nested together very easily
without it!
Thanks Arron!
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 11:19 PM
To:
When is the book due out?
-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 10:31 AM
To: 'Struts Users Mailing List'
Subject: RE: OReilly Struts book
I'm definitely going to cover some design patterns/strategies related to
Struts and
hi ,you can use as this :
html:radio property=selectedOption bean:write name=testOptions
property=data//html:radio
- Original Message -
From: Keith Chew [EMAIL PROTECTED]
Newsgroups: Struts
Sent: Tuesday, March 19, 2002 7:06 AM
Subject: html:radio
Hi
I have
Jay,
This is very cool.. Well done!
Unfortunately, I can't be at Java One... you haven't got an paper out on it do
you?
I would very much like to find out more.
Cheers,
Jon
Jay sissom wrote:
I'm proud to announce that IU has a new Struts application in production.
We started developing in
Half of the Chapters are finished right now. Once I finish all of them, it
then goes through several types of edits and technical reviews. It will
probably not be out until the June or July timeframe. That's unfortunate
because the need for this type of material is great and I would love to
Nothing like a little preemptive peer review! Come on! Share!
Mark
-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 6:11 AM
Half of the Chapters are finished right now. Once I finish all of them, it
then goes through several types of
I truthfully think that would be awesome. I have asked OReilly if it would
be OK if I shared some of the Chapters here. I'm waiting on their response.
Keep in mind that legally, they own the chapters. I've got to get
permission from deep in the bowels of the OReilly complex.
Chuck
At 06:22
Could be worse...you could be owned by the recording industry.
;-)
-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 6:30 AM
To: Struts Users Mailing List
Subject: RE: OReilly Struts book
I truthfully think that would be awesome. I have
Indeed! ;-)
I think it would help a lot.
A workaround solution I tried before your suggestion was making the
forwading secure (the page, the action, whatever it takes ;) ), that
way I eliminated the pop-up. But I think was a very unwise solution,
especially when my aim is performance, and I
Hi,
I have just a simple form that I have included purely because there are two
buttons that the user can press - Confirm or Cancel. But this form does
not have any input fields (except the html:submit buttons). It has a hidden
field which is populated by a request-scope bean, but that's all.
I have configured my struts-config file to keep my form bean in
session scope. I don't know if this is good practice, but I wasn't
having much luck with the request scope.
In many of my action classes, if have to get a reference to my form
bean to do some business logic processing. I do so by
Hmm ... Developer formerly known as 'Chuck'?
-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 5:42 AM
To: 'Struts Users Mailing List'
Subject: RE: OReilly Struts book
Could be worse...you could be owned by the recording industry.
Nice looking site. I can't get to JavaOne but I have about a million
questions. Any other info channels available? Whitepapers? Anything?
Thanks!
George Phillips
University of Miami, FL
[EMAIL PROTECTED]
-Original Message-
From: Jay sissom [mailto:[EMAIL PROTECTED]]
Sent: Monday,
How do I know if an applicationresource.properties file can be read? I have
an applicationresource.properties file present in the WEB-INF/classes
directory, but the messages are not being found. Someone mentioned that the
log files would have a clue but I cannot find any indications in any
Subject: Strange PDF download behavior
From: John Bauer [EMAIL PROTECTED]
===
We are having a difficult time getting a PDF download to work with Struts.
This works fine with a servlet we have in production today, but when using
Struts, it fails every time.
We are submitting a form that contains
Where can I find specific and thorough documentation regarding all the
possible settings for the web.xml and struts-config.xml files as well as
struts in general? Some have mentioned that you can find the web.xml info
in the User's guide but in my hunting for it on the jakarta site I failed
A couple questions:
1. On the initial GET of a page do you need to
explicitly add a FormBean to session with all fields set
to so it doesn't complain on null values?
2. When using the html:select taglib, does the
accessor method have to return a collection to create
the html:options
Friday comes eariler every week. I like it. =)
From: Lawson, Rick [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: OReilly Struts book
Date: Tue, 19 Mar 2002 15:48:24 -
Thanks for that image - I fear it
I'm seeing:
2002-03-18 16:28:09 - /struts-SACT: action: init
2002-03-18 16:28:09 - /struts-SACT: action: Loading application resources
from resource ApplicationResources
2002-03-18 16:28:09 - /struts-SACT: action: Initializing configuration from
resource path /WEB-INF/struts-config.xml
If you're manually calling your formbean's setter methods then you'll need
to then re-add the formbean to the session (or request or whatever scope you
are using). I don't know what you're trying to do, but I've never manually
called any such setter methods. They're usually called automatically
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 2:22 AM
Subject: Do ALL html:form's actions need a form bean?
Hi,
I have just a simple form that I have included purely because there are
two
buttons that the user can press - Confirm
The input property can refer directly to the page, if it doesn't need
any helper beans in the request to populate drop-down boxes and such.
When the form is submitted, the elements of the form are made part of
the request, and Struts sucks these into an ActionForm for you. But if
the FormLoad
This browser doesn't have one of those lame download manager plugins
installed into it by any chance?
I experienced a problem similar to this on a machine that had a real audio
download manager a few days ago.
- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL
So my question is how can I do an ActionForward from a .jsp?
%@ taglib uri=/tags/struts-logic prefix=logic %
logic:forward name=login/
-Ted.
Brad Rhoads wrote:
I assume you mean processActionPerform; I don't see perform() in the
ActionServlet. Here's what I ended up with and it works
My apologies this is a followup to my previous reply. I misread the second
portion.
Yes, if you wish to use form based input type=xxx you must have a form.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 2:22 AM
Subject: Do ALL
It would seem that your client is using port 88 instead of port 80, and
so Struts is including the port number in the link, to be sure it gets
back to the right place.
-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web:
I'm on the phone with IBM at this moment. The scoop I got from searching the
WEbsphere newsgroup was that 4.02 broke the forwarding for form-based
security. That's what I was experiencing, and the message said that the fix
was only available by calling IBM support.
Supposedly efix PQ56667 fixes
Is there a way to include another XML file within the struts-config
file? I have tried using entity references but they always fail (null
pointer exception when struts-config is being parsed.) The file is
getting a big large and I want to split it into several smaller ones.
Any ideas?
Thanks,
The jars should match the same nights nightly build.
I just moved the Struts Validator into the core a
couple nights ago (struts-validator.jar unecessary).
So if you are able to use the nightly binary, it will
have all the jars you need in the lib directory.
There are some changes to
I have noticed that the example app uses the props file
to access strings such as page text and page titles.
Are these props cached? If so, when are they reloaded?
If they aren't reloaded, what is the point since you
need to restart the container to re-cache them? You may
as well just
There's not an easy way, since we're confined to what HTTP/HTML can do.
The only way to pass information from a web page is through a GET or
POST request, which means you have to write it out in the page, either
in an URI or as an element in a form.
The Java Servlet framework provides the
Rob,
Thanks for the response. You cleared up a lot of
questions I had.
Jeff
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 2:55 AM
Subject: FormBeans and GET
A couple questions:
1. On the initial GET of a page do you
Templates are used for the main frameset, yes.
Steve
From: John Kroubalkian [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: actionerrors not showing up
Date: Tue, 19 Mar 2002 09:26:56 -0700
Just out of
Are you setting your content type properly? [application/pdf]
- Original Message -
From: Struts Newsgroup @[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 8:55 AM
Subject: Strange PDF download behavior
Subject: Strange PDF download behavior
From: John Bauer
Could anyone tell me where I can find somewhat easy to follow instructions
for integrating tomcat and struts into apache web server. I tried looking in
the tomcat list, but that has been down for about a day now.
I got the impression that the instructios that come with tomcat installation
for
Subject: Re: Strange PDF download behavior
From: John Bauer [EMAIL PROTECTED]
===
I don't believe so, it is happening to all browsers in my area, and I doubt
they all have a download manager. How can this be checked?
Also, some more info:
- we have set the content type to application/pdf
- we
web.xml is part of the Sun Java Servlet Specification [
http://java.sun.com/products/servlet/ ]
struts-config.xml - refer to the dtd [
http://jakarta.apache.org/struts/dtds/stuts-config_1_0.dtd ]
along with the struts User Guide [
http://jakarta.apache.org/struts/doc-1.0.2/userGuide/index.html ]
In this instance, you could do without the html:cancel button, and try
something like
input
name=Cancel
type=button
value=bean:message key='mainMenuChoices.text' /
onclick=html:rewrite forward='mainMenu' target='_top'
-- Ted Husted, Husted dot Com, Fairport NY
Hi guys,
I'm trying to call a specific method on my action form. This method receives a
calendar as argument, so I'm trying to expose it on the page and then call the method
inside a scriptlet...
My problem is that I can't expose it... I tried bean:struts formBean and
bean:define...
None of
Hello.
I'm using Quick Address to return a list of addresses that match some search
criteria. I want to select one of the returned addresses and pass it
through somewhere else. Problem is, there is no unique identifier for the
address other than the data that makes it up. I can't think of a
I'm using form beans in session memory too, mainly because I want to refer
to their contents in other pages further down the line, not just the next
one.
If you put a form bean into session memory, then it will stay there. If you
call
MyFormBean mfb = (MyFormBean) form
You have a pointer to
Hey guy's:
I am a little confused from what Ted stated:
People often have trouble using Vectors with the Struts tags. They are
really designed to work best with the new Collection objects or with
simple arrays. My best advice would be to have a property like
Object[] getCollection()
I am getting a new computer in 2 weeks for home use. I plan to develop an
application using Struts and would like to use Tomcat 4.0
I don't want Windows XP installed so they're installing Windows 2000
instead.
Does Tomcat 4.0 run under Windows 2000?I spent about 15-20 minutes at
Is there any easy way of slightly enhancing the view a 'designer' gets when
working with JSP files containing bean:write and nested:write tags?
Currently when editing in DreamWeaver's visual mode they can't see any
'dynamic' text at all.
Speaking as someone with no experience in creating a
I have occasionally dealt with this by using the regular jsp:getProperty
id=foo name=getter though there is probably a better way to do it using
struts.
- Original Message -
From: Marcelo Caldas [EMAIL PROTECTED]
To: Struts Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002
Interestingly enough, we do the exact same thing in our project (many .xml
files), and currently we use a perl script to merge the XML files (boo!).
However, I've been writing an Ant task that merges XML files into a single
file to replace the perl...but it's not finished (doh!). Most of the
Can anyone recommend a stress test tool that works well with Struts?
Cheers,
Dave
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can you show me your action tag [from struts-config.xml] for this action?
Are you doing something in your Action class such as return new
ActionForward(mapping.getInput()); ?
John
In my action tag [ struts-config.xml] I had my input marked as the
portion of the entire template where the input
Yes, it does.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 4:49 AM
Subject: Struts w/Tomcat, I know this is a dumb question but
I am getting a new computer in 2 weeks for home use. I plan to develop
an
I have only the usual advice which is to say that all of Vector's methods
are synchronized. Choosing Vector as your standard collection results in
the overhead, whatever that is these days on your JVM, of synchronization
when synchronization might be completely unnecessary in your case. Also,
Yep, it works.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:50 AM
To: Struts Users Mailing List
Subject: Struts w/Tomcat, I know this is a dumb question but
I am getting a new computer in 2 weeks for home use. I plan to
Yes, tomcat 4 runs on Windows 2000.
Have fun with your new computer.
Jay
On Tue, 19 Mar 2002 [EMAIL PROTECTED] wrote:
I am getting a new computer in 2 weeks for home use. I plan to develop an
application using Struts and would like to use Tomcat 4.0
I don't want Windows XP installed so
Jack Daniels?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:17 PM
Can anyone recommend a stress test tool that works well with Struts?
Cheers,
Dave
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional
Thank you very much, Torgeir.
It works, though it now drops a great lot of debug messages. I'll read the
documentation on log4j to decrease the number of debug messages to show.
Thanks
Alejandro
Original message:
The recent common-logging package (which struts uses) now
We've used Jmeter and it worked for us even though it is rough around the
edges. You can get Jmeter from http://jakarta.apache.org/
Microsoft had a free one that integrated with their Visual Studio. From
what I read, it was much more powerful than jmeter, but I don't have the
article
Alex,
I am new to Struts and wish clean answer as well. Our app uses the same
approach as your self.
As part of your question, I assume you trying to avoid what I had to do in my
LoadAction.
In have my app I many master detail pages. So upon a new page I have to set
up the for a new
Subject: Kanji localization
From: Nav Sandhu [EMAIL PROTECTED]
===
All:
How do I get Kanji characters work under localization? I made a new
Japaneese 'application.resource' file. Even though I made this file, i keep
getting 'missing key blah'. Any ideas? Am I missing anything? Which
format
Subject: Re: Strange PDF download behavior
From: John Bauer [EMAIL PROTECTED]
===
Sorry, that did not seem to have any effect.
SUPRIYA MISRA [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
Try This.
response.setHeader(Content-disposition,attachment;filename=oscedata.csv)
;
I wasn't on this team but thought people would be interested in seeing it.
Right now, we don't have a white paper on it, but we do have lots of
PowerPoint presentations about the project at:
http://www.indiana.edu/~myiu
None of them are very technical and some of them are quite outdated. We
I normally use List (List myList = new ArrayList();)
or Collection. If you are going to use Vector, at
least use it through the Collection or List interface
(List myList = new Vector();). Although I wouldn't
use it unless you really need the synchronization.
David
--- Cakalic, James [EMAIL
Jack Daniels?
Heh, nice.
Try:
http://husted.com/struts/links.htm#testing
--Bill
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:17 PM
Can anyone recommend a stress test tool that works well with Struts?
Cheers,
Dave
I haven't tried it myself, but people have reported serializing a number
of properties and then passing the serialized object.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15468.html
-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
You might want to look into the modular capabilities in the nightly
build (soon to be 1.1 beta 1).
This allows you to break your application into modules, so each
developer can work be working their ownmodules within the same
application.
-- Ted Husted, Husted dot Com, Fairport NY US
--
Hello Laker,
Pl. read this.
http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio
n.html
You can also change the form's action using Javascript code.
Ex:
This is the method in Javascript
function changeAction(form, methodToCall)
{
form.action =
Not a lot. Mostly what's in the Javadocs and on the Struts Dev list.
Contributions welcome.
-T.
Steve Earl wrote:
Hi all,
I noticed from the struts site that a nightly build (from about mid-Jan
onwards) has included the facility to have developers working on different
areas of a
The nightly build is not binary-compatible with 1.0.x. A lot of the
dependencies have switched from packages in Struts to packages in the
commons. With the right packages installed, you should be able to simply
rebuild a 1.0 application for 1.1. There may be some places where an
import on your
Or if you want to use Vector:
1. pass the aVector which holds your int data to jsp via request/session in
the action.perform()
session.setAttribute(namepassedfromaction, aVector);
2. then you can do the following in the jsp:
jsp:useBean id=you call name=namepassedfromaction scope=session
[EMAIL PROTECTED] wrote:
We've used Jmeter and it worked for us even though it is rough around the
edges. You can get Jmeter from http://jakarta.apache.org/
Microsoft had a free one that integrated with their Visual Studio. From
what I read, it was much more powerful than jmeter,
Somebody somewhere has to create the bean. If there's an html:form tag,
it will create the ActionForm bean indicated in the tag properties or by
its action-mapping. If the bean is being populated by an Action class,
you have to go to the Action first, and then to the JSP. In general,
it's best to
Microsoft still offers a decent stress testing tool, you can download it
from:
http://homer.rte.microsoft.com/
HTH,
-Original Message-
From: Jay sissom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:57 PM
To: Struts Users Mailing List
Subject: Re: Stress Testing
We've used
Microsoft one is at http://homer.rte.microsoft.com
I haven't used it at all myself.
Tim.
-Original Message-
From: Jay sissom [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 6:57 PM
To: Struts Users Mailing List
Subject: Re: Stress Testing
We've used Jmeter and it worked for
Unfortunately, there are a great number of new features in 1.1 that are
under-documented.
If I can get through two more things this week, I'll be bringing some
more applications over myself, and will be able to translate my
experiences into more documentation.
The best thing is to start
Thanks, but doesn't help much!
D.
Galbreath, Mark [EMAIL PROTECTED] on 03/19/2002
01:49:50 PM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List'
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE: Stress Testing
Hi there,
I'm using Tomcat 3.2.1 and Struts 1.0.
I'm having a heck of a time with the html:base/ tag. Basically I have one
outer template that does a bunch of jsp includes (it lives in the templates
directory specified below). Images in my app show up on my index.jsp page
but not on subsequent
Hi all,
We have got a problem with maintaining the state of the web requests . We
would like to achive following functionality on the web requests .
1. Maintain user's clicks and requests along with the form variables so tha
we can maintain a history of the session and disable the cache.
2.
The nested tag tutorial created by Arron Bates simply rocks!I was kind
of intimidated by nested tags until I took a few hours out of my day to go
thru parts 1 and 2 of the tutorial. Thanks to the way it was well laid
out AND interesting, nested tags are no longer intimidating.Thanks to
Subject: struts design issue: reference data
From: Arthur Frankel [EMAIL PROTECTED]
===
Let's say I want to have a text form field and I have a popup box that
contains a list of data items (i.e., reference data from a database) and be
able to select an item from the list to populate the text
Troy,
I realize you posted this a while ago, but I'm getting the same error, although
without the lovely stack trace. The error shows in the browser when it
processes the following code:
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/tiles.tld
Hi
Nope, tried that already. Does not work, but you can go:
html:radio property=selectedOption value=%=
testOptions.getData().toString() %/html:radio
It would be really nice if what you suggested works, but unfortunately
'value; is a required attribute.
Keith
-Original Message-
From:
I hope Tim sees it that way as well. I will post something to the serverside.
Thanks,
Chuck
At 10:51 AM 3/12/2002 -0500, you wrote:
I am sure you can convince Tim O'Reilly that community review does help
to sell J2EE hot topic books - just take a look at The Middleware
Company's EJB-related
Thanks, Ted. I'll try my hand at bugzilla.
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:01 PM
To: Struts Users Mailing List
Subject: Re: Migrating from 1.0.2 to 1.1: servlet initialization
parameter questions
Unfortunately, there are
Of course he means Integer types and not int since primitive types can't be stored in
a Vector.
- Original Message -
From: Yu, Yanhui
Sent: Tuesday, March 19, 2002 1:31 PM
To: '[EMAIL PROTECTED]'; Struts Users Mailing List
Subject: RE: How can I used html:select with a Collection of
I am having an issue with a log utility I have written wrapping some
log4j classes. Ive read through the samples and other threads, but cant
find a resolution ( which should be simple ). My utility class sets up
a category initializes to root and executes a static method upon
creation as
In our application, we are showing a list of records
using nested tag. In front of each record we have a
select/check box mapped to a property in a bean.
We wish to provide a functionality to users by placing
a checkbox at the top row (this is not mapped to any
property in bean) and on click of
Subject: Re: Strange PDF download behavior
From: Lee Yeow Leong [EMAIL PROTECTED]
===
Try this, it works for me.
---
response.setContentType( application/pdf );
ServletOutputStream out =
Hi Sanjay,
Let me give an example to help you out here. Here I am assuming that the
checkboxes (including the master checkbox) are present in a table that has
got an id 'checkTable'. When I say 'master' check box I mean the one that
will help you to trigger the event for selecting/de-selecting
Steve -
I tried that, having done it successfully in ant. I get the
following exceptions, however, when I try it in structs-config:
avax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
Hi everyone,
Yesterday I was trying something like
html:form action=/saveCustomer.do
html:select property=creditCheckReq
onchange='document.forms[0].submit()'
html:option value=trueYes/html:option
html:option
If you give the submit tag a property value it will change the name to
that of the property. It should match a bean property, but it can be a
fake one.
eg:
public void setMyNonSubmitTitledProperty(String temp) {}
...and in the markup
html:submit property=myNonSubmitTitledProperty
Sanjay,
1) The name of the form is the name attribute of your action details
specified in your struts-config.xml file. It also has to be the
reference name of your bean. So...
document.myBean.submit()
...would submit the form.
2) For this I just have to recommend a great JavaScript
Hi Arron,
Thanks for the free tip.
Will this work for elements in nested:iterate also?
-Sanjay
--- Arron Bates [EMAIL PROTECTED] wrote:
Sanjay,
1) The name of the form is the name attribute of
your action details
specified in your struts-config.xml file. It also
has to be the
I had same error stack trace sometime back at the start of application .
That was coming due to improper setting of data-sources in struts-config.xml
.
hope taht may help
Anant Sagar
- Original Message -
From: Todd Grigsby [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sanjay,
It should work for any Html input element. As long as you know the
resulting input name, you can get at it.
...fun part, is that you can do string concats too if you want to be
more dynamic...
Indexed example:
document.forms[0][something[+ i + ].somethingElse]
Arron.
Sanjay
The Struts team is proud to announce the release of Struts 1.1 Beta 1. This
release includes significant new functionality, while retaining full
backwards compatibility with earlier versions of Struts. It also
incorporates fixes for a number of bugs which were reported against earlier
versions.
94 matches
Mail list logo