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 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. Please tell tell me h

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 To: user@struts.apache.org Date: 14-10-2010 15:48 Subject: struts file tag "accept" attribute Dear all, I find that accept attribute

Re: Store permanently file in temp directory

2010-10-13 Thread Rahul Mohan
details.html?groupId=struts&artifactId=struts&version=1.2.9&tab=DEPENDENCIES#tabs > > Dave > > On Wed, Oct 13, 2010 at 4:10 PM, Anjib Mulepati wrote: > >> I am not using common-fileupload library so do I have to write extra piece >> of code to delete? &g

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: 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 To: user@struts.apache.org Date: 21-09-2010 10:07 Subject: Bi

Re: Struts 2, Session Management and "WorkFlow".

2010-09-16 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

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

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

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" To: user@struts.apache.org Date: 08-09-2010 18:54 Subject: Dojo datetimepicker problem Struts: 2.1.

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 list

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 t

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 a

Re: Reading input stream (xml)

2010-07-30 Thread Rahul Mohan
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 wrote: > Think I understand your problem now. AFAIK Struts doesn't have any > available me

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
this case, how can I get the posted XML contents? -- AB On Thu, Jul 29, 2010 at 5:59 PM, Rahul Mohan wrote: > Data goes in request body when you are posting a form. Post requests are > obviously handled by Struts. So it should work. ( Only you know that it is > XML, for Struts its just

Re: Reading input stream (xml)

2010-07-29 Thread Rahul Mohan
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 wrote: > Arun, > > Are you doing a POST with multi-part encoding? If so, a solution similar > to file upload would work for you. If n

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 To: Struts Users Mailing List Date: 29-07-2010 13

Re: Reading input stream (xml)

2010-07-28 Thread Rahul Mohan
t for this requirement. - Rahul Mohan From: Arun Kumar Boppudi To: Struts Users Mailing List 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 and sending it to the action controller in the

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 To: Struts Users Mailing List Date: 28-07-2010 22:09 Subject: Reading input stream (xml) If we send XML content in the POST/PUT request to Struts action controller, how to read th

Re: Ajax Response - Array Objects

2010-07-15 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" To: Date: 15-07-2010 19:04 Subject: Ajax Response - Array Objects I cannot seem to get my Ajax request to return to the

Re: Modify JSON Format?

2010-06-22 Thread Rahul Mohan
e the order available on client from the table declaration, so it should be easy. ) Regards, Rahul Mohan From: Ozu Natsu To: Struts Users Mailing List Date: 22-06-2010 20:57 Subject: Modify JSON Format? Hi, I am using JSON plugin to return data to JQuery DataTable, but format is not compa

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 To: Struts Users Mailing List Date: 21-06-2010 17:21 Subject: Re: Jasper Report Problem in HTML format Dear List members, My problem is still not reso

Re: Encrypting parameters

2010-06-02 Thread Rahul Mohan
rol on the data based on the user credentials. cheers, Rahul Mohan From: Stephane Cosmeur To: Struts Users Mailing List 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 like to encrypt the visible

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 ea

Re: Partial Validation

2010-04-27 Thread Rahul Mohan
nt that describes it. -Wes On Wed, Apr 21, 2010 at 3:35 AM, Rahul Mohan wrote: > 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

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. Let

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 i

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 = Hope this helps. - rahul

Re: Jquery autocomplete with struts2.

2010-04-23 Thread Rahul Mohan
suggest you post this to jquery forums. From: sharath karnati To: Struts Users Mailing List 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 class), like I set one two three

Re: Jquery autocomplete with struts2.

2010-04-22 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: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
10 15:17 Subject: Re: Action result to go nowhere *I do not want to go to some result page * *On return INPUT** * *No result defined for action com.upasana.action.ComAction and result input* :) On Thu, Apr 22, 2010 at 3:13 PM, Rahul Mohan wrote: > Try 'return INPUT'. >

Re: Action result to go nowhere

2010-04-22 Thread Rahul Mohan
Try 'return INPUT'. - rahul From: Upasana Sharma To: Struts Users Mailing List 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 action name as the url. It does not stick to t

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 entire

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,

RE: FW: code too large for try statement

2004-05-19 Thread Rahul Mohan
Thank for the reply joe... But the Tomcat I am using is 4.1 only.I have checked the documentation and found out that both Tomcat4.1 and Weblogic8.1 is conformant to J2EE1.3 ( Servlet 2.3 / JSP 1.2 ) so the problem is not with the jsp specs further, i feel that the problem is

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 {