I am starting to build a Struts related utility that takes advantage of the
work done by the taglibs image people (thanks! great work!) and dynamically
creates cached buttons in i18n by writing i18ned text over button GIFs and
JPEGs. Anyone with any knowledge of stuff that would assist this pro
I'm using struts 1.1
Maybe, I must change the default uploader class or something, can u send me
the application configuration for the application u mentioned, and also the
snap of code getting the file.
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 16,
Is it some memory leak in MultiPartRequestWraper?
It's not a leak; it's just how it's implemented. For every FormFile
in an ActionForm, Struts (or actually, (commons-fileupload) allocates
a byte[] buffer. The size of this buffer is controlled with the
"memFileSize" property of the controller.
What I have:
My DB class returns me following arraylist that I store in request, Pls
see the code below for the Structure
private ArrayList dummyList() {
ArrayList row = new ArrayList();
ArrayList data = new ArrayList();
for(int jk=0; jk<5;jk++){
row = n
Hi all,
I m facing problem in configuring my properties files for messages
i am using IBM's WSAD 5.0
i have done following to configure Message resources in my application
in struts-config.xml file i have following entry
i have my ApplicationResources.properties file at
com/stat/mw/mwowe
What is the correct way to test for a null or empty array(List) that is used
for content in a html:select and html:optionsCollection tag? I am having
trouble getting the logic:empty/notEmpty tag to return accurate results
(empty always evaluates to true whether or not there is data in the array)
I've use ted husted tip http://www.husted.com/struts/tips/001.html
When I use IE and validate my form by hitting [return], form is posted with button
coordonates [x=0/y=0], so using the
tip code, it should look like I've used the button !
I could add a test on x/y to associate (0,0) with "not s
Hi all,
I'm using in a JSP for submit buttons. As this tag has a "value"
attribute, I'd like to know how to use it:
I can get this value when using Mozilla, but IE doesn't submit the value (only the x/y
position of the click inside the
image).
Is this attribute only present for HTML spec conf
Hi all,
I'm working with Struts 1.1.
When open a JSP page in a popup window with JavaScript, the Session
attributes are lost.
I make a little example:
The test1.jsp put one attribute ("test1") in Session and invoke
test2.jsp in two ways:
a) When submit the form, a forward is defined to return
Hi,
I'am working on dynamically sized form.
Something like this:
<%
String count =
(String)request.getSession().getAttribute("auctionDescriptionsCount");
%>
I've got this scenario:
1.Chose my page with form
2.Click 3 times adddesc submit button (now i got 3 )
3.Chose my page
It looks as though you have the syntax correct for setting the
"memFileSize" property. What is happening now that you have set it?
Are you still getting the "access denied" errors as if Struts is
trying to write the file to disk? Or is something else happening?
What version of Struts are you
I think the answer I got from online resources is I need to use either
DynaValidatorForm or my own ActionForm, but not both. It seems that I could
not overwrite reset(...) method in DynaValidatorForm by extending it.
Correct me if I am wrong. Thanks,
Kathy
- Original Message -
From: <[EM
- Original Message -
From: "Niall Pemberton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "pls"
<[EMAIL PROTECTED]>
Sent: Saturday, May 15, 2004 4:43 PM
Subject: Re: How to set an ActionForm to null
> This is expected behaviour, when you forward to your second
I am using DynaValidatorForm but I need to set the default values for some
text fields in a form. Therefore, I write a ActionForm which extends
DynaValidatorForm and use reset method to set default values. The values
were not shown after the form was loaded.
I must miss something here. Could anyone
This is expected behaviour, when you forward to your second Action Struts
will go through all its normal steps, finding/creating the ActionForm,
populating the form from the request, validating and then calling the
Action's execute method. So setting it to null isn't going to work, you need
to reth
-
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]
One benefit of Struts MVC is that you can unit test, or performance test
each layer.
Struts is not slow, but you model access could be slow. Struts is Model
(and View) agnostic.
So you should stress test (unit test) the performance of your model
design isolated, before Struts even sees it.
Lik
A couple of observations:
1) Struts comes with "cancel" processing, if you use the tag
then the validation in the ActionForm should not be called and Strust should
set attribute with name Globals.CANCEL_KEY in the request to "true".
2) If you use validator, then it can handle different page val
Dears,
I'm depending on struts in my application, and I have an option for
uploading files in my application.
The problem is:
I want to upload the files and instantly save it to DB ==> so I'm
getting the byte[] and write it to the DB, as I don't have permission to
write files to disk before upl
Well.. this is how it usually works:
- Your jsp posts the data to the mapped Action
- The ActionServlet intercepts the request, checks on your struts-config.xml
which actionform it needs to use and in which scope it can be found.
- If there's no such actionform in the scope then the ActionServlet
i
Hi All,
I believe Struts uses reflection api for populating the jsp from form
bean. Therefore, if jsp is generating a csv containing a big table with
lots of rows (like generating reports), then form bean properties has to
be called in a loop (using logic-iterate). Will this be a performance
issu
22 matches
Mail list logo