File upload in Struts 2

2009-09-03 Thread Johnson nickel
Hi all, I'm developing web applications using struts 2 framework. I have upload functionality,I'm not able to upload more than 1.5 mb file. I have defined in struts.xml file constant name=struts.multipart.maxSize value=2097152 / It was getting uploaded in Unix server. But not

Re: Localization in struts 2

2009-06-23 Thread Johnson nickel
java.util.Locale(en,US)); -Original Message- From: Johnson nickel [mailto:sarava...@elogic.co.in] Sent: 22 June 2009 11:28 To: user@struts.apache.org Subject: RE: Localization in struts 2 Can you explain in detail. i have ResourceBundle_hi.properties in my web-inf/classes dir where

RE: Localization in struts 2

2009-06-22 Thread Johnson nickel
-Original Message- From: Johnson nickel [mailto:sarava...@elogic.co.in] Sent: Thursday, June 18, 2009 1:15 PM To: user@struts.apache.org Subject: RE: Localization in struts 2 Thank you.. it's working fine. I have other issue.. in my application most of the places i used the images. I want

RE: Localization in struts 2

2009-06-22 Thread Johnson nickel
of dynamic content you want to show like this. If you have a very huge list then this would be a very difficult job to complete. Regards, Muthu -Original Message- From: Johnson nickel [mailto:sarava...@elogic.co.in] Sent: Thursday, June 18, 2009 1:15 PM To: user@struts.apache.org

RE: Localization in struts 2

2009-06-22 Thread Johnson nickel
- From: Johnson nickel [mailto:sarava...@elogic.co.in] Sent: 22 June 2009 11:28 To: user@struts.apache.org Subject: RE: Localization in struts 2 Can you explain in detail. i have ResourceBundle_hi.properties in my web-inf/classes dir where to define this location in struts.xml file

Re: Localization in struts 2

2009-06-18 Thread Johnson nickel
Hedberghttp://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html - I drank some boiling water because I wanted to whistle. On Thu, Jun 18, 2009 at 10:45 AM, Johnson nickel sarava...@elogic.co.inwrote: Hi all, I have tried the Struts2i18n sample project it's working fine. But i

RE: Localization in struts 2

2009-06-18 Thread Johnson nickel
you should be able to see the hindi text properly in browser. Hope this solves your problem. Thanks, Muthu -Original Message- From: Johnson nickel [mailto:sarava...@elogic.co.in] Sent: Thursday, June 18, 2009 12:28 PM To: user@struts.apache.org Subject: Re: Localization

Localization in struts 2

2009-06-17 Thread Johnson nickel
Hi all, I have tried the Struts2i18n sample project it's working fine. But i need to implement local language in the same manner. I have created ResourceBundle_Hi.properties for hindi language. I had specified the hindi text in this file. when i try to execute the application it shows

Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
/filesystem. There's no other built-in approach in Struts2 but you'll find ajax fileuploaders on the web that handle massive files better than this. Jeromy Evans - Blue Sky Minds wrote: Johnson nickel wrote: Hi Jeromy Evans, Thanks for your reply. I would like to insert

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

Struts2 localization

2009-04-24 Thread Johnson nickel
Hi all, I want to know about struts 2 localization. I have seen the struts 2 documentation i'm not getting clear idea. Can anybody provide the basic steps for implementing this localization concept. -- View this message in context:

Struts 2 using Quartz

2009-04-20 Thread Johnson nickel
Hi all, I'm using struts 2.0.6. I have requirement to write an logic in action file. Where that action should be schedule in (daily or weekly). For that , i have used Quartz in struts 1. It was working fine as per this site details. http://demo.jgsullivan.com/struts/ I

Re: Struts 2 using Quartz

2009-04-20 Thread Johnson nickel
is incredibly easy. On 4/20/09, Johnson nickel sarava...@elogic.co.in wrote: Hi all, I'm using struts 2.0.6. I have requirement to write an logic in action file. Where that action should be schedule in (daily or weekly). For that , i have used Quartz in struts 1. It was working fine

User changing theme in Struts 2

2009-03-25 Thread Johnson nickel
Hi all, Is there any default settings in struts2. where user can select their own theme. My requirement is we have set buttons in our applications with different colors. For,ex in orkut and gmail change theme options the same way i want to implement in my

Tree view component in struts 2

2008-12-29 Thread Johnson nickel
Hi all, I'm using struts 2.0.6, Is it possible to implement tree view structure. I have gone thro' struts 2 website. Documentation is not clear. Moreover static tree example , i want the sample documentation ,tutorial for dynamic tree data are getting from database. -- View

using disabled attributes in s:submit tag

2008-02-08 Thread Johnson nickel
Hi all, How to use enable and disable attributes in s:submit value=save method=save name=savebutton disabled=true but it's not working. what wrong with this, i tried onclick event using html drop down select name=user_id size=9 STYLE=width:-300px align=left

Multiple submit buttons in a single JSP

2008-02-07 Thread Johnson nickel
Hi all, In my JSP, i have three submit buttons, i want to know which button user has clicked. I tried from this site, http://struts.apache.org/2.x/docs/html-form-buttons-howto.html http://struts.apache.org/2.x/docs/html-form-buttons-howto.html It's not working. Give me

Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
Hi All, I am using Struts 2 application, i have userdetails.jsp its contains five text fields. two buttons save and update. In my action i have written save() method and update() method. In my jsp one drop down box its contains users. At the time of onchange event to populate the

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
/jw-08-2007/jw-08-ajaxtables.html?fsrc=rss -index (although is a rather tough example to follow if you're new to AJAX) http://www.planetstruts.org/struts2-showcase/showcase.action (showcase examples) Hope this helps Jo -Original Message- From: Johnson nickel [mailto:[EMAIL

RE: Struts 2 onchange event to get values from databases

2008-01-30 Thread Johnson nickel
: Johnson nickel [mailto:[EMAIL PROTECTED] Sent: 31 January 2008 07:35 AM To: user@struts.apache.org Subject: RE: Struts 2 onchange event to get values from databases I am very new to Struts 2 and Ajax. If u have any samples please send it. Johan Snyman wrote: Hi Johnson (and others

Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Johnson nickel
Hi Friends, I am using Struts 2 application for my project. Before I was used Struts 1 when compare to this Struts 2 is reduced lot of configuration problems. I have use the Annotation validation to validate the Username and password fields in my Login page. Code:

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Johnson nickel
. newton.dave wrote: --- Johnson nickel [EMAIL PROTECTED] wrote: @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName=username,message=UserName is required) For a string field you'll probably want to use the @RequiredStringValidator: a text field will return an empty

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Johnson nickel
Hi Evans, I digged in google examples in StreamResult. But, i can't understand. I want to display the images in browser Using StremResult. Instead of ServletOutputStream out= response.getOutputStream(); How can i use StreamResult. Can u give some examples

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Johnson nickel
Hi Evans, I want to display the images in browser from the database. I have added my code.It throws null pointer Exception. In my action, i have implements ServletRequestAware,ServletResponseAware interface. I want to know if

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Johnson nickel
Hi Jeromy Evans, Thanks for your reply. I would like to insert the images into my Databases. For that, i'm using byte[] array. In Struts 1.3, I used FormFile class. From this class i got the method getFileData(); In my db,

Struts 2 File upload to store the filedata

2007-12-05 Thread Johnson nickel
Hi everyone, I am using Struts 2 and using s:file tag to upload a file. But I get that file as a 'File' object in my action class and using getFileName() on that File object returns me some arbitrary value (something like upload__5b41f107_1127b4befe0__8000_.tmp). I want to retrieve