Re: Newbie (possibly RTFM) issue

2009-06-16 Thread Paweł Wielgus
Hi, can You verify that getter in action is called? Add sysout or debug this place, because if it's not beeing called there will be no result on the page. This would suite to nothing is rendered in s:textfield, not the s:text! Best greetings, Pawel Wielgus. 2009/6/15, chumbobumbo

Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
Hi, I am trying to use the following simple interceptor test the interceptor concepts but is not happened while calling the action class. Sample interceptor class. *import* *com.opensymphony.xwork2.ActionContext*; *import* com.opensymphony.xwork2.ActionInvocation; *import*

validator issue in Struts 2.16

2009-06-16 Thread Yanto
Hi, I am trying to use the struts validation xml and testing with my action but its not working in struts 2.1.6 . Same code working fine in struts 2.0.6 Any issue in the 2.1.6 version ? Are we need to include any interceptor ? I pasted below my codes.Any one had same issue previously

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Paweł Wielgus
Hi Yanto, use this [1] plugin to verify if all namespaces and stacks are as You think they should be. [1] http://struts.apache.org/2.x/docs/config-browser-plugin.html Best greetings, Paweł Wielgus. 2009/6/16 Yanto yantob...@gmail.com: Hi, I am trying to use the following simple interceptor

Struts Validation - Error loading JavaScript Files

2009-06-16 Thread tarun trehan
Dear all, i'm using struts 2 and validator to validate my form. after login i goto a page where a tree structured menu coded in seperate javascript file is loaded. Till the time my login is correct , i get the page. When i enter incorrect login/pwd or leaving any one blank, validator fails

download file

2009-06-16 Thread PEGASUS84
please can anyone send me the cplete code to create an action which allows to download a file -- View this message in context: http://www.nabble.com/download-file-tp24050039p24050039.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: download file

2009-06-16 Thread Paweł Wielgus
Hi, read this: http://struts.apache.org/2.0.6/docs/stream-result.html and this (note that it's to much as for a simple download but that's what i've got): package com.ppp.oko.struts.action.motion.file; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException;

Re: download file

2009-06-16 Thread PEGASUS84
Right it's really too much because i've not many packages that you've used. is there a more simple code ? -- View this message in context: http://www.nabble.com/download-file-tp24050039p24050650.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: download file

2009-06-16 Thread Paweł Wielgus
Nope, that's all i've got, but You can try to remove all that's unimportant. Best greetings, Paweł Wielgus. 2009/6/16 PEGASUS84 pegasu...@hotmail.it: Right it's  really too much because i've not many packages that you've used. is there a more simple code ? -- View this message in

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
Hi Pawel, thanks for the link we already check the interceptor for the namespace, and it's showing the interceptor yang we configure in the config-browser-plugin TimerInterceptor com.opensymphony.xwork2.interceptor.TimerInterceptor but, when we check from the Apache console, the interceptor is

Re: download file

2009-06-16 Thread PEGASUS84
sorry, i don't succeed i haven't idea -- View this message in context: http://www.nabble.com/download-file-tp24050039p24051122.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
You can't expect someone else to write your code for you... What have you tried? What errors did you get? You have to at least provide some informatino for us to help you. Nils-H On Tue, Jun 16, 2009 at 11:54 AM, PEGASUS84pegasu...@hotmail.it wrote: sorry, i don't succeed i haven't idea --

Re: download file

2009-06-16 Thread PEGASUS84
my action is this: public class FileDownload extends ActionSupport { InputStream inputStream; public void setInputStream(InputStream s){inputStream=s;} public InputStream getInputStream(){return inputStream;} public String execute(){ return sendFile; } } and in

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
after we add validationWorkflowStack interceptor before the timer, then the timer interceptor will show the result, interceptor-ref name=validationWorkflowStack/ interceptor-ref name=timer/ if we use the above in the action it is printing the timer value like below [2009-06-16 18:03:41,218]

Re: download file

