Re: File Download with multiple files. Design question

2010-11-19 Thread Rahul Mohan
Roger, In my project, we implemented a FileManager for storing, retrieving and cleaning up files. On upload, the filemanager creates a temp file on disk and stores the file-URL in a map correlated with the session id. We also implemented a SessionListener which calls FileManager.deleteFiles()

Re: How to get the value of Constants defined in struts.xml

2010-10-21 Thread Rahul Mohan
Just put an @Inject(name=MYCONSTANTVARIABLE) annotation on the setter in action class. - RM From: SudhirJava sudhi...@gmail.com To: user@struts.apache.org Date: 21-10-2010 17:58 Subject: How to get the value of Constants defined in struts.xml I am sorry, if this thread is repeated.

Re: struts file tag accept attribute

2010-10-14 Thread Rahul Mohan
Most of the browsers do not support accept attribute correctly. I fixed this in my application using some javascripts triggered on change. From: cellterry cellte...@gmail.com To: user@struts.apache.org Date: 14-10-2010 15:48 Subject: struts file tag accept attribute Dear all, I find that

Re: Store permanently file in temp directory

2010-10-13 Thread Rahul Mohan
Does the (temporary!!) files get deleted automatically? I though that we have to delete it with some additional code. Can any one make clear on this. Yes. On upload, the commons-fileupload library creates temporary files on the disk which are deleted on completion of the request. I

Re: Store permanently file in temp directory

2010-10-13 Thread Rahul Mohan
=strutsartifactId=strutsversion=1.2.9tab=DEPENDENCIES#tabs Dave On Wed, Oct 13, 2010 at 4:10 PM, Anjib Mulepatianji...@hotmail.com wrote: I am not using common-fileupload library so do I have to write extra piece of code to delete? Anjib On 10/13/2010 3:11 AM, Rahul Mohan wrote: Does

Re: Bizarre sporadic problem with streaming a stylesheet.

2010-09-20 Thread Rahul Mohan
Dave, Did you take a look at this request through Firebug? It might show some useful info. Also, is the content type proper (text/css) in the request header? I can't see you setting it anywhere. - Rahul From: Dave Belfer-Shevett d...@homeport.org To: user@struts.apache.org Date: 21-09-2010

Re: Struts 2, Session Management and WorkFlow.

2010-09-17 Thread Rahul Mohan
Roger, Can I simply mail the eclipse project to you? We can discuss the usage over email and get it running. I am planning to work on this over the next week and therefore we can actually release the plugin formally in a week or two. Regards, Rahul rahulmohan wrote: The page is

Re: Struts 2, Session Management and WorkFlow.

2010-09-16 Thread Rahul Mohan
Doh! This wouldn't be the raison d'etre for the Scope plugin by any chance? Exactly! I think scope plugin solves your problem. The conversation support in scope plugin is not as rich as that in seam, but can serve as the starting point. I have fixed a couple of bugs in the scope plugin and I

Re: Struts 2, Session Management and WorkFlow.

2010-09-16 Thread Rahul Mohan
rahulmohan wrote: Exactly! I think scope plugin solves your problem. The conversation support in scope plugin is not as rich as that in seam, but can serve as the starting point. I have fixed a couple of bugs in the scope plugin and I am working on some enhancements in scope

Re: Dojo datetimepicker problem

2010-09-09 Thread Rahul Mohan
Andi, I have noticed this happening once in a while in my app too. haven't investigated yet. Did you try to reproduce this with your browser cache turned off? /Rahul From: Andreas Sachs andil...@gmx.de To: user@struts.apache.org Date: 08-09-2010 18:54 Subject: Dojo datetimepicker problem

Re: How do I get wibble[0][something]=blah to parse into an action?

