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
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*
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
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
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
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.
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;
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.
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
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
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:
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
--
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
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]
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
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
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
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
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
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
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
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.
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
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
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
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
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
-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
-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
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
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,
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
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
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
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
35 matches
Mail list logo