Re: JSON Plugin and S:Action

2009-07-14 Thread Chris Pratt
Ok, calling it from AJAX, instead of , seems to work, but unfortunately it appears the JSON Plugin isn't compatible with Struts 2.1. I'm currently using 2.1.2, but the documentation says that it works with 2.0.6. Is there any plan to update it to work with 2.1? What I'm seeing is: java.lang.NoSu

Re: MethodFilterInterceptor

2009-07-14 Thread cilquirm
stanlick wrote: > > The logic considers the action name without regard to the package the > action > is contained within. > I'm confused by this also. I thought an example implied either a real-world or contrived scenario where the problem in question manifests itself. -- View this messag

Re: how to configure struts2 for /*.action?

2009-07-14 Thread ravi_eze
i didnt get u, did u mean that we cant map only *.action to struts filter? Or u were telling of some workaround? Why does struts put this restriction that all urls should pass through him? And Why does he put restrictions at container level. see web.xml is the container level and i have my own

Struts1.3.10 and command chains

2009-07-14 Thread Struts Two
Prior to struts 1.3, If I wanted to load my catalog (say catalog.xml) file (which had all the business logic in chains for my app), I had to add the followings to my web.xml: org.apache.commons.chain.CONFIG_CLASS_RESOURCE resources/catalog.xml Chain Listener Chain Listener

Re: For s:textfield tag how to get value for title attribute from resource bundle.

2009-07-14 Thread wkbutler
Well I took Dave's advice from another thread (http://www.nabble.com/-S2--Dynamic-Text-Tag-Attributes-td19436146.html#a19436146) and just implemented this in my action. Oh well. Thanks guys - -- View this message in context: http://www.nabble.com/For-s%3Atextfield-tag-how-to-get-value-for-ti

Re: how to configure struts2 for /*.action?

2009-07-14 Thread Dale Newfield
谢冬鸣 wrote: > I have another question, So please start a new thread. Hijacking another is impolite. That said, this recent thread answers your question: It can't be done. http://www.nabble.com/Struts-2-Plug-in-and-JSP-404-td24415564.html#a24416948 -Dale --

Re: how to configure struts2 for /*.action?

2009-07-14 Thread Wes Wannemacher
2009/7/14 谢冬鸣 : > Hi david, > I have another question, I want to forward my Struts2 result to one jsp page > which included in one jar file, how can I locate the jsp file? You said > "...there are several Struts2 jars that house css and js files...", do you > have any idea how to get these files? >

Re: how to configure struts2 for /*.action?

2009-07-14 Thread 谢冬鸣
Hi david, I have another question, I want to forward my Struts2 result to one jsp page which included in one jar file, how can I locate the jsp file? You said "...there are several Struts2 jars that house css and js files...", do you have any idea how to get these files? Thanks On Tue, Jul 14, 20

Re: JSON Plugin and S:Action

2009-07-14 Thread Chris Pratt
Don't know, I was trying to initialize the variable using the same action that would be used to update it. And, because of this problem, I haven't been able to initialize it. Maybe I'll give it a try later. (*Chris*) On Tue, Jul 14, 2009 at 7:49 AM, Musachy Barroso wrote: > Never thought of

RE: how to configure struts2 for /*.action?

2009-07-14 Thread Kawczynski, David
I was in the same boat... One of my clients use apache httpd for all static content and tomcat for all dynamic content... there are several Struts2 jars that house css and js files. If you don't map everything to the Struts2 filter your Struts2 app won't be as full-featured as it could be. (

Re: JSON Plugin and S:Action

2009-07-14 Thread Musachy Barroso
Never thought of this use case before. Does it work if you use the action directly, instead of calling from a jsp? musachy On Mon, Jul 13, 2009 at 11:17 PM, Chris Pratt wrote: > I'm having a problem using with an action > whose result type is json.  It doesn't insert the results.  My Action is >

how to configure struts2 for /*.action?

2009-07-14 Thread ravi_eze
hi, We have an application in jsps. Now we added new functionality using Struts 2. The jsps (not struts2 jsps) have a file upload utility ( where the multi part form posts request to /upload.jsp). Now, this upload doesnt work if we have the struts2 filter mapping in web.xml. If we remove teh ma

RE: Help with JSP and javascript

2009-07-14 Thread Martin Gainty
Good Morning Mike http://www.prototypejs.org/api/ajax/updater could you illustrate how the prototype JS function works in struts? are you using a plugin? how would struts identify and create the 'items' container for 1st parameter illustrated here: new Ajax.Updater('items', '/items', { paramet

Re: Stream Result and Japanese data getting corrupted

2009-07-14 Thread David Canos
Hi folks i'm facing the same problem. if a setup *struts.locale=en_GB* in struts.properties I get ISO-8859-1 instead of UTF-8 in some result-type text/plain received. before set up this locale property it worked fine... and all other GETs and POSTs queries are working as expected in UTF-8... Is t

Re: Migration from Struts1 to Struts2

2009-07-14 Thread Dale Newfield
Lasantha Pambagoda wrote: We have been monitoring both memory and CPU usage, Interesting thing is memory is normal and only CPU is coursing the problem after migration. So have you run this in a profiler to see where it's spending all its time? -Dale -

Re: Uploading large files

2009-07-14 Thread Dale Newfield
Daniele Development-ML wrote: 3. Went to the FAQ section to see how I could integrate in my Struts application ( http://commons.apache.org/fileupload/faq.html ), and read the last point - from which I assumed Struts doesn't use this modality. Those two FAQs are related to Struts1, not Struts2.

RE: Help with JSP and javascript

2009-07-14 Thread Security Management
For the record, here's what works. Thanks for the help. Mike. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Friday, July 10, 2009 3:03 PM To: Struts Users Mailing List Subject: Re: Help with JSP and javascript There is a way to escape quotes in OGNL... I tho

Re: Uploading large files

2009-07-14 Thread Wes Wannemacher
There is a pretty good information here - http://struts.apache.org/2.x/docs/file-upload.html The internal details are relatively non-complex. The dispatcher hands file uploads off to this class - http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/m

Change style by javascript after loading

2009-07-14 Thread Felipe Fraga
Hello all, I would like to change struts templates, so I can add some Javascript after an action is loaded and result put in some div. Problem is that I can't seem to find the template or javascript file for that. I am aware of the afterLoading attribute, but since it is deprecated I don't want

Re: MethodFilterInterceptor

2009-07-14 Thread stanlick
The logic considers the action name without regard to the package the action is contained within. On Mon, Jul 13, 2009 at 5:53 PM, Musachy Barroso wrote: > > independent of the methods' package name > > I am not sure what you mean by this. example? > > musachy > -- > "Hey you! Would you help me

struts2 doubleselect tag doesn't support multiselect?

2009-07-14 Thread FreshAir
Hi, I am currently using struts2.1.6 tag on my web pages. Yet when it comes to tag, I find it seemingly impossible to make its double list multiple-selected. The following is my tag on the form page: The attribute "doubleMultiple" is set to be true so that when I choose a type from i

Re: Migration from Struts1 to Struts2

2009-07-14 Thread Lasantha Pambagoda
Dear Wim, We have been monitoring both memory and CPU usage, Interesting thing is memory is normal and only CPU is coursing the problem after migration. Here are sample records of CUP usage and Memory Usage. TIME PID CPU%MEM% 06:03:12 26350 130.10 12.60 06:03:17 26350 1

Ajax Validation has bug with tag when Form is "simple" theme

2009-07-14 Thread Yuan12345
version:2.1.X Ajax Validation has bug with tag when Form is "simple" theme when below jsp is submited,a alert box will be show with text:Could not validate: User Login

Re: Migration from Struts1 to Struts2

2009-07-14 Thread Wim De Smet
Hi, Lots of CPU activity could in some cases point to a memory problem where the garbage collector is getting run a lot because the server is very near memory exhaustion. Try monitoring memory usage and gc cycles with the usual tools (jvisualvm, jstat) and work from there. I'm sure there's a guid

Re: Uploading large files

2009-07-14 Thread Daniele Development-ML
Hello, my process in getting to this was 1. looking for some API to stream upload/download data directly into the HD, 2. found the Common File Upload API, 3. Went to the FAQ section to see how I could integrate in my Struts application ( http://commons.apache.org/fileupload/faq.html ), and read the

Re: Migration from Struts1 to Struts2

2009-07-14 Thread Lasantha Pambagoda
Dear Dave, We are using JBoss Application Server of 4.2.3 GA release. Best Regards Lasantha On Tue, Jul 14, 2009 at 2:18 PM, Dave Newton wrote: > I may have missed it, but providing the server you're using would be > helpful. > > Dave > > Lasantha Pambagoda wrote: >> >> Dear Martin, >> >> Thank

Re: Migration from Struts1 to Struts2

2009-07-14 Thread Dave Newton
I may have missed it, but providing the server you're using would be helpful. Dave Lasantha Pambagoda wrote: Dear Martin, Thanks for your link, We have went through the document and here are the description on each item described in document. 1) Turn off logging and devMode - Already done th

How to define style for onselect attribute of tag

2009-07-14 Thread taj uddin
Hi All,     In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined. Below is the code shown:   Home        User Manual                 Sup

How to define style for onselect attribute of tag

2009-07-14 Thread taj uddin
Hi All,     In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined. Below is the code shown:   Home        User Manual                 Sup

How to define style for onselect attribute of tag

2009-07-14 Thread taj uddin
Hi All,     In my application, the JSP page displays a list of items with hyperlinks. When i select one particular item, then that item/element should be rendered according to the style being defined. Below is the code shown:   Home        User Manual                 Sup