2010-09-05 Thread Rahul Mohan
Hi Andy, This seems to be a problem with S2. ( See: http://struts-2.464677.n5.nabble.com/Ognl-problem-td1672158.html#a1672158 and http://www.mail-archive.com/user@struts.apache.org/msg96386.html ). I struggled with this for some time but finally went ahead with a work-around - changed the

Re: Struts2 Dynamic Merge of two webform objects / join two objects in database

2010-09-03 Thread Rahul Mohan
Nicolas, I use the scope plugin ( https://cwiki.apache.org/S2PLUGINS/scope-plugin.html) for this. A bit heavy on the session memory, but suits my purpose. Put @InOut annotation on your model with scope set as session. This outjects the object loaded from DB into session just before forwarding

Re: URL authentication

2010-08-09 Thread Rahul Mohan
I think we are mixing two issues here. Authentication deals with verifying whether a user is what he/she claims to be and authorization is the mechanism for checking whether someone has access to a particular resource. The standard practice is to prevent unauthenticated users from accessing

Re: Reading input stream (xml)

2010-07-30 Thread Rahul Mohan
to give a try to the third one. But not all the action controllers gets XML in the request. So, I may have to list down the controllers which gets the XML content in the request. -- AB On Fri, Jul 30, 2010 at 10:41 AM, Rahul Mohan rahul.mo...@tcs.com wrote: Think I understand your problem now. AFAIK

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
Arun, Are you doing a POST with multi-part encoding? If so, a solution similar to file upload would work for you. If not, then the String in action-form approach that I posted earlier should work. - Rahul Mohan From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
format. But I am not sending it in the query string format. And I am not using multipart encoding. Just sending the XML content in POST body. -- AB On Thu, Jul 29, 2010 at 2:38 PM, Rahul Mohan rahul.mo...@tcs.com wrote: Arun, Are you doing a POST with multi-part encoding? If so

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
not be mapping it to a property in the form bean. In this case, how can I get the posted XML contents? -- AB On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan rahul.mo...@tcs.com wrote: Data goes in request body when you are posting a form. Post requests are obviously handled by Struts. So it should work

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
Doesn't this link (http://struts.apache.org/2.0.14/docs/file-upload.html) help you? From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 28-07-2010 22:09 Subject: Reading input stream (xml) If we send XML content in the POST/PUT

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
for this requirement. - Rahul Mohan From: Arun Kumar Boppudi arunkumar.bopp...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 29-07-2010 10:32 Subject: Re: Reading input stream (xml) Actually, I am not uploading a file. I am creating XML from the data entered into the form

Re: Ajax Response - Array Objects

2010-07-16 Thread Rahul Mohan
Chris, Maps are serialized as 'name : value' pairs, whereas Lists are serialized as Arrays. Change your return type to a List and try. - Rahul From: CRANFORD, CHRIS chris.cranf...@setech.com To: user@struts.apache.org Date: 15-07-2010 19:04 Subject: Ajax Response - Array Objects I cannot

Re: Modify JSON Format?

2010-06-22 Thread Rahul Mohan
the order available on client from the table declaration, so it should be easy. ) Regards, Rahul Mohan From: Ozu Natsu ozu.na...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 22-06-2010 20:57 Subject: Modify JSON Format? Hi, I am using JSON plugin to return data to JQuery

Re: Jasper Report Problem in HTML format

2010-06-21 Thread Rahul Mohan
Looks like its a path issue. Please see if the image tags in the generated HTML point to the proper URL for images. From: Amol Ghotankar ghotankaru...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 21-06-2010 17:21 Subject: Re: Jasper Report Problem in HTML format

Re: Encrypting parameters

2010-06-02 Thread Rahul Mohan
on the data based on the user credentials. cheers, Rahul Mohan From: Stephane Cosmeur cosm...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 03-06-2010 08:53 Subject: Encrypting parameters Hello, I would like to improve the security of my web application. My problem is I would

Re: Struts : Maintaining state of the Form

2010-05-12 Thread Rahul Mohan
Hi, I would recommend the first option. Session memory usage has a much bigger impact than multiple hits to the server as the memory usage grows linearly with the number of users. For retaining the previous view state, the best solution I have seen is to use a single page application, where

Re: Partial Validation

2010-04-27 Thread Rahul Mohan
setup a validation for the action mapping that corresponds to the ajax submit. Handling ajax validation is a bit tricky, but somewhere in the wiki, there is a document that describes it. -Wes On Wed, Apr 21, 2010 at 3:35 AM, Rahul Mohan rahul.mo...@tcs.com wrote: Hi, Is there any way I can do

Re: JSON Plugin Question

2010-04-26 Thread Rahul Mohan
Hi, Is your intention to show the message 'success' in the results div? In that case you don't need a JSON response. Also, is jsonData an instance variable of your action class. Otherwise, your json result will simply return an empty json. You can verify the response by opening the response

Re: S2 validation without API ties

2010-04-26 Thread Rahul Mohan
Chris, I think the fundamental mechanism of S2 is the configurable interceptor stack where each interceptor applies itself to the current action based on the interfaces the action implements. You can still reuse this mechanism by defining your own interceptor stack with your own interfaces.

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
Hope this helps: --- Action class //the options to be returned private String[] options; public void setOptions(String[] options) { this.options = options; }

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
suggest you post this to jquery forums. From: sharath karnati karna...@yahoo.com To: Struts Users Mailing List user@struts.apache.org Date: 23-04-2010 19:56 Subject: Re: Jquery autocomplete with struts2. Hi All, In firebug console it is displaying data correctly(what I set in Action

Re: ajax method returning login, how to do??

2010-04-23 Thread Rahul Mohan
Hi, You will have to handle the redirect on the client and not on the server when ajax is being used. Server should return some error_message or login page url back and the client should do something like this: if(return_text == 'Login') document.location = url to login page Hope this

Re: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
Try 'return INPUT'. - rahul From: Upasana Sharma sharma...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 22-04-2010 15:08 Subject: Re: Action result to go nowhere hi thanks for your response.I tried that But my browser goes to some blank page with that respective

Re: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
at 3:13 PM, Rahul Mohan rahul.mo...@tcs.com wrote: Try 'return INPUT'. - rahul From: Upasana Sharma sharma...@gmail.com To: Struts Users Mailing List user@struts.apache.org Date: 22-04-2010 15:08 Subject: Re: Action result to go nowhere hi thanks for your response.I tried

Partial Validation

2010-04-21 Thread Rahul Mohan
Hi, Is there any way I can do a partial validation in Struts 2? I have a page with two fieldsets, where I can either submit the entire page or submit only the fieldset (through Ajax). In the latter case, I wish to validate only the fieldset's properties, but in the former case I want the

RE: struts-bean:write and dynamic property parameter?

2004-05-19 Thread Rahul Mohan
hi dennis, ya...if u r using the rt version of taglibs u can use property="%=parameter%" . if u r using the el tags then use property="${parameter}" hope this helps rahul -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 18,

FW: code too large for try statement

2004-05-18 Thread Rahul Mohan
Hi, havent got a soln to this problem so fari am posting this again hoping somebody would help me out one more fact is that i cannot modify the jsp as such as it is being generated by a tool thanks rahul -Original Message- From: Rahul Mohan [mailto

code too large for try statement

2004-05-17 Thread Rahul Mohan
Hi, I have a JSP page with Struts and JSTL tags. It is pretty big with about 15 conrols and a *LOT* of JSTL tags. When I try host the page in Weblogic8.1 i get the following compile error: window.java:12652:code too large for try statement try {