[OT] migrate Struts app from jdk 1.4 to jdk1.5

2006-08-26 Thread Thibaut
I migrate a Struts app from jdk 1.4 to jdk1.5 I have warnings I would like to solve : 1) the clone() function I have a "Type Safety" exeption with this kind of code : current.setUserRights((TreeSet) this.userRights.clone()); 2) Cast make a warning : TreeSet mySet = (TreeSet) request.getSession()

Re: Validation Problem

2006-03-28 Thread Thibaut
Hi i found the solution i was looking for : http://wiki.apache.org/struts/StrutsDeprecatedActionErrors Thank you for those who tried to help me. Thibaut Lassalle Thibaut a écrit : Hi I have all the time the same problem and there is a week i try to solve it. It should be trivial but i

Re: Validation Problem

2006-03-23 Thread Thibaut
Dave Newton a écrit : Thibaut wrote: In the WEB-INF/user/struts-config.xml type="com.cvdunet.controller.action.UpdateResponsesForRequestAction" input="essai.html" Your input page is an HTML file? Yes it'

Re: Validation Problem

2006-03-22 Thread Thibaut
Hi I did what you tell me to do. Here is the simpliest thing that does'nt work : In the WEB-INF/user/struts-config.xml type="com.cvdunet.controller.action.UpdateResponsesForRequestAction" input="essai.html" name="candidateForm" scope

Re: Validation Problem

2006-03-22 Thread Thibaut
I use the libraries i found in the struts-mailreader app in the struts 1.2.8 zip file. But i still have commons-digester.jar 1.5 because my app use rss object ... Can it be the problem ? - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Validation Problem

2006-03-22 Thread Thibaut
Rick Reumann a écrit : Thibaut wrote the following on 3/22/2006 10:18 AM: I did but it still doesn't work ... still have the blank page instead. What do the error logs say? In my /usr/java/jakarta-tomcat-5.0.28/logs/localhost_log.2006-03-22.txt there are just informations but no

Re: Validation Problem

2006-03-22 Thread Thibaut
hen looks like your input is wrong. Change input to: input="/missions_copyMailToBasket.jsp" I believe this page is in the same dir as of close.jsp and mycv.jsp Thanks, On 3/22/06, Thibaut <[EMAIL PROTECTED]> wrote: The problem is that if the validate(mapping,req) method ret

Re: Validation Problem

2006-03-22 Thread Thibaut
u for your help ! Thibaut Mark Lowe a écrit : validate="true" just means that the validate(mapping,req) method will be called and forwarded back to the inputForward before you get to the action. But as you call it in the action this shouldn't matter.. Are things going wrong in

Re: Validation Problem

2006-03-22 Thread Thibaut
t's wrong ? [EMAIL PROTECTED] a écrit : Hi Howecome you have validate="false"? If you want validation, then set it to true -Original Message- From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:41 AM To: user@struts.apache.org Subject: Validati

Validation Problem

2006-03-22 Thread Thibaut
errors.add(ActionMessages.GLOBAL_MESSAGE, error); return errors; } Can anyone help ? Thank you -- Thibaut Lassalle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:select default value in the action

2006-01-20 Thread Thibaut
ok I understand but why "form.set("partner_id",secteurDefault);" doesn't work ? " public ActionForward execute(..., ActionForm form,...) { ... form.set("partner_id",secteurDefault); ... } " Where form is a DynaForm Thank you Laurie Harper a écrit

Re: html:select default value in the action

2006-01-19 Thread Thibaut
esn't work. Why ? Second question : how do i put the form in a scope to be taken into account by the jsp ? Thibaut wrote the following on 1/19/2006 1:09 PM: Hi, I'd like to choose the default value of my html:select in the action class. What is the parameter to set ? Set

html:select default value in the action

2006-01-19 Thread Thibaut
Hi, I'd like to choose the default value of my html:select in the action class. What is the parameter to set ? Action : request.setAttribute("partnerslist", getPartnerListFromDataBase(dataSource)); JSP: labelProperty="label"/> Thanks. -

jar not loaded

