Re: download file
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 at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
download file
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: download file
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: download file
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: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: download file
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 Struts.xml i've this: action name=fileDownload class=action.FileDownload result name=sendFile type=stream ${contentType} /result /action i wish to download a file -- View this message in context: http://www.nabble.com/download-file-tp24050039p24051377.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
white space
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? -- View this message in context: http://www.nabble.com/white-space-tp24031922p24031922.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
tag action
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 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: file upload
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 /interceptor-ref for 10MB but it doesn't work can some one help me? -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23295870.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
radio with two values
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 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: radio with two values
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
file upload
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 org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23282289.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: file upload
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 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 org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location] -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23282289.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/file-upload-tp23282289p23282574.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: file upload
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 archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: file upload
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: create personal interceptor
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 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 implements Interceptor{ String mese; public void setMese(String m){mese=m;} public String getMese(){return mese;} public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation) throws Exception{ if (getMese().equals(Gennaio)) setMese(1); else if(getMese().equals(Febbraio)) setMese(2); else if(getMese().equals(Marzo)) setMese(3); else if(getMese().equals(Aprile)) setMese(4); else if(getMese().equals(Maggio)) setMese(5); else if(getMese().equals(Giugno)) setMese(6); else if(getMese().equals(Luglio)) setMese(7); else if(getMese().equals(Settembre)) setMese(9); else if(getMese().equals(Ottobre)) setMese(10); else if(getMese().equals(Novembre)) setMese(11); else if(getMese().equals(Dicembre)) setMese(12); else setMese(0); return actionInvocation.invoke(); } but it doesn't work can someone help me? -- View this message in context: http://www.nabble.com/create-personal-interceptor-tp22939722p22939722.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org == terry.gard...@sun.com Mobile: +1 404 925 6385 Blog: http://blogs.sun.com/terrygardner Blog: http://dtfar.blogspot.com Twitter: http://twitter.com/tgardner SLAMD: http://slamd2.dev.java.net It is better to know some of the questions than all of the answers. - Thurber - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/create-personal-interceptor-tp22939722p22947039.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
tag select
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 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
please help me
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: please help me
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); giorno.add(Thursday); giorno.add(Friday); giorno.add(Saturday); } } anf in the jsp page there is %...@page import=bean.DataOre% s:select headerKey=1 headerValue=seleziona list=DataOre listValue=giorno / -- View this message in context: http://www.nabble.com/please-help-me-tp22933522p22933565.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: please help me
please can you say me any solution because i don't undestand the documentation Security Management wrote: From the documentation: http://struts.apache.org/2.0.14/docs/select.html List: Iterable source to populate from. If the list is a Map (key, value), the Map key will become 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 12:56 PM To: user@struts.apache.org Subject: Re: please help me 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); giorno.add(Thursday); giorno.add(Friday); giorno.add(Saturday); } } anf in the jsp page there is %...@page import=bean.DataOre% s:select headerKey=1 headerValue=seleziona list=DataOre listValue=giorno / -- View this message in context: http://www.nabble.com/please-help-me-tp22933522p22933565.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/please-help-me-tp22933522p22933911.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
create personal interceptor
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 implements Interceptor{ String mese; public void setMese(String m){mese=m;} public String getMese(){return mese;} public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation) throws Exception{ if (getMese().equals(Gennaio)) setMese(1); else if(getMese().equals(Febbraio)) setMese(2); else if(getMese().equals(Marzo)) setMese(3); else if(getMese().equals(Aprile)) setMese(4); else if(getMese().equals(Maggio)) setMese(5); else if(getMese().equals(Giugno)) setMese(6); else if(getMese().equals(Luglio)) setMese(7); else if(getMese().equals(Settembre)) setMese(9); else if(getMese().equals(Ottobre)) setMese(10); else if(getMese().equals(Novembre)) setMese(11); else if(getMese().equals(Dicembre)) setMese(12); else setMese(0); return actionInvocation.invoke(); } but it doesn't work can someone help me? -- View this message in context: http://www.nabble.com/create-personal-interceptor-tp22939722p22939722.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: hidden data
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: http://www.nabble.com/hidden-data-tp22905294p22905748.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: hidden data
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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
hidden data
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 Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
System.out into interceptor
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: http://www.nabble.com/System.out-into-interceptor-tp22535922p22535922.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: System.out into interceptor
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.*; public class filtro implements Interceptor { private HttpServletRequest request; public void setServletRequest(HttpServletRequest request){ this.request = request; } public HttpServletRequest getServletRequest(){ return request; } public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation) throws Exception{ Map session = actionInvocation.getInvocationContext().getSession(); utente user = (utente)session.get(autenticato); if (user != null) request.setAttribute(ciao,condizione); return Action.ERROR; } } and into jsp page: %out.print(request.getParameter(ciao))% but it doesn't work -- View this message in context: http://www.nabble.com/System.out-into-interceptor-tp22535922p22541213.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
request into interceptor
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
interceptor and request http
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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: System.out into interceptor
please can you tell me any quicly method to implement this because i've not time Nils-Helge Garli wrote: You're setting a request attribute, but trying to access a request parameter. Also, I would recommend that you do not access the output stream directly. I suggest you take some time 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.interceptor.Interceptor; import com.opensymphony.xwork2.Action; import javax.servlet.http.HttpServletRequest; import com.opensymphony.xwork2.ActionContext; import java.util.*; public class filtro implements Interceptor { private HttpServletRequest request; public void setServletRequest(HttpServletRequest request){ this.request = request; } public HttpServletRequest getServletRequest(){ return request; } public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation) throws Exception{ Map session = actionInvocation.getInvocationContext().getSession(); utente user = (utente)session.get(autenticato); if (user != null) request.setAttribute(ciao,condizione); return Action.ERROR; } } and into jsp page: %out.print(request.getParameter(ciao))% but it doesn't work -- View this message in context: http://www.nabble.com/System.out-into-interceptor-tp22535922p22541213.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/System.out-into-interceptor-tp22535922p22544593.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
interceptor
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 { public void destroy() { } public void init() { } public String intercept( ActionInvocation actionInvocation ) throws Exception{ Map session = actionInvocation.getInvocationContext().getSession(); utente user = (utente)session.get(autenticato); if (user != null) { System.out.println(condizone if); return Action.ERROR; } else { System.out.println(condizione else); return actionInvocation.invoke(); } } } in document struts.xml there is interceptors interceptor name=filtro class=action.bean.filtro/ /interceptors .. global result error action intercpetor-ref name=filtro /action -- View this message in context: http://www.nabble.com/interceptor-tp22524102p22524102.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: 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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
interceptor Message
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 - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
identify action
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: back button
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 porterà ad inconsistenze nella navigazione. Cosa succede se entri in quella pagina dall'esterno? E non dire che è impossibile perché, per la legge di Murphy, accadrà *sempre*. Di solito il problema si risolve individuando l'action dalla quale si proviene e usare quella invece di codice Javascript. Ciao Antonio - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/back-button-tp22159144p22512555.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: tag set
and to access from the Action mgainty wrote: ..to set.. s:set name=user value=user scope=request/ ..to access.. s:property value=#request.user/Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 13 Mar 2009 16:05:36 -0700 From: pegasu...@hotmail.it To: user@struts.apache.org Subject: Re: tag set certainly; but how do i achieve this thing? s:set name=x value=user % reqest.setAttribute(key,user)% can i achieve this thing? in this way? Nils-Helge Garli wrote: Maybe you could try 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 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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/tag-set-tp22506157p22506748.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme -- View this message in context: http://www.nabble.com/tag-set-tp22506157p22512640.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
call action
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
send data
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: send data
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: send data
thanks but i don't be able to realize this thing; laes1 wrote: i don't use struts 2.0 (i use struts 1.2) so with this version, u can get a text value or a password through the actionform u define a class which extends from actionform and u add the property u want (u generate 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 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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Elyes. -- View this message in context: http://www.nabble.com/send-data-tp22498337p22499078.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
tag set
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: tag set
certainly; but how do i achieve this thing? s:set name=x value=user % reqest.setAttribute(key,user)% can i achieve this thing? in this way? Nils-Helge Garli wrote: Maybe you could try 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 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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/tag-set-tp22506157p22506748.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
action
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 Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
historyBack
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
one action with two buttons
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 id=configure formId=configureformCancel/s:a but it doesn't work. Can someone help me? -- View this message in context: http://www.nabble.com/one-action-with-two-buttons-tp22456812p22456812.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: one action with two buttons
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: one action with two buttons
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 unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
data transfer
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 archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
back button
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://www.nabble.com/back-button-tp22159144p22159144.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: back button
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 On Mon, Feb 23, 2009 at 11:44 AM, 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://www.nabble.com/back-button-tp22159144p22159144.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/back-button-tp22159144p22159339.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: back button
thanks, i'm successful using onclick=javascript:history.back(); instead using action=javascript:history.back(); Nils-Helge Garli wrote: I'm still not convinced... But did you try google? http://www.google.no/search?q=javascript+back+button Nils-H On Mon, Feb 23, 2009 at 11:59 AM, 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 On Mon, Feb 23, 2009 at 11:44 AM, 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://www.nabble.com/back-button-tp22159144p22159144.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/back-button-tp22159144p22159339.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/back-button-tp22159144p22159558.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: back button
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, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 validation
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: http://www.nabble.com/struts2-validation-tp22068251p22082549.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 validation
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. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 validation
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 headerKey=1 headerValue=seleziona list=#{'01':'studente','02':'docente','03':'segretario'}/s:select s:submit value=Login align=center cssClass=botton/ /s:form and this is the image http://www.nabble.com/file/p22089792/Image.jpg i don't want the message; please help me -- View this message in context: http://www.nabble.com/struts2-validation-tp22068251p22089792.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2 validation
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 mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts2 validation help please
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 message in context: http://www.nabble.com/struts2-validation-help-please-tp22068361p22068361.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
STRUTS2 validator.xml
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, if the login is wrong, comes from the file login-validation.xml not appear above the username field but go down and I would like especially to link it in another action. someone knows how can I do? -- View this message in context: http://www.nabble.com/STRUTS2-validator.xml-tp21929439p21929439.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org