RE: About the struts.multipart.saveDir for file upload

2009-06-04 Thread Qunhuan Mei
Thanks a lot for all those replied by query. The reason why I want to set saveDir in my Java code is that as a developer, I would like to take everything under my own control but I suppose if the default upload saveDir, without externally setting it in struts.xml, works in all occasions, e.g.

Ajax file upload + RE: About the struts.multipart.saveDir for file upload

2009-06-04 Thread Qunhuan Mei
Hi Wes, Struts’ ajax file upload would be very interesting to me since I have implemented jQuery (http://www.phpletter.com/Our-Projects/AjaxFileUpload/) and Struts for ajax file upload in my application and had one or two problem(s). FYI: My use case is to upload a file, together with utf8

File Upload in IE

2009-06-04 Thread Mageshwaran
Hi All, In my jsp code i had used s:file name=uploadFile label=File size=20 onkeypress = killEvent(event)/ for file upload using IFrame. Issue: While loading in IE browser, if i paste a file name in the text field with wrong file path, it allows and script error occurs on form submit.

Re: Introducing Spring in Struts2 Project

2009-06-04 Thread alee amin
thanks a lot martin. That's an excellent help. i can not imagine something more eloquent for this specific problem that i had. Thanks. Just for quick review, if i am not using convention plugin at the moment. I would be converting my action class from struts.xml as action

Struts 2.1.6 with ajax and progressing image

2009-06-04 Thread rajeevP
Hi Everybody, We are using struts2.1.6 and ajax in our application. In one of our screen we have only 4 fields, in that one fields has ajax calling. so how can we stop the user to submit that form upto the ajax response came. Means upto that ajax repsonse reached in the screen, we need to

Re: Struts 2.1.6 with ajax and progressing image

2009-06-04 Thread Dave Newton
rajeevP wrote: We are using struts2.1.6 and ajax in our application. In one of our screen we have only 4 fields, in that one fields has ajax calling. so how can we stop the user to submit that form upto the ajax response came. Means upto that ajax repsonse reached in the screen, we need to

Re: Ajax file upload + RE: About the struts.multipart.saveDir for file upload

2009-06-04 Thread Wes Wannemacher
Really, I haven't gotten that far yet, I am only working to improve the integration with Jakarta FileUpload. JFU is quite capable and mature, but I figured the first step would be to expose more functionality since there were a few JIRAs related to people asking for more than what is currently

Re: Introducing Spring in Struts2 Project

2009-06-04 Thread Wes Wannemacher
On Thu, Jun 4, 2009 at 7:52 AM, alee amin mailing.list.mail...@gmail.com wrote: [...] *One question that i asked earlier, going to ask again here. * integrating spring in struts through

Re: Struts 2.1.6 with ajax and progressing image

2009-06-04 Thread rajeevP
Tahnks Dave I am using the sx: div fucntionalities. in this how can we disable/enable the submit button.? Giving my JSP with this, if you can say how and where to do these things, it will be very helpful. %@ page contentType=text/html; charset=UTF-8% %@ taglib prefix=s

Formatting output, double without exponent

2009-06-04 Thread Stefano
Hi all. i've a little problem. I've a EJB inside my session, i take it from a jsp and print out some values: s:property value=#session.cart.currentMoney/ now, this value is a double. and struts print 2.0E09 how can i print 2.0. so the entire number without exponent? thanks -- Stefano

RE: Ajax file upload + RE: About the struts.multipart.saveDir for file upload

2009-06-04 Thread Qunhuan Mei
Ok Wes, I'll wait for your code to be ready. You guys hard work make us developers' work easier. Many thanks for that! Qunhuan -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: 04 June 2009 13:38 To: Struts Users Mailing List Subject: Re: Ajax file upload + RE:

Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
Hi Evans, I'm facing problem to upload huge file like (size is 7mb,10mb). In your last thread you have specified it will work in only small datas or files. I want to know any other method to solve in struts2 framework. Disclaimer: This approach is limited to small files

Params not getting set

2009-06-04 Thread Jim Collings
So I have a Preparable action and in the Preparable method, I need access to a parameter. Others have gone over my struts.xml and seem to think that it is correct: struts constant name=struts.devMode value=true/ constant name=struts.configuration.xml.reload value=true/ constant

Re: Params not getting set

2009-06-04 Thread Wes Wannemacher
I'm assuming you are using the conventions plugin (since there is no action definition). How are you making sure your conventions-configured actions are in the stuff package? If this is your configuration, in whole, then you need to add - constant name=struts.convention.default.parent.package

Return to previous page without javascript

2009-06-04 Thread Stefano Tranquillini
Hi all. i want to do a thing. When a user do the login (i've the login in the left part of the web site, so in each pages the user can do the login) i want to redirect he at the pages that was visit before the login. how can i do that? (no JS) -- Stefano

Formatting output, double without exponent

2009-06-04 Thread Stefano Tranquillini
Hi all. i've a little problem. I've a EJB inside my session, i take it from a jsp and print out some values: s:property value=#session.cart.currentMoney/ now, this value is a double. and struts print 2.0E09 how can i print 2.0. so the entire number without exponent? thanks -- Stefano

Doubts about new project (Struts2 good way to do it?)

2009-06-04 Thread Francisco Exposito
Hello, I want to create a portal with this functionalities, and I don't know if it is possible to do it using Struts2 or what is better for it: 1) User preferences: every user can configure its window and maintain its configuration after save preferences and log in again. The user can select

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
Half of this problem has been solved--the important half. During testing I disabled security to verify that all of the Struts2 mappings worked, which they did. When my war was deployed to WebSphere by our auto-deploy script it caused the LDAP role mappings to be dropped, which is the reason

Re: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Wes Wannemacher
For the record, we have requested licenses for WebSphere because there have been more than a few problems. I know Martin Cooper worked hard to get us access to different versions of WebSphere in a way that kept apache, us developers and struts safe while keeping IBM happy. I don't think we were

Re: Params not getting set

2009-06-04 Thread Jim Collings
I'm assuming you are using the conventions plugin (since there is no action definition). How are you making sure your conventions-configured actions are in the stuff package? If this is your configuration, in whole, then you need to add - constant

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
Wes, Go ahead, stir the pot!!! WAS 6.1 is a total cluster. I would love to drop kick it out of here. By the way, my security problem really wasn't fixed. Here is how I fixed. I gave the team the green light to start testing on DEV and they all said they were getting 404 errors. I showed

Re: Params not getting set

2009-06-04 Thread Wes Wannemacher
On Thu, Jun 4, 2009 at 12:47 PM, Jim Collings jlistn...@gmail.com wrote: [...] constant name=struts.convention.default.parent.package value=something / [...] OK, well it should have been: struts    constant name=struts.devMode value=true/    constant name=struts.configuration.xml.reload

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Struts Two
This is weird, as basic authentication works for me and I have got no problem with it. Anyways,Earlier today, I sent my Struts enterprise file to WAS Level 3 support for testing [form based authentication] and I will keep you posted as soon as I hear sth.

Re: Return to previous page without javascript

2009-06-04 Thread Paweł Wielgus
Hi Stefano, add some kind of information about the page loging form is on, inside the login form, then in login action resolve where to come back. It can be also achieved by remebering the last request uri and params if any. But there is no standard solution for this problem, as far as i know. You

Re: Huge File upload in struts 2

2009-06-04 Thread Greg Lindholm
I'm not having any problem with 20mb files using Struts 2.1.6 and the standard fileUpload interceptor. From what I see, Sir Evans is warning you that loading the entire file into memory may be a problem if your files are very large. Nowadays 10mb is not really that large. If you want to put 10mb

Re: Formatting output, double without exponent

2009-06-04 Thread Greg Lindholm
You need to format the number how you would like it. If you have a fixed format and don't have to worry about internationalization then you could just add another method to your class that returns it formatted the way you like i.e. getCurrentMoneyFormatted(). However if you need to

RE: Doubts about new project (Struts2 good way to do it?)

2009-06-04 Thread Martin Gainty
Good Afternoon Francisco i have an opinion on the subject which i would be more than happy to share with you 1) User preferences: every user can configure its window and maintain its configuration after save preferences and log in again. The user can select options from a list and position

Re: Params not getting set

2009-06-04 Thread Jim Collings
The configuration constant I pointed to still isn't in there. In the default stack, the params interceptor does not run before the prepare interceptor. For instances where you need the params set first, then the prepare interceptor fires afterwards, we created the paramsPrepareParamsStack.

RE: Adding Struts 2.1.6 on WAS 6.1 breaks welcome-file in web.xml

2009-06-04 Thread Mitchell, Steven
UDPATE: WebSphere 6.1.0.23 did indeed fix our basic auth issue with Struts 2.1.6. It now successfully challenges the user if the try to access a protected Struts action. It did not fix the welcome file issue (using welcome-fileindex.html/index). I think I will retest Wes's suggestion to use

RE: Huge File upload in struts 2

2009-06-04 Thread Martin Gainty
http://spdn.ifas.ufl.edu/docs/config/http.html (int)The socket receive buffer (SO_RCVBUF) size in bytes. Default value is 25188 socket.bufferPoolSize (int)The NioChannel pool can also be size based, not used object based. The size is calculated as follows: NioChannel

Re: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-04 Thread Struts Two
Finally, the problem with form based authentication got resovled. However; here is a summary of what happens that we get the error: There is no Action mapped for namespace / and actionName j_security_check With form-based authentication, Websphere authenticates a user by using URI

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-04 Thread Martin Gainty
Did you get a chance to contact IBM to apprise them of this solution? Félicitations sur ce travail le plus excellent ! Martin __ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le

RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and action name j_security_check

2009-06-04 Thread Struts Two
I had a PMR open with IBM and L3 support pointed me to the right direction by sifting through the logs. --- On Fri, 6/5/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: (PROBLEM SOLVED) WAS 6.1: There is no Action mapped for namespace / and

Re: HTML warnings for hidden in xhtml theme

2009-06-04 Thread Dave Newton
Security Management wrote: Using forms in the xhtml theme creates a 2 column table for *most* items. The hidden item is not one of them, and gives html warnings for hidden being inside of table instead of inside of a td. It's an easy fix by putting the following hidden.ftl in the xhtml theme

Re: Params not getting set

2009-06-04 Thread Dave Newton
Jim Collings wrote: Hmmm, so it seems from testing that I've been doing that the constant is mandatory in all cases where you want params set before Prepare is called while using paramsPrepareParamsStack AND you are using the Convention plugin. K, got it. I think this also might explain why I

Re: Huge File upload in struts 2

2009-06-04 Thread Dave Newton
Martin Gainty wrote: if your OS and container supports sendfile you may want to enable sendfile for static files Isn't that for sending data to the client? IIRC they were talking about uploads. Dave - To unsubscribe,

Re: Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
Hi, I have problem with this readInputStream method. I have checked in (postgresql)database, which i used column data type is bytea its default column size 1gb data. I will explain my problem clearly, Step1 : I checked in java file itself, public static void