2006-01-05 Thread Thibaut
Hi, When I load my struts application with tomcat I have this information : " 5 janv. 2006 17:57:25 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/home/toto/workspace/cvdunetV51/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.

Re: dropdown

2005-12-30 Thread Thibaut
, Raghu On 12/30/05, Thibaut <[EMAIL PROTECTED]> wrote: Hi I try to print a dropdown but i make a mistake. I don't know where is the mistake : In the action : " ArrayList arrayTmp = this.getPartnerListFromDataBase(request); request.setAttribute("pa

dropdown

2005-12-30 Thread Thibaut
Hi I try to print a dropdown but i make a mistake. I don't know where is the mistake : In the action : " ArrayList arrayTmp = this.getPartnerListFromDataBase(request); request.setAttribute("partnerslist", arrayTmp); " Where : " private ArrayList getPartnerListFromData

update a data base record

2005-09-27 Thread Thibaut Lassalle
hi i'd like to update a record from a table from my data base : for exemple, the object "Client" I used struts 1.0 and now use struts 1.2.6 that why i'm a little bit lost. The action i call is /accessToUpdateClient.do?id=9 In the action i do : public ActionForward execute(ActionMapping mapp

Re: access the DataSource in a plugin object

2005-09-14 Thread Thibaut Lassalle
hi i have the solution DataSource aDataSource = (DataSource) actionServlet.getServletContext().getAttribute("dataBase1"); i found the solution here http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=001155 Thank you, Thibaut Lassalle Martin Gainty

Re: access the DataSource in a plugin object

2005-09-13 Thread Thibaut Lassalle
Martin you are in an action therefore you have getDataSource(request) available but i am in a plugin therefore i don't have request element. Any idea ? Thibaut Martin Gainty a écrit : Thibault- /*This is straight from the Struts doc available at*/ http://www.jajakarta.org/struts/stru

Re: Struts Development Tool

2005-09-13 Thread Thibaut Lassalle
hi Eclipse with the good plugins. http://www.theserverside.com/news/thread.tss?thread_id=35683 R Rajendran a écrit : Hi everyone, Could anyone of you let me know the available Struts Development tools (IDE) for Windows environment. Thanks Raj -

access the DataSource in a plugin object

2005-09-13 Thread Thibaut Lassalle
bc:mysql://192.168.0.25/cvdunet" /> And in my plugin, i call this : DataSource aDataSource = (DataSource) actionServlet.getServletContext().getAttribute (Globals.DATA_SOURCE_KEY); but 'aDataSource' is 'null'. Do you know the rig

can't find equivalence

2005-06-09 Thread Thibaut Lassalle
on.getAttribute(), avertisementForm); return new ActionForward(mapping.getInput(), false); -Thanks in Advance Thibaut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle
Ins method which initialises the PlugIns found in the config file Is there a specific plugin you wish to use? Bonne Chance, Martin- - Original Message ----- From: "Thibaut Lassalle" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, June 06, 2005 10

access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle
hi, i'd like to access to dataSource configured in struts-config.xml in the Plugin init method. But i don't have a clue how to do that. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

access to dataSource configured in struts-config.xml in a Plugin

2005-06-01 Thread Thibaut Lassalle
hi, i'd like to access to dataSource configured in struts-config.xml in the Plugin init method. But i don't have a clue how to do that. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

migration from Struts 1.0 to Struts 1.2

2005-05-27 Thread Thibaut Lassalle
Does anyone have documentation on how to migrate from Struts 1.0 to Struts 1.2 Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: DataBase connection

2005-05-27 Thread Thibaut L.
ces within your ActionServlet take a look at http://struts.apache.org/api/org/apache/struts/action/ActionServlet.html#dataSources HTH, Martin- - Original Message - From: "Thibaut L." <[EMAIL PROTECTED]> To: Sent: Friday, May 27, 2005 7:49 AM Subject: DataBase connection hi, i

DataBase connection

2005-05-27 Thread Thibaut L.
hi, i'd like to access mysql from the my own controller init method. I usually do : |dataSource = getDataSource(request); myConnection = dataSource.getConnection(); but i have no request object in my init method. Any idea ? thanks. | -