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()
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.
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
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
=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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
Hope this helps:
--- Action class
//the options to be returned
private String[] options;
public void setOptions(String[] options) {
this.options = options;
}
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
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
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
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
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
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,
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
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 {
36 matches
Mail list logo