[S2] How to download a file from a hyperlink

2007-07-11 Thread Struts2 Fan
Hi all, I searched the archieves but couldn't find the answer for S2. I just want the download a file from a hyperlink but the type is not important. here is the part of the struts.xml ??? inputStream ??? 409

Re: Struts 2 performance

2007-07-11 Thread Don Brown
Ted wrote up a good doc somewhere on the website, but the summary is join the dev list, participate in discussions, file jira tickets with patches that include unit tests. Don On 7/12/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: BTW, the idea about participation in contributing to this part i

Re: Struts 2 performance

2007-07-11 Thread Aram Mkhitaryan
BTW, the idea about participation in contributing to this part is good. I would love to solve this performance problem. Does someone know how we can become a contributor of struts2? Is there a standard procedure, or we just can solve ourselves and send the result code? Best, Aram __

Re: Struts 2 performance

2007-07-11 Thread Aram Mkhitaryan
If we need to test the Struts2's real performance we should not use database calls and stuff like that. The code should be as simple as possible, for example, as it was already suggested, we may use static data (a big enough list with beans that have at least 5 properties). We may include some log

Re: how to include struts by using

2007-07-11 Thread red phoenix
I tried with ,it still raise a question,I use Tomcat6,my directory is follows: C:\tomcat\webapps\struts2-blank-2.0.8 when I use visit http://localhost:8080/struts2-blank-2.0.8/a.jsp it raise following error: The requested resource (/struts2-blank-2.0.8/example/HelloWorld.action) is no

AW: AW: Struts 2 requires input result on failed type conversion

2007-07-11 Thread Martin Simons
There definitely isn't an easier way to do it? I simply can't image that such a basic problem hasn't been solved already with a standard procedure since it is, in my eyes, a fundamental localization issue :-) -Ursprüngliche Nachricht- Von: Ing. Andrea Vettori [mailto:[EMAIL PROTECTED] G

Re: Setting an action scoped attribute to a string literal with ?

2007-07-11 Thread makhno
I am sorry DNewfield, I did not test it right Your solution works Thank you very much makhno wrote: > > That does not seem to assign "hello" to x attribute > lloks like the attribute remains unassigned > > > DNewfield wrote: >> >> makhno wrote: >>> will search for an attribute named >>> "

S2.0.8 datetimepicker on"x" not fired (bug?)

2007-07-11 Thread Jon Wilmoth
I've tried several onX event attributes and none of them seem to fire with the S2.0.8 datetimepicker. Is this a bug?

Re: Setting an action scoped attribute to a string literal with ?

2007-07-11 Thread makhno
That does not seem to assign "hello" to x attribute lloks like the attribute remains unassigned DNewfield wrote: > > makhno wrote: >> will search for an attribute named >> "hello" and try to evaluate it. > > So give it something that when evaluated is the string you want: > value="%{'hello'}"

Re: how to include struts by using

2007-07-11 Thread Michael Jouravlev
On 7/11/07, red phoenix <[EMAIL PROTECTED]> wrote: I want to use but when I run this jsp file,http://localhost:8080/a.jsp,it raise error,it shows it can't find a1.do and a2.do,but when I write follows in IE, http://localhost:8080/a1.do, it can show right result. I am puzzled with it.I wan

Re: S2: probable bug in updownselect tag

2007-07-11 Thread Scott Nesbitt
Thanks for the info, we can wait for 2.1 (assuming it comes out in the next three months.) Thanks again, Scott --- James Holmes <[EMAIL PROTECTED]> wrote: > Scott, > > There is a bug in Struts 2.0.6 and 2.0.8 with the > Dojo code that performs the > auto selection of all elements. You can fix

Call actions from other applications.

2007-07-11 Thread Asaf Paris Mandoki
Is there a way to call an action of another application deployed on the same server using the action tag or maybe a custom tag? I think that it'll really help a lot in my project if I could achieve this. If not possible with a tag, where should I look to have a clue on where to start ? Thanks in

