I've been trying to speed up the Ajax performance of our application, based
on the notes at http://cwiki.apache.org/WW/performance-tuning.html
I'm a bit unsure where I should extract the static content to, such as the
css and javascript files included by the Ajax theme (shown below):
link
interceptor-ref name=defaultStack
param name=fileUpload.allowedTypes
image/png,image/gif,image/jpeg/param
param name=fileUpload.maximumSize102400/param
param name=validation.excludeMethods*/param
param
Right, i had tried to add controller.
Unfortunately, seems i cannot add controller .. / into struts-config file.
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.3//EN
Howdy,
An inherited S1.2 app has many pages where both the EL
and non-EL taglibs are used (non-JSP 2.0 container)...
I don't really care for that (I've always just used
one or the other) as IMO it just confuses things.
Now I'm wondering if there's enough (or any?) of a
performance hit for the EL
I have found the order is important in the struts.xml file - i.e. if you
are changing a property that is being used by another (say the names of
the mappers for the CompositeActionMapper), you need to add the
declaration of the property and then define the object (the
CompositeActionMapper)
Hi,
I'm just starting on struts. I wanted to know if a formbean instance that has
been declared with request scope can be accessed in a subsequent request.
I.e.
Instance of Formbean A (Request scope) -- Used to populate JSP page A --
Action B (Will the same instance of Formbean A, which was
--- John Mammen [EMAIL PROTECTED] wrote:
I'm just starting on struts. I wanted to know if a
formbean instance that has been declared with
request scope can be accessed in a subsequent
request.
I.e.
Instance of Formbean A (Request scope) -- Used to
populate JSP page A -- Action B (Will
--- Karr, David [EMAIL PROTECTED] wrote:
I find it hard to believe you're looking at a
significant performance difference. That being
said,
I suggest you measure it if you're really concerned
(measure in the container, not on the browser).
Frankly, I would say that the maintenance
I find it hard to believe you're looking at a significant performance
difference. That being said, I suggest you measure it if you're really
concerned (measure in the container, not on the browser). Frankly, I
would say that the maintenance headache created by using tags from both
taglibs at the
Please remove me from the mailing list.
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Fri 7/27/2007 6:50 PM
To: Struts Users Mailing List
Subject: Re: [S1] EL vs. non-EL taglibs?
--- Antonio Petrelli wrote:
Anyway, the only reason to use Struts-EL and
Tiles-EL
is when you have a pre-JSP
2007/7/27, Dave Newton [EMAIL PROTECTED]:
--- Antonio Petrelli wrote:
Anyway, the only reason to use Struts-EL and
Tiles-EL
is when you have a pre-JSP 2.0 contaniner. Is this
your case?
--- Dave Newton [EMAIL PROTECTED] wrote:
An inherited S1.2 app has many pages where both the
EL
--- Antonio Petrelli wrote:
Anyway, the only reason to use Struts-EL and
Tiles-EL
is when you have a pre-JSP 2.0 contaniner. Is this
your case?
--- Dave Newton [EMAIL PROTECTED] wrote:
An inherited S1.2 app has many pages where both the
EL and non-EL taglibs are used (non-JSP 2.0
Do you have the dtd declaration on your validation xml file?
!DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator 1.0.2//EN
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;
//that became mandatory at some point, not sure if that's the problem
you are having
--- Antonio Petrelli wrote:
2007/7/27, Dave Newton [EMAIL PROTECTED]:
I am assuming that you meant JSTL tags (not EL
tags).
Nope, I meant the Struts (1.2) and Tiles 1 EL tags,
just like I said :)
d.
2007/7/27, Dave Newton [EMAIL PROTECTED]:
Now I'm wondering if there's enough (or any?) of a
performance hit for the EL tags that it actually makes
sense to only use an EL tag when you actually need it
or if there's any other reason why I might *want* to
use both on a page.
Here I am
On 7/26/07, Carlos González López [EMAIL PROTECTED] wrote:
Hi,
I need to open a popup from struts-conf.xml.
this is possible?
I am going to assume struts 1.x
I have been looking into how to manage popups in struts and the
conclusion is really that you have to call it from javascript. I had
Hi,all:
I would like to add header and footer to the actionerrors so as to it can
display in the way my client like.
In Struts1.2,i can just put the following code in the properties file:
Rewording:
Do you have the tiles S2 result *type* defined in both
struts config files?
--- Kim Wegerle [EMAIL PROTECTED] wrote:
No, I moved the complete action tag from the one
struts-config to the other
struts-config including the result tag. The Tiles
definitions are in the
Tiles config
No, I moved the complete action tag from the one struts-config to the other
struts-config including the result tag. The Tiles definitions are in the
Tiles config file.
2007/7/25, Dave Newton [EMAIL PROTECTED]:
Do you have the tiles result defined in both struts
config files?
d.
--- Kim
--- Antonio Petrelli wrote:
Mmm... It's time to use some lubricant in the gears
of my brain :-)
It's Friday -- I was barely able to send an email at
all.
d.
Be a better Globetrotter. Get better
--- Brian Trzupek [EMAIL PROTECTED] wrote:
So when we have those tags in our app, and others
Struts controls are on the page, we will use both.
I'm asking why use both: the Struts-EL tags only add
functionality; you can still use them as the old tags
by not using an EL expression, no?
Also,
2007/7/27, Dave Newton [EMAIL PROTECTED]:
--- Antonio Petrelli wrote:
2007/7/27, Dave Newton [EMAIL PROTECTED]:
I am assuming that you meant JSTL tags (not EL
tags).
Nope, I meant the Struts (1.2) and Tiles 1 EL tags,
just like I said :)
A ok!
Anyway, the only reason to use
Session,
I would recommend using the method attribute of the submit tag. This
allows you to specify a method that will be executed when the form is
submitted with that given input button. Example is:
s:submit value=toDelete method=delete/
s:submit value=toSave method=save/
s:submit
Dave,
As for a 'reason why I might *want* to use both on a page
I found that some jsp taglibs that we have used, rely on pulling attr
from EL tags. So when we have those tags in our app, and others
Struts controls are on the page, we will use both. Also, in some
cased we -need- to use
Please disregard. I see the problem now. There was another entry for
struts.multipart.parser in the file later down in the property file that
someone else had set.
Thank you!
-Original Message-
From: Hoying, Ken [mailto:[EMAIL PROTECTED]
Sent: Friday, July 27, 2007 10:42 AM
To:
I have created my own MultiPartRequest and specified it in the
struts.properties file as such:
struts.multipart.parser=package.MonitoredMultiPartRequest
When we originally started the project we were using Tomcat and this was
working great. We have now moved to Weblogic 9.2 and it no longer
Łukasz Łapiński wrote:
I would really love to use IoC in my struts project. Has anyone any
experiences with integration Struts and Guice.
I'm using Guice, but I'm not defining any modules
(what do you need them for?)
I just added 3 libs (guice-1.0.jar, guice-servlet-1.0.jar,
aarthy wrote:
How Can I implement Captcha in Struts2?
http://jcaptcha.sourceforge.net/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
First of all, put that constants in struts.properties file next to
struts.xml
there are some problems with constants defined in struts.xml, some of them
does not work correctly
Yes, you are right, for example constant struts.locale still is not loaded
correctly when it is in struts.xml file.
Hello :).
I would really love to use IoC in my struts project. Has anyone any
experiences with integration Struts and Guice.
Mine are unfortunatelly unpleasant.
I would appreciate any help. I looked at this problem for a couple of days
but I guess I can't handle this myself. I wrote on
@balazs
Also, keep in mind: method that generates chart stream (method in
action), and writes to ServletOutputStream sholud be void (do not
return Action.SUCCESS or anything other)...
On 7/27/07, Aram Mkhitaryan [EMAIL PROTECTED] wrote:
I use jfreechart,
I'm generating the chart in the
Hi,
What is the best way to invoke a Servlet from a JSP in the struts framework?
I have a login page. When the user clicks 'Log-in', the control should go to a
Servlet outside the struts framework.
Regards,
John.
CAUTION - Disclaimer *
This e-mail contains
Hi Nuwan,
Can you tell me how you did that? A code snipet would do nicely :)
Thanks,
John.
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Friday, July 27, 2007 10:45 PM
To: Struts Users Mailing List
Subject: Re: Invoking Servlets from JSP
Hi,
I have a
Hi,
I have a struts app which has servlets also , i just call the servlet
mapping in my web.xml from my jsp.
Thanks,
Nuwan
John Mammen wrote:
Hi,
What is the best way to invoke a Servlet from a JSP in the struts framework?
I have a login page. When the user clicks 'Log-in', the
Great Brian, thanks a million.
Session
Session,
I would recommend using the method attribute of the submit tag. This
allows you to specify a method that will be executed when the form is
submitted with that given input button. Example is:
s:submit value=toDelete method=delete/
Yes, I have.
2007/7/27, Dave Newton [EMAIL PROTECTED]:
Rewording:
Do you have the tiles S2 result *type* defined in both
struts config files?
--- Kim Wegerle [EMAIL PROTECTED] wrote:
No, I moved the complete action tag from the one
struts-config to the other
struts-config including
Hi,
here is a sample code.
jsp
--
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean %
%@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html %
%@ taglib uri=http://jakarta.apache.org/struts/tags-logic;
prefix=logic %
html:html
Kim, can you try creating a very small project with two
struts-config.xml and see if the problem is repeatable, possibly with
a very simple Tiles definition?
If yes, it could be a bug.
Antonio
2007/7/27, Kim Wegerle [EMAIL PROTECTED]:
Yes, I have.
2007/7/27, Dave Newton [EMAIL PROTECTED]:
Hi
I have a string array in my Java Backend. I am trying to use a Struts
2.0 iterator tag in my JSP to display the result. Is there a way to
obtain the size of the array in the iterator tag so that I can display
an empty array message to the user if the array is empty. Thanx in
advance.
Hey thanx I did that already:
s:if test = array.length == 0/s:if
-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED]
Sent: Friday, July 27, 2007 12:01 PM
To: Struts Users Mailing List
Subject: Re: Finding size of an array in iterator tag
Hi,
you can
just set showLoadingText=false (this will be the default on the
future, from 2.1 on)
regards
musachy
On 7/27/07, Kevin Lawrence [EMAIL PROTECTED] wrote:
I am using Ajax/dojo in Struts 2.0 to reload the content of a div. It
works but there is a really annoying flash every time the content
BTW Here's my markup:
s:url id=content value=/queue/update.action /
s:div theme=ajax
href=%{content}
updateFreq=2000
delay=2000
loadingText=This is an annoying flash
errorText=The queue status is not currently available
Hi,
you can use a s:if tag to check the size of the array and display the
message accordingly
Thanks,
Nuwan
Himanshu Ranavat wrote:
Hi
I have a string array in my Java Backend. I am trying to use a Struts
2.0 iterator tag in my JSP to display the result. Is there a way to
obtain the
Himanshu Ranavat wrote:
Hey thanx I did that already:
s:if test = array.length == 0/s:if
Since there's no getLength() method on an array, that won't work.
OGNL has pseudo properties for collections that will, although I'm not
sure if OGNL can treat an Array is a collection.
On Fri, 27 Jul 2007 13:13:15 +0200, Oleg Mikheev [EMAIL PROTECTED] wrote:
Łukasz Łapiński wrote:
I would really love to use IoC in my struts project. Has anyone any
experiences with integration Struts and Guice.
I'm using Guice, but I'm not defining any modules
(what do you need them for?)
Excellent! Works great!
Thanks for the quick response.
Kevin
Musachy Barroso wrote:
just set showLoadingText=false (this will be the default on the
future, from 2.1 on)
regards
musachy
On 7/27/07, Kevin Lawrence [EMAIL PROTECTED] wrote:
I am using Ajax/dojo in Struts 2.0 to reload the
I am using Ajax/dojo in Struts 2.0 to reload the content of a div. It
works but there is a really annoying flash every time the content
refreshes and the loadingText gets displayed.
Any workarounds? Or should I go back to my own hand-rolled javascript?
Thanks!
Kevin
www.junitfactory.com
You
Ok, now it's weekend and I have time for this.
Here is the my struts-config:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
constant
Can anyone point me to a working example of Struts2 indexed properties? I've
managed to get list indexing working:
lt;s:checkbox name=users[%{#status.index}].administrator... /gt;
but haven't had any luck with the map style:
lt;s:checkbox name=filter[%{#state.name}]... /gt;
(where state.getName
Hi
I am using Struts 2.0 and this is my JSP code:
s:iterator value=tempList status=tempListItem
tr
tds:checkbox
value=false theme=simple name = s:property value=top/ //td
Hey
I also tried using the '[0]' operator but amazingly it doesn't wrk. This
is my code:
s:iterator value=tempList status=tempListItem
tr
tds:checkbox
name=box1 value=false
Hi I gt the answer to my own qn. I think the Struts guys can add this eg
to their website:
s:iterator value=tempList status=tempListItem
tr
tds:checkbox
name=box1 value=false
Hi,
I use the following code to display a list of buttons that are supposed to call
their associated actions when pressed:
s:form target=SMIG_Editor
s:submit value=Add Category action=CategoryEditor
cssClass=actionButton/
s:submit value=Add Question action=QuestionEditor
53 matches
Mail list logo