[S2] Ajax performance optimisation

2007-07-27 Thread Jason Wyatt
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

[S2]can I skip file upload validation when I did not upload a file?

2007-07-27 Thread 钟原froast
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

Re: Re:_Re:_A_problem_using_Struts_Tiles

2007-07-27 Thread brossir
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

[S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
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

Re: S2 + REST urls

2007-07-27 Thread Ian Roughley
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)

Formbean scope

2007-07-27 Thread John Mammen
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

Re: Formbean scope

2007-07-27 Thread Dave Newton
--- 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

RE: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
--- 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

RE: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Karr, David
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

RE: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Niranjan.Deshpande
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

[OT] Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Antonio Petrelli
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

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
--- 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

Re: [S2] 2.0.9 upgrade resulted in errors

2007-07-27 Thread Musachy Barroso
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

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
--- 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.

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Antonio Petrelli
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

Re: Popup from struts

2007-07-27 Thread Jasper Floor
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

How to format the actionerrors and actionmessages in the jsp page?

2007-07-27 Thread M.Liang Liu
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:

Re: multiple struts-config files - empty Tiles Page

2007-07-27 Thread Dave Newton
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

Re: multiple struts-config files - empty Tiles Page

2007-07-27 Thread Kim Wegerle
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

Re: [OT] Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
--- 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

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Dave Newton
--- 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,

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Antonio Petrelli
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

Re: checking whether a button has been pressed

2007-07-27 Thread Brian Trzupek
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

Re: [S1] EL vs. non-EL taglibs?

2007-07-27 Thread Brian Trzupek
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

RE: [S2] How Does struts.multipart.parser work?

2007-07-27 Thread Hoying, Ken
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:

[S2] How Does struts.multipart.parser work?

2007-07-27 Thread Hoying, Ken
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

Re: IoC and Guice 1.0 Struts 2.0.8

2007-07-27 Thread Oleg Mikheev
Ł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,

Re: Captcha in Struts2

2007-07-27 Thread Lionel
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]

Re: Re: S2 + REST urls

2007-07-27 Thread matihost
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.

IoC and Guice 1.0 Struts 2.0.8

2007-07-27 Thread Łukasz Łapiński
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

Re: Chart generator servlet

2007-07-27 Thread Andreja
@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

Invoking Servlets from JSP

2007-07-27 Thread John Mammen
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

RE: Invoking Servlets from JSP

2007-07-27 Thread John Mammen
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

Re: Invoking Servlets from JSP

2007-07-27 Thread Nuwan Chandrasoma
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

Re: checking whether a button has been pressed

2007-07-27 Thread Session A Mwamufiya
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/

Re: multiple struts-config files - empty Tiles Page

2007-07-27 Thread Kim Wegerle
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

Re: Invoking Servlets from JSP

2007-07-27 Thread Nuwan Chandrasoma
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

Re: multiple struts-config files - empty Tiles Page

2007-07-27 Thread Antonio Petrelli
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]:

Finding size of an array in iterator tag

2007-07-27 Thread Himanshu Ranavat
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.

RE: Finding size of an array in iterator tag

2007-07-27 Thread Himanshu Ranavat
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

Re: Flashing Ajax Content

2007-07-27 Thread Musachy Barroso
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

Re: Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
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

Re: Finding size of an array in iterator tag

2007-07-27 Thread Nuwan Chandrasoma
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

Re: Finding size of an array in iterator tag

2007-07-27 Thread Dale Newfield
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.

Re: IoC and Guice 1.0 Struts 2.0.8

2007-07-27 Thread Łukasz Łapiński
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?)

Re: Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
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

Flashing Ajax Content

2007-07-27 Thread Kevin Lawrence
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

Re: multiple struts-config files - empty Tiles Page

2007-07-27 Thread Kim Wegerle
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

Struts2: list and map indexing

2007-07-27 Thread ironic
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

equal symbol expected error

2007-07-27 Thread Himanshu Ranavat
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

FW: equal symbol expected error

2007-07-27 Thread Himanshu Ranavat
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

RE: equal symbol expected error

2007-07-27 Thread Himanshu Ranavat
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

struts buttons to invoke actions

2007-07-27 Thread Session A Mwamufiya
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