Re: Tab Persistance

2007-07-11 Thread Brian Trzupek
Ok - here is what I finally did. My actions just load a jsp after post so the Redirect was unnecessary. (I actually had some in there I removed). I have a In my base CRUD Action Class I added a property named activeTab, with getters and setters. Then on the s:tabbedPanel tag I added the

Re: Setting an action scoped attribute to a string literal with ?

2007-07-11 Thread Dale Newfield
makhno wrote: will search for an attribute named "hello" and try to evaluate it. So give it something that when evaluated is the string you want: value="%{'hello'}" -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Setting an action scoped attribute to a string literal with ?

2007-07-11 Thread makhno
Hello. Is it possible to create and set an action scoped attribute to a string literal with ? will search for an attribute named "hello" and try to evaluate it. But I want x to be literrally "hello". -- View this message in context: http://www.nabble.com/Setting-an-action-scoped-attribute-to-

Re: S2: probable bug in updownselect tag

2007-07-11 Thread James Holmes
Scott, There is a bug in Struts 2.0.6 and 2.0.8 with the Dojo code that performs the auto selection of all elements. You can fix this by overriding the templates in the xhtml theme. Struts 2.1 will have a fix in place to resolve this issue, but until then the template fix is the only way to resolv

Re: Struts 2 performance

2007-07-11 Thread Martin Gilday
I have dropped 2.7 into a WW app which has been live for the past week with zero (new) errors. However, as has been stated, it needs to be reworked to get the speed improvments. - Original message - From: "Musachy Barroso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Date: Wed, 1

Re: Struts 2 performance

2007-07-11 Thread David Durham, Jr.
On 7/11/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: Can anyone suggest how to "test" my site for performance analysis (best with a simple free product) ? I can show here the result if interested. I haven't used it personally, but there's the Eclipse TPTP project that works with the eclip

Re: Struts 2 performance

2007-07-11 Thread Musachy Barroso
Struts tests pass with OGNL 2.7 musachy On 7/11/07, James Holmes <[EMAIL PROTECTED]> wrote: It's not a simple JAR drop. The core XWork and Struts 2 libraries have to be updated to compile expressions. This will take some work, but I believe it is badly needed. I'm up for helping to do this wor

S2: probable bug in updownselect tag

2007-07-11 Thread Scott Nesbitt
In 2.0.6 the updownselect tag only sends items that are selected to the server. The documentation says that all items in the list will be sent. Is this a bug? Will it be fixed in 2.1? Thanks, Scott Expect

Re: dispatcher setting encoding

