thanks,
now there is a problem in struts.xml:
Can not find a java.io.InputStream with the name [${contentType}] in the
invocation stack. Check the
--
View this message in context:
http://www.nabble.com/download-file-tp24050039p24067967.html
Sent from the Struts - User mailing list archive
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.
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.
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:
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
good moornig,
my problem is this:
i've this select
s:select cssClass=selezione id=docente listKey=getCodiceD()
listValue=getNome()+getCognome() theme=simple
list=getDocentiNONComm()/s:select
in listValue i Want to separate getNome() and getCognome() with a white
space.
How can I make it?
--
good evening,
I've a trouble:
I would pass a parameter using tag s:action and i would that the action
result send a its result to a jsp page.
should I use the request or I could use a vaiable String?
--
View this message in context:
http://www.nabble.com/tag-action-tp23487099p23487099.html
thanks.
but i've now a new problem: when i upload my file i received this message
the request was rejected because its size (3571443) exceeds the configured
maximum (2097152) now i set in the interceptor-ref name file upload this
param:
interceptor-ref name=fileUpload
10485760
good moorning.
I've this question:
Can I send to an action two vakues using radion button?
for example i want send the code and the name for each element of radio
buttons.
Is it possible?
--
View this message in context:
http://www.nabble.com/radio-with-two-values-tp23272838p23272838.html
ok but i try to use an hidden tag but it set all values of name because it
is into an iterator tag
--
View this message in context:
http://www.nabble.com/radio-with-two-values-tp23272838p23274112.html
Sent from the Struts - User mailing list archive at Nabble.com.
please helm me
i must write a code for uploading file in a directory of the server.
i just try some example but i'm failed.
can someone give me the code to upluoad file
when i try i received this message
java.lang.RuntimeException: Unable to load bean
no where is ths file
Nils-Helge Garli wrote:
Do you have a jar with the
org.apache.struts2.dispatcher.multipart.MultiPartRequest class
anywhere in your classpath?
Nils-H
On Tue, Apr 28, 2009 at 7:25 PM, PEGASUS84 pegasu...@hotmail.it wrote:
please helm me
i must write a code
thanks now thw action works but
please send me a right code to make the uploadfile in a specify directory of
the server because the code wich i try doesn't work
--
View this message in context:
http://www.nabble.com/file-upload-tp23282289p23282922.html
Sent from the Struts - User mailing list
excuse me
has some one the code to save the upload file in a specific directory?
--
View this message in context:
http://www.nabble.com/file-upload-tp23282289p23286968.html
Sent from the Struts - User mailing list archive at Nabble.com.
ok but i must use personal interceptor for my project
Terry Gardner-2 wrote:
I think you can use date formatters in java.text to accomplish this
with no coding.
On Apr 7, 2009, at 6:36 PM, PEGASUS84 wrote:
I want create an interceptors wich converts the list of select tag
mese
good evening;
I've this question:
I want crate a select tag with a list of 31 days.
I create a java class with an ArrayList with 31 days but how can insert this
ArrayList into a list of the select tag?
--
View this message in context:
http://www.nabble.com/tag-select-tp22931262p22931262.html
i repeat my question
i want populate the list from action tag whit ArrayList which is in a bean
without to use action.
Can i do?
--
View this message in context:
http://www.nabble.com/please-help-me-tp22933522p22933522.html
Sent from the Struts - User mailing list archive at Nabble.com.
this is my bean
package bean;
import java.util.*;
public class DataOre {
List giorno=new ArrayList();
public DataOre(){
giorno = new ArrayList();
giorno.add(Sunday);
giorno.add(Monday);
giorno.add(Tuesday);
giorno.add(Wednesday);
the option 'value' parameter and the Map
value will become the option body.
Now, you have list as DataOre. This is not, as the documentation says,
an
Iterable source to populate from.
M.
-Original Message-
From: PEGASUS84 [mailto:pegasu...@hotmail.it]
Sent: Tuesday, April 07, 2009
I want create an interceptors wich converts the list of select tag mese in
another string:1,2...
i make this:
package bean;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import com.opensymphony.xwork2.Action;
public class convMese
yes is this my question, but my english is orrible.
the problem is that I don't know the hidden tag.
i try with s:hidden name=x value=hello/ but for taking the value of x
in an action How can I do.
I'm using the hidden tag into a link tag
--
View this message in context:
Thank you.
i wish encode data in the query string how can I do?
--
View this message in context:
http://www.nabble.com/hidden-data-tp22905294p22905999.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To
good moorning;
i've a question: can I send an hidden String with link to an action?
i don't want that on query string there is the value of my string
--
View this message in context:
http://www.nabble.com/hidden-data-tp22905294p22905294.html
Sent from the Struts - User mailing list archive at
excuse me!!!
how can I show in a jsp page the text which is into an interceptor
[snipp]
public String intercept(.
System.out.print(text)
[/snipp]
In result page the text doesn't appear
--
View this message in context:
that's right!
now i realize this:
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import com.opensymphony.xwork2.Action;
import javax.servlet.http.HttpServletRequest;
import com.opensymphony.xwork2.ActionContext;
import java.util.*;
How can i set an attribute in the curret http request into an interceptor?
--
View this message in context:
http://www.nabble.com/request-into-interceptor-tp22541443p22541443.html
Sent from the Struts - User mailing list archive at Nabble.com.
how can I access in the current http request from an interceptor
--
View this message in context:
http://www.nabble.com/interceptor-and-request-http-tp22541808p22541808.html
Sent from the Struts - User mailing list archive at Nabble.com.
to study some
servlet/jsp tutorials, and then move on to the Struts 2 bootstrap
guides.
Nils-H
On Mon, Mar 16, 2009 at 5:31 PM, PEGASUS84 pegasu...@hotmail.it wrote:
that's right!
now i realize this:
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2
i've created this interceptor,
does spmeone know why it doesn't work?
package bean;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
import com.opensymphony.xwork2.Action;
import java.util.*;
public class filtro implements Interceptor {
now it works;
but how can take the message which is in system.out.print...
--
View this message in context:
http://www.nabble.com/interceptor-tp22524102p22524243.html
Sent from the Struts - User mailing list archive at Nabble.com.
please help me.
I realize an interceptor and in this there is this snoppet code
System.out.print(text of message);
Can i display this message in a jsp page?
how can i?
--
View this message in context:
http://www.nabble.com/interceptor-Message-tp22528851p22528851.html
Sent from the Struts -
good moornig;
my question is:
How can I identify the action which came from;
--
View this message in context:
http://www.nabble.com/identify-action-tp22511787p22511787.html
Sent from the Struts - User mailing list archive at Nabble.com.
but How can I realize this?
Antonio Petrelli-3 wrote:
2009/2/23 PEGASUS84 pegasu...@hotmail.it:
Antonio se sei italiano potresti dirmi in italiano
Translation (please do not answer here)
Traduzione (non rispondere qui).
Non lo fare, perché usare Javascript per tornare indietro ti
explaining what you're trying to achieve? Usually,
input is passed to the action through a form or request parameters.
Nils-H
On Fri, Mar 13, 2009 at 11:23 PM, PEGASUS84 pegasu...@hotmail.it
wrote:
good evenig
i would ask if i can get the value of variable x s: set name=x
is it possible to call an action without a form or a link?
i would
s:if
calling an action
/s:if
--
View this message in context:
http://www.nabble.com/call-action-tp22513608p22513608.html
Sent from the Struts - User mailing list archive at Nabble.com.
good evening;
does someone know how can I send data from a jsp page to an Action?
--
View this message in context:
http://www.nabble.com/send-data-tp22498337p22498337.html
Sent from the Struts - User mailing list archive at Nabble.com.
thanks but the data object isn't an input tag as s:text or s:password
but a tag s:url;
Can I get url in an action?
--
View this message in context:
http://www.nabble.com/send-data-tp22498337p22498771.html
Sent from the Struts - User mailing list archive at Nabble.com.
for this properties a getter and
setter method)
and u get them whith a cast of the form , in the action
form-class = (form-class ) form;
2009/3/13 PEGASUS84 pegasu...@hotmail.it
thanks but the data object isn't an input tag as s:text or s:password
but a tag s:url;
Can I get url
good evenig
i would ask if i can get the value of variable x s: set name=x in an
action
--
View this message in context:
http://www.nabble.com/tag-set-tp22506157p22506157.html
Sent from the Struts - User mailing list archive at Nabble.com.
or request parameters.
Nils-H
On Fri, Mar 13, 2009 at 11:23 PM, PEGASUS84 pegasu...@hotmail.it wrote:
good evenig
i would ask if i can get the value of variable x s: set name=x in an
action
--
View this message in context:
http://www.nabble.com/tag-set-tp22506157p22506157.html
Sent from
this is my last question pleas help me;
i want realize an action which map on the jsp page which has invoked the
action (as a back button);
excuse me for my english but i'm an italian user
--
View this message in context:
http://www.nabble.com/action-tp22507466p22507466.html
Sent from the
good moorning;
does someone know How can I create an action which allows to go back to the
previous page?
--
View this message in context:
http://www.nabble.com/historyBack-tp22473940p22473940.html
Sent from the Struts - User mailing list archive at Nabble.com.
good evening,
in my project i've to create a form with two buttons wich make two different
process:
i try this method:
s:form id=configureform name=configureform
SOME table here or some fields
/s:form
s:url id=configure value=Configure.action /
s:a href=%{configure} showLoadingText=false
it doesnt work mean that the action go to a jsp page but the data in the form
there aren't in the jsp page
--
View this message in context:
http://www.nabble.com/one-action-with-two-buttons-tp22456812p22464237.html
Sent from the Struts - User mailing list archive at Nabble.com.
thanks but it doesn't take data from form yet
--
View this message in context:
http://www.nabble.com/one-action-with-two-buttons-tp22456812p22465024.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To
good moorning;
exuse me, i have created a new user with a form in an Action;
now I want send this user in a new jsp page; does someone know how make this
thing?
--
View this message in context:
http://www.nabble.com/data-transfer-tp22369476p22369476.html
Sent from the Struts - User mailing list
good moorning.
today my question is:How to create a back button wirh struts 2?
i used this code s:submit value=Indietro
action=javascript:history.back();/
but this metod don't operate.
Does someone help me?
--
View this message in context:
, PEGASUS84 pegasu...@hotmail.it wrote:
good moorning.
today my question is:How to create a back button wirh struts 2?
i used this code s:submit value=Indietro
action=javascript:history.back();/
but this metod don't operate.
Does someone help me?
--
View this message in context:
http
, PEGASUS84 pegasu...@hotmail.it wrote:
certainly;
but i must create a back button in a jsp page
but the tag submit with action=javascript:history.back(); doesn't work
Nils-Helge Garli wrote:
Maybe you can explain what your requirement is. Your browser already
has a back button ;)
Nils-H
Antonio se sei italiano potresti dirmi in italiano
--
View this message in context:
http://www.nabble.com/back-button-tp22159144p22159702.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe,
thanks for your answer i've removed the conversion error interceptor but the
same message apper in my jsp page;
if i see the html code i see td with the message invalide field value...
is there a way for remove this td?
--
View this message in context:
thanks,
but in this way i'cant se the labels of the form;
Can i override theme simple and remove only errorMessage?
--
View this message in context:
http://www.nabble.com/struts2-validation-tp22068251p22087958.html
Sent from the Struts - User mailing list archive at Nabble.com.
sorry but i can't.
this is my code jsp:
s:form action=/action/Login.action method=GET cssClass=form
s:textfield label=Username name=username
cssClass=basic/s:textfield
s:password label=Password name=password
cssClass=basic/s:password
s:select label=Login as name=tipo cssClass=selezione
good evening;
Does someone knows how to hide the error message which cames from the action
with name=input?
i don't want to view this message Invalid field value...
--
View this message in context:
http://www.nabble.com/struts2-validation-tp22068251p22068251.html
Sent from the Struts - User
sorry I want delete or change the error message from an action input please
help me but in my function validate() there isn't addfielderror.
i think that i can change the return in function validate: can i change
input in error?
i'm sorry for my english but i'm an italian user.
--
View this
good moorning to all I'm a new user forum and I need a big help:
I'm doing my degree thesis and I'm working with struts2; I would need to do
special thing but I hope that someone can help me:
I have to create an authentication form and I can very well except that I
want that the error message,
56 matches
Mail list logo