2009-06-16 Thread Nils-Helge Garli Hegvik
And where does your input stream come from? On Tue, Jun 16, 2009 at 12:11 PM, PEGASUS84pegasu...@hotmail.it wrote: my action  is this: public class FileDownload extends ActionSupport {       InputStream inputStream;   public void setInputStream(InputStream s){inputStream=s;}   public

Re: download file

2009-06-16 Thread Dave Newton
PEGASUS84 wrote: my action is this: public class FileDownload extends ActionSupport { InputStream inputStream; public void setInputStream(InputStream s){inputStream=s;} public InputStream getInputStream(){return inputStream;} public String execute(){ return

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Dave Newton
Yanto wrote: action name=test class=test.QuizAction interceptor-ref name=sample / /action This will configure *only* the sample interceptor. If you specify *any* interceptors on a per-action basis you must configure *all* interceptors. This can be done in several ways. - specify all

Struts Flow in JSP,Servlets Project

2009-06-16 Thread sprani.kmraj
Dear All, GoodDay...! Im beginner for Struts programming. I hv started developing a Struts project. I have many doubt can u please clarify my doubt i have a jsp page which contains the input data(name password). When i click the submit button, data will have to store in the database. i

OT: Problem with IE6 and JQuery (?)

2009-06-16 Thread Marc Eckart
Hi, we have a struts2 application and we implemented the ajax functions with jquery. We now load some html tables with ajax in different divs. Now we have the phenomenon that some text fragments of a td is displayed under the table, but I can't find it somewhere in the dom tree. When I mark the

Re: OT: Problem with IE6 and JQuery (?)

2009-06-16 Thread dusty
Usually that means you have the td outside the table tag somehow. Is that table terminated in the middle of your setup and not restarted? Marc Eckart-2 wrote: Hi, we have a struts2 application and we implemented the ajax functions with jquery. We now load some html tables with ajax in

RE: OT: Problem with IE6 and JQuery (?)

2009-06-16 Thread Martin Gainty
Marc- plugin was rewritten as there were a number of missing components Kind Regards Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger

Mapped back UI and #status.index driven names

2009-06-16 Thread stanlick
How is that for a subject line? I always wonder what I would search for myself :working: I had a guy tell me that a struts web tag was generating an absurd number of method calls on his action/model. After carefully considering his scenario, I was able to experiment using the files below.

Re-establish the Session

2009-06-16 Thread Rafael Taboada
Hi, I have session recovering problem and I don't know how to do it, I hope you can help me. I use FileUploader to upload a file: http://www.sitepen.com/blog/2008/12/01/dojox-fileuploader-upgrade-to-support-flash-10/. It seems to upload the file but I have lost my session in my Action class and

RE: Mapped back UI and #status.index driven names

2009-06-16 Thread Martin Gainty
code for addAll? code for Thing.getThings()? struts.xml action config for mapBackedUIsaveList? thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der

RE: Mapped back UI and #status.index driven names

2009-06-16 Thread stanlick
It's never enough FOR YOU PEOPLE!!! =^D public static Collection? extends Thing getThings() { ArrayListThing things = new ArrayListThing(); things.add(new Thing(1, foo, 1.95f)); return things; } action name=mapBackedUI* method={1} class=acme.action.ListAction

AJAX loading

2009-06-16 Thread Felipe Fraga
Hello, Could anyone give me some idea about how to set a loading image in a DIV while executing an AJAX action? For example: I click a s:a theme=ajax targets=someDiv. I want someDiv to show a customized loading image while it is loading. What's the easiest or best way to achieve this? I have

Re: Newbie (possibly RTFM) issue

2009-06-16 Thread chumbobumbo
Yeah, it's called isTestBool (but I tried with getTestBool as well) neither work, I enabled the debug console adn if I output the stack values in my browser is says that 'no read method is available, listing testBool as 'String' whereas the testbool (primitive boolean) is reported correctly as

Re: Struts Flow in JSP,Servlets Project

2009-06-16 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, 1) your submit button should submit to some action defined in struts.xml. 2) your action class is called (if you have not specified any other, execute is called. 3) the result of your action specifies, which jsp is called next your code for

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, sounds like you mixed up interceptors and action classes. Look at *http://struts.apache.org/2.x/docs/interceptors.html *regards Volker Yanto schrieb: Hi, I am trying to use the following simple interceptor test the interceptor concepts

Re: @Results ignored

2009-06-16 Thread Jim Collings
Lukasz Lenart wrote: As I remember, Dynamic Method Invocation is disabled by default, so you need to enable it: struts.enable.DynamicMethodInvocation = true Turns out that the convention plugin was doing something. Renamed to circumvent. Hope someday to understand convention plugin enough to

Re: Mapped back UI and #status.index driven names

2009-06-16 Thread Dave Newton
stanlick wrote: s:textfield name=things[%{#status.index}].name value=%{name} / I'd assume something like getThings().put(index, name). OGNL has to get the map in order to put something into it. Dave - To unsubscribe,

Re: Newbie (possibly RTFM) issue

2009-06-16 Thread Dave Newton
chumbobumbo wrote: Yeah, it's called isTestBool (but I tried with getTestBool as well) neither work, I enabled the debug console adn if I output the stack values in my browser is says that 'no read method is available, listing testBool as 'String' whereas the testbool (primitive boolean) is

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
Hi Dave, after following your note, we are able to run our sample interceptor, however now we have another issue the sample interceptor will always looping, since we have the following code in the sample interceptor, *return* invocation.invoke(); but the sample interceptor will not run, if we

Re: Interceptor issue in Struts 2.1.6

2009-06-16 Thread Yanto
Hi Volker, thanks, we are able to run the interceptor now, but we have another issue, the interceptor will Loop, we create the sample follow the code from the webworks *public* *class* *InterceptorSample* *extends* AbstractInterceptor { @Override *public* String

Re: Newbie (possibly RTFM) issue

2009-06-16 Thread chumbobumbo
Haven't tried it (had to move on) I just reverted to primitives and rely on autoboxing (i.e. not having to make end to end change all the way to the server side) when passing model to my web service. newton.dave wrote: chumbobumbo wrote: Yeah, it's called isTestBool (but I tried with