2007-07-11 Thread David Durham, Jr.
On 7/11/07, Arnaud Cogoluegnes <[EMAIL PROTECTED]> wrote: So it seems the filter dispatcher transforms the encoding for all files (if configured with /* in web.xml), which can cause problem with UTF-8 and BOM. Is there any way to exclude some files from the filtering ? My first guess would be

Re: AW: Struts 2 requires input result on failed type conversion

2007-07-11 Thread Ing. Andrea Vettori
I haven't tried but it seems possibile http://struts.apache.org/2.0.8/docs/type-conversion.html Il giorno 11/lug/07, alle ore 18:55, Martin Simons ha scritto: Well, the app has grown for quite some time now and consists of a lot of actions. Touching all of the them and exchanging all number-

AW: Struts 2 requires input result on failed type conversion

2007-07-11 Thread Martin Simons
Well, the app has grown for quite some time now and consists of a lot of actions. Touching all of the them and exchanging all number-setters with some kind of string parsing would be a whole lot of work. So my favourite solution would be something that easily achieved by struts default functionalit

Re: [S2] Disabling OGNL

2007-07-11 Thread Ing. Andrea Vettori
Don't think it's possibile since it is used by struts internally. Il giorno 11/lug/07, alle ore 18:47, Perssy Llamosas ha scritto: I am using JSP 2.1 EL rather than the OGNL but I believe OGNL is adding extra processing time I don't really require since it appears in the profiler. Is there

Re: Struts 2 requires input result on failed type conversion

2007-07-11 Thread Ing. Andrea Vettori
it's not what you want but why don't use String getter/setter on the action and do the conversion later ? Il giorno 11/lug/07, alle ore 18:37, Martin Simons ha scritto: Hi everybody, this is my first mailing list :-) I'm currently developing a web-app based on Struts 2. My visitors are mai

[S2] Disabling OGNL

2007-07-11 Thread Perssy Llamosas
I am using JSP 2.1 EL rather than the OGNL but I believe OGNL is adding extra processing time I don't really require since it appears in the profiler. Is there a way to remove the dependency? I see this document: http://cwiki.apache.org/WW/ognl.html#OGNL-JSP2.1 But I want to disable OGNL not

Struts 2 requires input result on failed type conversion

2007-07-11 Thread Martin Simons
Hi everybody, this is my first mailing list :-) I'm currently developing a web-app based on Struts 2. My visitors are mainly German and whenever they enter numbers, they usually type a decimal number like 1,23 instead of 1.23. If the setter of the action requires a double, type conversion will fai

Re: Tab Persistance

2007-07-11 Thread Toni Lyytikäinen
I'm just redirecting to an address that's formed like this (see the result type "redirect-action" in the docs): http://myapp.com/here/is/the/url.action?active=myTab Are you doing any redirecting between the the form post and the tabbed page, or are you just posting to an action that renders the

Re: Tab Persistance

2007-07-11 Thread Brian Trzupek
Toni, So when you say you use "%{#parameters['active']}" after "setting a parameter in the request", what are you actually doing? As I have added a hidden field in my form that has an "active" element that I set to the current tab, but it never comes back to the page? Any idea where I w

Re: Struts 2 performance

2007-07-11 Thread Ted Husted
On 7/11/07, Leon Rosenberg <[EMAIL PROTECTED]> wrote: if someone would specify a valid test-case or test-app, i'd volunteer to implement it in both s1 and s2 and measure the points where the performance is lost exactly. There's a WW application attached to this ticket that might be a likely sta

Re: Struts 2 performance

2007-07-11 Thread Ing. Andrea Vettori
I think that the s2 app should have more than one version depending on the used template. I think the test app should have - listing rows from a database - displaying row details These should be the most used pattern used on many sites and it can be also a part of a CRUD application. Add

Re: [1.3.8] input autocomplete="off"

2007-07-11 Thread Niall Pemberton
On 7/11/07, Tomas KRAMAR <[EMAIL PROTECTED]> wrote: This seems like exactly what I need, but I just can't figure out how to use it. My search in google showed nothing. I was hoping to find some configuration file inside struts-taglib.jar, but nothing too. Could you point me to the right direction

Re: Struts 2 performance

2007-07-11 Thread Leon Rosenberg
hmm, if someone would specify a valid test-case or test-app, i'd volunteer to implement it in both s1 and s2 and measure the points where the performance is lost exactly. Leon On 7/11/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: I think so far a couple of people have tried to decouple Strut

Re: [s2] What is the name attribute of tag for?

2007-07-11 Thread Gabriel Belingueres
And what about the tag? The DTD admits as valid the following: bbb however, I don't know what would be the semantic here. 2007/7/10, petchia <[EMAIL PROTECTED]>: I've dug into the S2 and XWork code and I can't see anywhere that the "name" attribute of an exception mapping i

Re: Struts 2 performance

2007-07-11 Thread Ted Husted
On 7/11/07, Guillaume Carré <[EMAIL PROTECTED]> wrote: Tapestry 4 did, there seems to be some performance improvement in this release: http://blog.opencomponentry.com/2007/06/26/tapestry-412-ognl-27-released/ is it a simple JAR drop? I don't know, I'll give it a try. -Ted. --

Re: Struts 2 performance

2007-07-11 Thread James Holmes
It's not a simple JAR drop. The core XWork and Struts 2 libraries have to be updated to compile expressions. This will take some work, but I believe it is badly needed. I'm up for helping to do this work, but don't have much experience with the OGNL code. I also don't have commit access to the XWor

Re: How do we get access to the servlet context from a class that is not an action?

2007-07-11 Thread Asaf Paris Mandoki
Thanks, it worked On 7/10/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: You can use ServletActionContext.getServletContext() Il giorno 10/lug/07, alle ore 13:19, Asaf Paris Mandoki ha scritto: > Hi, > I have an action class (A) that uses another class (B). Is there a way > to get acces

Re: Struts 2 performance

2007-07-11 Thread Guillaume Carré
2007/7/11, Musachy Barroso <[EMAIL PROTECTED]>: I think so far a couple of people have tried to decouple Struts 2 from OGNL, (so other libs like MVEL could be used), so far no patch has made it through :) have you considered upgrading to OGNL 2.7? Tapestry 4 did, there seems to be some perform

Re: Struts 2 performance

2007-07-11 Thread Ing. Andrea Vettori
I'm using s2 2.0.8 on an e-commerce site. The site is very new so we have about 3000 sessions a day but I don't have performance problems... The pages are loading quickly. The most used pages are - the products listing that gets data from a session bean and displays rows of information - the

dispatcher setting encoding

2007-07-11 Thread Arnaud Cogoluegnes
Hi all, I've been trying to add FCKEditor to a Struts 2 application but failing as browsers bump into the BOM at the beginning of the Javascript files. After some investigations, I found that the FCKEditor JavaScript files are encoded in UTF-8 but the application always returns ISO-8859-1,

Re: Struts 2 performance

2007-07-11 Thread Musachy Barroso
I think so far a couple of people have tried to decouple Struts 2 from OGNL, (so other libs like MVEL could be used), so far no patch has made it through :) As for 2.1, the other day when Ted posted the numbers about the download spike it made think that even with so many people downloading/using

Re: Struts 2 performance

2007-07-11 Thread Ted Husted
On 7/11/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: Look here https://issues.apache.org/struts/browse/WW-1673 and references there. Maybe we can push those tickets to be fixed earlier, since it is not clear when the mentioned version 2.1.x will be released. Does someone know how we can do tha

Re: [S2] FreeMarker sample application

2007-07-11 Thread Mark P Ashworth
Good Day, Thanks for the pointer. I created a project using the starter but it uses JSP as the view technology. It was not a big issue to change to FTL. 1. Just changed the result of the actions to result="freemarker" 2. Renames the .jsp to .ftl 3. Changed the

Re: Struts 2 performance

2007-07-11 Thread Don Brown
No idea about the 2.1 release, but if you don't use tooltips, just override the xhtml header template, the one with the dojo import. That should remove the dojo import and fix your issue for now. Don On 7/11/07, Dale Newfield <[EMAIL PROTECTED]> wrote: Don Brown wrote: > Anyways, in 2.1 we pull

Re: [s2]how to detect changes in the available values in a list using optionstransferselect

2007-07-11 Thread Rene Gielen
If you look into the resulting html source rendered from your page, you will notice a dojo.event.connect javascript call for the form submit event (originated at struts2-core/src/main/resource/template/simple/form-close.ftl). You can use this kind of event model yourself for the onclick events of t

Re: Struts 2 performance

2007-07-11 Thread Dale Newfield
Don Brown wrote: Anyways, in 2.1 we pulled all Dojo-related code into its own plugin, so it shouldn't affect the xhtml theme anymore. I'm looking forward to that :-) I recognize that with any open source project timelines are difficult to predict, but would you expect some version of 2.1 to b

Re: Struts 2 performance

2007-07-11 Thread Aram Mkhitaryan
There are load test results, for struts1, up to 200 concurrent users with 0.75 sec timeout, result: 2% timeout for struts2, up to 10 concurrent users with 5 sec timeout, result: 80% timeout >>> the application is the same, for struts2 ognl language is used, but is optimi

Re: How to control the display of Struts2 tags like s:textfield

2007-07-11 Thread Dale Newfield
TonyD wrote: First of all, in my company, I'am representing all my colleagues that have problems with structs. The tool is called Struts. No 'c'. If I have a form with only one structs tag: and if the syntax of this instruction is correct, I should see a checkbox with a red label checked.

Re: Struts 2 performance

2007-07-11 Thread Leon Rosenberg
On 7/11/07, Aram Mkhitaryan <[EMAIL PROTECTED]> wrote: The problem is not just in dojo's js files and stuff like that. Struts2 is too slow, >7-8x times than struts1 Any reproduceable measurements which can support this statement? Leon Best, Aram Aram Mkhitary

Re: [OT] Re: How to SUBMIT a form without calling an ACTION

2007-07-11 Thread TonyD
Thank You for the information it works! Antonio Petrelli-3 wrote: > > 2007/7/10, TonyD <[EMAIL PROTECTED]>: >> >> I need to SUBMIT a form without calling an ACTION because I will use a >> JAVASCRIPT to process it. >> Is it possible? How? >> Thanks in advance. > > > Try using a normal instead

Re: Struts 2 performance

2007-07-11 Thread Aram Mkhitaryan
The problem is not just in dojo's js files and stuff like that. Struts2 is too slow, >7-8x times than struts1 Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91 518456 E-mail: [EMAIL PROTECTED]

Re: How to control the display of Struts2 tags like s:textfield

2007-07-11 Thread TonyD
First of all, in my company, I'am representing all my colleagues that have problems with structs. Our development tool is Eclipse 3.2.2 and our browser is Microsoft Internet Explorer. If I have a form with only one structs tag: and if the syntax of this instruction is correct, I should see a

Re: Struts 2 performance

2007-07-11 Thread Aram Mkhitaryan
Hi there, This is really-really a very big problem. The tests that passed for struts1 cant pass for struts2 even partially (even after lots of optimizations). Struts2 is slow enough to use it for the big and popular sites. Look here https://issues.apache.org/struts/browse/WW-1673 and references

Re: Struts 2 performance

2007-07-11 Thread Don Brown
Tooltips come to mind, and I think there is one other reason...maybe it was the rich text editor. Anyways, in 2.1 we pulled all Dojo-related code into its own plugin, so it shouldn't affect the xhtml theme anymore. Don On 7/11/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: After playing aroun

how to include struts by using

2007-07-11 Thread red phoenix
I want to use but when I run this jsp file,http://localhost:8080/a.jsp,it raise error,it shows it can't find a1.do and a2.do,but when I write follows in IE, http://localhost:8080/a1.do, it can show right result. I am puzzled with it.I wan to know if I don't use

Re: [S2] Problems with using cssClass in simple theme

2007-07-11 Thread Chris Pratt
Not sure what happened, but it just started working. You guys must be magic, I report a problem and it goes away. Thanks anyway. (*Chris*) On 7/10/07, Chris Pratt <[EMAIL PROTECTED]> wrote: I'm using Struts 2.0.8 and in my struts.xml I have: And in my I have: But when the HTML is outp

Re: Struts 2 performance

2007-07-11 Thread Toni Lyytikäinen
After playing around with Firebug a little I found out that in our project the most costly thing in the page loading process is loading the dojo .js-files. For some reason they are included in the xhtml theme too. If I substitute with leaving out the dojo stuff, pages are loading really fast

Re: redirecting a non-secure request to one that uses https

2007-07-11 Thread Toni Lyytikäinen
Google is your friend, http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String) You can get the URL with a method in the HttpServletRequest class, getRequestURL(), substitute "https" for "http" in there and redirect to that page w

RE: Help needed in Auto complete tag in Struts2

2007-07-11 Thread Jaladanki, Ravi
Thank you very much.. It is working.. Thanks Ravi -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 6:55 PM To: Struts Users Mailing List Subject: Re: Help needed in Auto complete tag in Struts2 Hint: Look at AutocompleterExampleAction and